From 8f643e775bdfc76428616a91e670081c60bb1175 Mon Sep 17 00:00:00 2001 From: Huiwen Date: Sat, 8 Jun 2024 00:29:19 +0800 Subject: [PATCH] [papi] add support for java and kotlin (#19868) Co-authored-by: Jean Pierre --- components/public-api/buf.gen.yaml | 5 + components/public-api/generate.sh | 3 + .../gitpod/experimental/v1/dummy.proto | 1 + .../experimental/v1/editor_service.proto | 1 + .../gitpod/experimental/v1/ide_client.proto | 1 + .../experimental/v1/identityprovider.proto | 1 + .../gitpod/experimental/v1/oidc.proto | 1 + .../gitpod/experimental/v1/pagination.proto | 1 + .../gitpod/experimental/v1/projects.proto | 1 + .../gitpod/experimental/v1/scm.proto | 1 + .../gitpod/experimental/v1/stats.proto | 1 + .../gitpod/experimental/v1/teams.proto | 1 + .../gitpod/experimental/v1/tokens.proto | 1 + .../gitpod/experimental/v1/user.proto | 1 + .../gitpod/experimental/v1/workspaces.proto | 1 + .../public-api/gitpod/v1/authprovider.proto | 1 + .../public-api/gitpod/v1/configuration.proto | 1 + components/public-api/gitpod/v1/editor.proto | 1 + components/public-api/gitpod/v1/envvar.proto | 1 + components/public-api/gitpod/v1/error.proto | 1 + .../public-api/gitpod/v1/installation.proto | 1 + .../public-api/gitpod/v1/organization.proto | 1 + .../public-api/gitpod/v1/pagination.proto | 1 + .../public-api/gitpod/v1/prebuild.proto | 1 + components/public-api/gitpod/v1/scm.proto | 1 + components/public-api/gitpod/v1/sorting.proto | 1 + components/public-api/gitpod/v1/ssh.proto | 1 + components/public-api/gitpod/v1/token.proto | 1 + components/public-api/gitpod/v1/user.proto | 1 + .../public-api/gitpod/v1/verification.proto | 1 + .../public-api/gitpod/v1/workspace.proto | 1 + .../public-api/go/experimental/v1/dummy.pb.go | 15 +- .../go/experimental/v1/editor_service.pb.go | 14 +- .../go/experimental/v1/ide_client.pb.go | 14 +- .../go/experimental/v1/identityprovider.pb.go | 13 +- .../public-api/go/experimental/v1/oidc.pb.go | 14 +- .../go/experimental/v1/pagination.pb.go | 13 +- .../go/experimental/v1/projects.pb.go | 14 +- .../public-api/go/experimental/v1/scm.pb.go | 14 +- .../public-api/go/experimental/v1/stats.pb.go | 14 +- .../public-api/go/experimental/v1/teams.pb.go | 14 +- .../go/experimental/v1/tokens.pb.go | 15 +- .../public-api/go/experimental/v1/user.pb.go | 14 +- .../go/experimental/v1/workspaces.pb.go | 15 +- .../public-api/go/v1/authprovider.pb.go | 11 +- .../public-api/go/v1/configuration.pb.go | 12 +- components/public-api/go/v1/editor.pb.go | 11 +- components/public-api/go/v1/envvar.pb.go | 11 +- components/public-api/go/v1/error.pb.go | 11 +- .../public-api/go/v1/installation.pb.go | 11 +- .../public-api/go/v1/organization.pb.go | 11 +- components/public-api/go/v1/pagination.pb.go | 12 +- components/public-api/go/v1/prebuild.pb.go | 11 +- components/public-api/go/v1/scm.pb.go | 12 +- components/public-api/go/v1/sorting.pb.go | 11 +- components/public-api/go/v1/ssh.pb.go | 12 +- components/public-api/go/v1/token.pb.go | 11 +- components/public-api/go/v1/user.pb.go | 11 +- .../public-api/go/v1/verification.pb.go | 11 +- components/public-api/go/v1/workspace.pb.go | 12 +- components/public-api/java/.gitattributes | 8 + components/public-api/java/.gitignore | 5 + components/public-api/java/BUILD.yaml | 14 + components/public-api/java/build.gradle.kts | 38 + components/public-api/java/gradle.properties | 5 + .../java/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 63721 bytes .../gradle/wrapper/gradle-wrapper.properties | 7 + components/public-api/java/gradlew | 249 + components/public-api/java/gradlew.bat | 92 + .../public-api/java/settings.gradle.kts | 18 + .../publicapi/experimental/v1/Dummy.java | 1990 + .../experimental/v1/EditorServiceClient.kt | 33 + .../v1/EditorServiceClientInterface.kt | 18 + .../v1/EditorServiceOuterClass.java | 3507 + .../experimental/v1/HelloServiceClient.kt | 58 + .../v1/HelloServiceClientInterface.kt | 33 + .../experimental/v1/IDEClientServiceClient.kt | 67 + .../v1/IDEClientServiceClientInterface.kt | 32 + .../publicapi/experimental/v1/IdeClient.java | 2944 + .../v1/IdentityProviderServiceClient.kt | 36 + .../IdentityProviderServiceClientInterface.kt | 21 + .../experimental/v1/Identityprovider.java | 1466 + .../experimental/v1/OIDCServiceClient.kt | 115 + .../v1/OIDCServiceClientInterface.kt | 50 + .../publicapi/experimental/v1/Oidc.java | 16068 ++++ .../experimental/v1/PaginationOuterClass.java | 629 + .../publicapi/experimental/v1/Projects.java | 10234 +++ .../experimental/v1/ProjectsServiceClient.kt | 83 + .../v1/ProjectsServiceClientInterface.kt | 38 + .../experimental/v1/SCMServiceClient.kt | 36 + .../v1/SCMServiceClientInterface.kt | 21 + .../gitpod/publicapi/experimental/v1/Scm.java | 1014 + .../publicapi/experimental/v1/Stats.java | 891 + .../experimental/v1/StatsServiceClient.kt | 35 + .../v1/StatsServiceClientInterface.kt | 20 + .../publicapi/experimental/v1/Teams.java | 15918 ++++ .../experimental/v1/TeamsServiceClient.kt | 179 + .../v1/TeamsServiceClientInterface.kt | 74 + .../publicapi/experimental/v1/Tokens.java | 9334 +++ .../experimental/v1/TokensServiceClient.kt | 117 + .../v1/TokensServiceClientInterface.kt | 51 + .../experimental/v1/UserOuterClass.java | 11917 +++ .../experimental/v1/UserServiceClient.kt | 126 + .../v1/UserServiceClientInterface.kt | 50 + .../publicapi/experimental/v1/Workspaces.java | 33149 +++++++++ .../v1/WorkspacesServiceClient.kt | 199 + .../v1/WorkspacesServiceClientInterface.kt | 83 + .../publicapi/v1/AuthProviderServiceClient.kt | 118 + .../v1/AuthProviderServiceClientInterface.kt | 53 + .../io/gitpod/publicapi/v1/Authprovider.java | 13577 ++++ .../publicapi/v1/ConfigurationOuterClass.java | 13761 ++++ .../v1/ConfigurationServiceClient.kt | 108 + .../v1/ConfigurationServiceClientInterface.kt | 52 + .../java/io/gitpod/publicapi/v1/Editor.java | 724 + .../v1/EnvironmentVariableServiceClient.kt | 186 + ...vironmentVariableServiceClientInterface.kt | 87 + .../java/io/gitpod/publicapi/v1/Envvar.java | 15387 ++++ .../java/io/gitpod/publicapi/v1/Error.java | 8239 +++ .../io/gitpod/publicapi/v1/Installation.java | 12123 +++ .../publicapi/v1/InstallationServiceClient.kt | 140 + .../v1/InstallationServiceClientInterface.kt | 59 + .../publicapi/v1/OrganizationOuterClass.java | 24865 +++++++ .../publicapi/v1/OrganizationServiceClient.kt | 268 + .../v1/OrganizationServiceClientInterface.kt | 122 + .../io/gitpod/publicapi/v1/Pagination.java | 1501 + .../publicapi/v1/PrebuildOuterClass.java | 15700 ++++ .../publicapi/v1/PrebuildServiceClient.kt | 103 + .../v1/PrebuildServiceClientInterface.kt | 38 + .../gitpod/publicapi/v1/SCMServiceClient.kt | 87 + .../publicapi/v1/SCMServiceClientInterface.kt | 42 + .../gitpod/publicapi/v1/SSHServiceClient.kt | 70 + .../publicapi/v1/SSHServiceClientInterface.kt | 35 + .../main/java/io/gitpod/publicapi/v1/Scm.java | 10335 +++ .../java/io/gitpod/publicapi/v1/Sorting.java | 846 + .../main/java/io/gitpod/publicapi/v1/Ssh.java | 5136 ++ .../java/io/gitpod/publicapi/v1/Token.java | 1421 + .../gitpod/publicapi/v1/TokenServiceClient.kt | 36 + .../v1/TokenServiceClientInterface.kt | 21 + .../gitpod/publicapi/v1/UserOuterClass.java | 31405 ++++++++ .../gitpod/publicapi/v1/UserServiceClient.kt | 173 + .../v1/UserServiceClientInterface.kt | 76 + .../io/gitpod/publicapi/v1/Verification.java | 2600 + .../publicapi/v1/VerificationServiceClient.kt | 57 + .../v1/VerificationServiceClientInterface.kt | 32 + .../publicapi/v1/WorkspaceOuterClass.java | 61036 ++++++++++++++++ .../publicapi/v1/WorkspaceServiceClient.kt | 341 + .../v1/WorkspaceServiceClientInterface.kt | 152 + 147 files changed, 332429 insertions(+), 156 deletions(-) create mode 100644 components/public-api/java/.gitattributes create mode 100644 components/public-api/java/.gitignore create mode 100644 components/public-api/java/BUILD.yaml create mode 100644 components/public-api/java/build.gradle.kts create mode 100644 components/public-api/java/gradle.properties create mode 100644 components/public-api/java/gradle/wrapper/gradle-wrapper.jar create mode 100644 components/public-api/java/gradle/wrapper/gradle-wrapper.properties create mode 100755 components/public-api/java/gradlew create mode 100644 components/public-api/java/gradlew.bat create mode 100644 components/public-api/java/settings.gradle.kts create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Dummy.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceOuterClass.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/HelloServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/HelloServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IDEClientServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IDEClientServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdeClient.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdentityProviderServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdentityProviderServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Identityprovider.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/OIDCServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/OIDCServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Oidc.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/PaginationOuterClass.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Projects.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/ProjectsServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/ProjectsServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/SCMServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/SCMServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Scm.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Stats.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/StatsServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/StatsServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Teams.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TeamsServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TeamsServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Tokens.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TokensServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TokensServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserOuterClass.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/WorkspacesServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/WorkspacesServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/AuthProviderServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/AuthProviderServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Authprovider.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationOuterClass.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Editor.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/EnvironmentVariableServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/EnvironmentVariableServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Envvar.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Error.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Installation.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/InstallationServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/InstallationServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationOuterClass.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Pagination.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildOuterClass.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SCMServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SCMServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SSHServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SSHServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Scm.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Sorting.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Ssh.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Token.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/TokenServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/TokenServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserOuterClass.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Verification.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/VerificationServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/VerificationServiceClientInterface.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceOuterClass.java create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceServiceClient.kt create mode 100644 components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceServiceClientInterface.kt diff --git a/components/public-api/buf.gen.yaml b/components/public-api/buf.gen.yaml index e7ae722361239b..ada8d8b72ff156 100644 --- a/components/public-api/buf.gen.yaml +++ b/components/public-api/buf.gen.yaml @@ -26,3 +26,8 @@ plugins: out: typescript/src opt: target=ts path: typescript/node_modules/.bin/protoc-gen-connect-es + + - plugin: buf.build/connectrpc/kotlin + out: java/src/main/java + - plugin: buf.build/protocolbuffers/java + out: java/src/main/java diff --git a/components/public-api/generate.sh b/components/public-api/generate.sh index 20e3ffef5886db..f7c15efaa0918d 100755 --- a/components/public-api/generate.sh +++ b/components/public-api/generate.sh @@ -30,11 +30,14 @@ buf breaking --against "https://github.com/gitpod-io/gitpod.git#branch=main,subd # Remove generated files, so they are re-created rm -rf go/experimental +rm -rf java/src/main/java protoc_buf_generate update_license +git ls-files -- 'java/**/*.java' 'java/**/*.kt' | xargs pre-commit run trailing-whitespace --files || true + # Run end-of-file-fixer git ls-files -- 'typescript/*.ts' | xargs pre-commit run end-of-file-fixer --files || true diff --git a/components/public-api/gitpod/experimental/v1/dummy.proto b/components/public-api/gitpod/experimental/v1/dummy.proto index aeb3a4d30ba8a7..3f6209f99d43d1 100644 --- a/components/public-api/gitpod/experimental/v1/dummy.proto +++ b/components/public-api/gitpod/experimental/v1/dummy.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.experimental.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; // HelloService is a dummy service that says hello. It is used for reliability // testing. diff --git a/components/public-api/gitpod/experimental/v1/editor_service.proto b/components/public-api/gitpod/experimental/v1/editor_service.proto index 997b0c25fcec06..ca25da1f1c5ead 100644 --- a/components/public-api/gitpod/experimental/v1/editor_service.proto +++ b/components/public-api/gitpod/experimental/v1/editor_service.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.experimental.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; service EditorService { rpc ListEditorOptions(ListEditorOptionsRequest) returns (ListEditorOptionsResponse) {} diff --git a/components/public-api/gitpod/experimental/v1/ide_client.proto b/components/public-api/gitpod/experimental/v1/ide_client.proto index 1b8b960386d952..e17e7db2204c4e 100644 --- a/components/public-api/gitpod/experimental/v1/ide_client.proto +++ b/components/public-api/gitpod/experimental/v1/ide_client.proto @@ -5,6 +5,7 @@ package gitpod.experimental.v1; import "gitpod/experimental/v1/workspaces.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; service IDEClientService { // SendHeartbeat sends a clientheartbeat signal for a running workspace. diff --git a/components/public-api/gitpod/experimental/v1/identityprovider.proto b/components/public-api/gitpod/experimental/v1/identityprovider.proto index 81bf7cc637f6a3..c6f36f523b32f6 100644 --- a/components/public-api/gitpod/experimental/v1/identityprovider.proto +++ b/components/public-api/gitpod/experimental/v1/identityprovider.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.experimental.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; service IdentityProviderService { // GetIDToken produces a new OIDC ID token (https://openid.net/specs/openid-connect-core-1_0.html#ImplicitIDToken) diff --git a/components/public-api/gitpod/experimental/v1/oidc.proto b/components/public-api/gitpod/experimental/v1/oidc.proto index 15a3bf89953abc..d5602d431f060a 100644 --- a/components/public-api/gitpod/experimental/v1/oidc.proto +++ b/components/public-api/gitpod/experimental/v1/oidc.proto @@ -6,6 +6,7 @@ import "gitpod/experimental/v1/pagination.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; // Configuration of an OpenID client. // diff --git a/components/public-api/gitpod/experimental/v1/pagination.proto b/components/public-api/gitpod/experimental/v1/pagination.proto index 7a5d85197a1314..d868d472dad46e 100644 --- a/components/public-api/gitpod/experimental/v1/pagination.proto +++ b/components/public-api/gitpod/experimental/v1/pagination.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.experimental.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; message Pagination { // Page size is the maximum number of results to retrieve per page. diff --git a/components/public-api/gitpod/experimental/v1/projects.proto b/components/public-api/gitpod/experimental/v1/projects.proto index 5aa87f8b6de5aa..f6f2751e41a1fa 100644 --- a/components/public-api/gitpod/experimental/v1/projects.proto +++ b/components/public-api/gitpod/experimental/v1/projects.proto @@ -6,6 +6,7 @@ import "gitpod/experimental/v1/pagination.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; message Project { // ID is the unique identifier for the project. diff --git a/components/public-api/gitpod/experimental/v1/scm.proto b/components/public-api/gitpod/experimental/v1/scm.proto index 9b01f9b2480ae9..fe298f2545602f 100644 --- a/components/public-api/gitpod/experimental/v1/scm.proto +++ b/components/public-api/gitpod/experimental/v1/scm.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.experimental.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; service SCMService { // GetSuggestedRepoURLs returns a list of suggested repositories to open for diff --git a/components/public-api/gitpod/experimental/v1/stats.proto b/components/public-api/gitpod/experimental/v1/stats.proto index 85cdd0c567e349..db8dd2d670a65b 100644 --- a/components/public-api/gitpod/experimental/v1/stats.proto +++ b/components/public-api/gitpod/experimental/v1/stats.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.experimental.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; service StatsService { // Retrieves the current user stats diff --git a/components/public-api/gitpod/experimental/v1/teams.proto b/components/public-api/gitpod/experimental/v1/teams.proto index 6ada19716e7a3a..32cc0da73de997 100644 --- a/components/public-api/gitpod/experimental/v1/teams.proto +++ b/components/public-api/gitpod/experimental/v1/teams.proto @@ -5,6 +5,7 @@ package gitpod.experimental.v1; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; message Team { // id is a UUID of the Team diff --git a/components/public-api/gitpod/experimental/v1/tokens.proto b/components/public-api/gitpod/experimental/v1/tokens.proto index 8bebca0adeeeb1..2e46f1acc3a8be 100644 --- a/components/public-api/gitpod/experimental/v1/tokens.proto +++ b/components/public-api/gitpod/experimental/v1/tokens.proto @@ -7,6 +7,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; // PersonalAccessToken represents details of an access token for personal use. message PersonalAccessToken { diff --git a/components/public-api/gitpod/experimental/v1/user.proto b/components/public-api/gitpod/experimental/v1/user.proto index e9dfa95f6cccc8..06793e67df7490 100644 --- a/components/public-api/gitpod/experimental/v1/user.proto +++ b/components/public-api/gitpod/experimental/v1/user.proto @@ -5,6 +5,7 @@ package gitpod.experimental.v1; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; message User { // id is a UUID of the user diff --git a/components/public-api/gitpod/experimental/v1/workspaces.proto b/components/public-api/gitpod/experimental/v1/workspaces.proto index e587878b727c42..700e930821b5ce 100644 --- a/components/public-api/gitpod/experimental/v1/workspaces.proto +++ b/components/public-api/gitpod/experimental/v1/workspaces.proto @@ -7,6 +7,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1"; +option java_package = "io.gitpod.publicapi.experimental.v1"; service WorkspacesService { // ListWorkspaces enumerates all workspaces belonging to the authenticated user. diff --git a/components/public-api/gitpod/v1/authprovider.proto b/components/public-api/gitpod/v1/authprovider.proto index 2e6af669c1e343..f6dfcb51283946 100644 --- a/components/public-api/gitpod/v1/authprovider.proto +++ b/components/public-api/gitpod/v1/authprovider.proto @@ -5,6 +5,7 @@ package gitpod.v1; import "gitpod/v1/pagination.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service AuthProviderService { // CreateAuthProvider creates a new auth provider. diff --git a/components/public-api/gitpod/v1/configuration.proto b/components/public-api/gitpod/v1/configuration.proto index 144f6e842289d8..623225a2f1f915 100644 --- a/components/public-api/gitpod/v1/configuration.proto +++ b/components/public-api/gitpod/v1/configuration.proto @@ -7,6 +7,7 @@ import "gitpod/v1/sorting.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; message Configuration { string id = 1; diff --git a/components/public-api/gitpod/v1/editor.proto b/components/public-api/gitpod/v1/editor.proto index a8051532d38085..ad132bff437c2d 100644 --- a/components/public-api/gitpod/v1/editor.proto +++ b/components/public-api/gitpod/v1/editor.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; message EditorReference { string name = 1; diff --git a/components/public-api/gitpod/v1/envvar.proto b/components/public-api/gitpod/v1/envvar.proto index b60297ad956bcc..66224d44b07db1 100644 --- a/components/public-api/gitpod/v1/envvar.proto +++ b/components/public-api/gitpod/v1/envvar.proto @@ -5,6 +5,7 @@ package gitpod.v1; import "gitpod/v1/pagination.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service EnvironmentVariableService { // ListUserEnvironmentVariables returns all environment variables for the diff --git a/components/public-api/gitpod/v1/error.proto b/components/public-api/gitpod/v1/error.proto index d07f2cb2adb370..cda759cad37f45 100644 --- a/components/public-api/gitpod/v1/error.proto +++ b/components/public-api/gitpod/v1/error.proto @@ -5,6 +5,7 @@ package gitpod.v1; import "google/protobuf/descriptor.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; // details for PERMISSION_DENIED status code message PermissionDeniedDetails { diff --git a/components/public-api/gitpod/v1/installation.proto b/components/public-api/gitpod/v1/installation.proto index d676e73d207d81..3fe6ddf67fbc3f 100644 --- a/components/public-api/gitpod/v1/installation.proto +++ b/components/public-api/gitpod/v1/installation.proto @@ -7,6 +7,7 @@ import "gitpod/v1/sorting.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service InstallationService { // GetInstallationWorkspaceDefaultImage returns the default image for current diff --git a/components/public-api/gitpod/v1/organization.proto b/components/public-api/gitpod/v1/organization.proto index 24b675acfb28f6..6af70ac9242369 100644 --- a/components/public-api/gitpod/v1/organization.proto +++ b/components/public-api/gitpod/v1/organization.proto @@ -7,6 +7,7 @@ import "gitpod/v1/workspace.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; message Organization { string id = 1; diff --git a/components/public-api/gitpod/v1/pagination.proto b/components/public-api/gitpod/v1/pagination.proto index 89f38fd9800acc..cc2bdcf3adae88 100644 --- a/components/public-api/gitpod/v1/pagination.proto +++ b/components/public-api/gitpod/v1/pagination.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; message PaginationRequest { // Page size is the maximum number of results to retrieve per page. diff --git a/components/public-api/gitpod/v1/prebuild.proto b/components/public-api/gitpod/v1/prebuild.proto index 499ebce0159ccf..e7b64b5f086327 100644 --- a/components/public-api/gitpod/v1/prebuild.proto +++ b/components/public-api/gitpod/v1/prebuild.proto @@ -8,6 +8,7 @@ import "gitpod/v1/sorting.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service PrebuildService { rpc StartPrebuild(StartPrebuildRequest) returns (StartPrebuildResponse) {} diff --git a/components/public-api/gitpod/v1/scm.proto b/components/public-api/gitpod/v1/scm.proto index 3924fda96e74e7..f9d50f1a2eff32 100644 --- a/components/public-api/gitpod/v1/scm.proto +++ b/components/public-api/gitpod/v1/scm.proto @@ -6,6 +6,7 @@ import "gitpod/v1/pagination.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service SCMService { // SearchSCMTokens allows clients to retrieve SCM tokens based on the diff --git a/components/public-api/gitpod/v1/sorting.proto b/components/public-api/gitpod/v1/sorting.proto index 33028efa62c5a2..a8c02585f4633c 100644 --- a/components/public-api/gitpod/v1/sorting.proto +++ b/components/public-api/gitpod/v1/sorting.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; enum SortOrder { SORT_ORDER_UNSPECIFIED = 0; diff --git a/components/public-api/gitpod/v1/ssh.proto b/components/public-api/gitpod/v1/ssh.proto index ecd399b2aaeb8e..f5b1be3fc8a4a0 100644 --- a/components/public-api/gitpod/v1/ssh.proto +++ b/components/public-api/gitpod/v1/ssh.proto @@ -6,6 +6,7 @@ import "gitpod/v1/pagination.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service SSHService { // ListSSHPublicKeys returns all the ssh public keys for the diff --git a/components/public-api/gitpod/v1/token.proto b/components/public-api/gitpod/v1/token.proto index bc719b27d18ca2..34b29092774c09 100644 --- a/components/public-api/gitpod/v1/token.proto +++ b/components/public-api/gitpod/v1/token.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service TokenService { // CreateUserToken creates a new temporary access token for the specified user. diff --git a/components/public-api/gitpod/v1/user.proto b/components/public-api/gitpod/v1/user.proto index 9f6bec706858ea..1efc320a46958f 100644 --- a/components/public-api/gitpod/v1/user.proto +++ b/components/public-api/gitpod/v1/user.proto @@ -10,6 +10,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service UserService { // GetAuthenticatedUser allows to retrieve the current user. diff --git a/components/public-api/gitpod/v1/verification.proto b/components/public-api/gitpod/v1/verification.proto index 7421a04ecdd016..bac2e592495ff4 100644 --- a/components/public-api/gitpod/v1/verification.proto +++ b/components/public-api/gitpod/v1/verification.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package gitpod.v1; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service VerificationService { // SendPhoneNumberVerificationToken sends a verification token to the diff --git a/components/public-api/gitpod/v1/workspace.proto b/components/public-api/gitpod/v1/workspace.proto index 270cb496dc8d74..2c7be32b6db67f 100644 --- a/components/public-api/gitpod/v1/workspace.proto +++ b/components/public-api/gitpod/v1/workspace.proto @@ -9,6 +9,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1"; +option java_package = "io.gitpod.publicapi.v1"; service WorkspaceService { // GetWorkspace returns a single workspace. diff --git a/components/public-api/go/experimental/v1/dummy.pb.go b/components/public-api/go/experimental/v1/dummy.pb.go index f695481fc52586..9e0713a461c991 100644 --- a/components/public-api/go/experimental/v1/dummy.pb.go +++ b/components/public-api/go/experimental/v1/dummy.pb.go @@ -243,12 +243,15 @@ var file_gitpod_experimental_v1_dummy_proto_rawDesc = []byte{ 0x70, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x74, 0x73, 0x4f, 0x66, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x46, 0x5a, - 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, - 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, - 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x6b, 0x0a, + 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, + 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/editor_service.pb.go b/components/public-api/go/experimental/v1/editor_service.pb.go index 7ee41d378b9ceb..50502740aa4789 100644 --- a/components/public-api/go/experimental/v1/editor_service.pb.go +++ b/components/public-api/go/experimental/v1/editor_service.pb.go @@ -355,12 +355,14 @@ var file_gitpod_experimental_v1_editor_service_proto_rawDesc = []byte{ 0x31, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, + 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, + 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/ide_client.pb.go b/components/public-api/go/experimental/v1/ide_client.pb.go index e70f66efc3ee3a..a4fd31875086a1 100644 --- a/components/public-api/go/experimental/v1/ide_client.pb.go +++ b/components/public-api/go/experimental/v1/ide_client.pb.go @@ -338,12 +338,14 @@ var file_gitpod_experimental_v1_ide_client_proto_rawDesc = []byte{ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x46, 0x5a, 0x44, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, - 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, - 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, - 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, + 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, + 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, + 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, + 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/identityprovider.pb.go b/components/public-api/go/experimental/v1/identityprovider.pb.go index bd7155382b8bb9..f1c210284b1630 100644 --- a/components/public-api/go/experimental/v1/identityprovider.pb.go +++ b/components/public-api/go/experimental/v1/identityprovider.pb.go @@ -159,11 +159,14 @@ var file_gitpod_experimental_v1_identityprovider_proto_rawDesc = []byte{ 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x44, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/oidc.pb.go b/components/public-api/go/experimental/v1/oidc.pb.go index 80956b36d1582f..b5770a4a0dc0aa 100644 --- a/components/public-api/go/experimental/v1/oidc.pb.go +++ b/components/public-api/go/experimental/v1/oidc.pb.go @@ -1411,12 +1411,14 @@ var file_gitpod_experimental_v1_oidc_proto_rawDesc = []byte{ 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, - 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, - 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, + 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, + 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, + 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/pagination.pb.go b/components/public-api/go/experimental/v1/pagination.pb.go index ec40f0f15df9c3..274dac4e68d306 100644 --- a/components/public-api/go/experimental/v1/pagination.pb.go +++ b/components/public-api/go/experimental/v1/pagination.pb.go @@ -95,11 +95,14 @@ var file_gitpod_experimental_v1_pagination_proto_rawDesc = []byte{ 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, - 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/projects.pb.go b/components/public-api/go/experimental/v1/projects.pb.go index 795f80914ec632..0d666c767132e4 100644 --- a/components/public-api/go/experimental/v1/projects.pb.go +++ b/components/public-api/go/experimental/v1/projects.pb.go @@ -922,12 +922,14 @@ var file_gitpod_experimental_v1_projects_proto_rawDesc = []byte{ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, + 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, + 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/scm.pb.go b/components/public-api/go/experimental/v1/scm.pb.go index 8bd80d2079ad2a..7d4b58a2568bd1 100644 --- a/components/public-api/go/experimental/v1/scm.pb.go +++ b/components/public-api/go/experimental/v1/scm.pb.go @@ -130,12 +130,14 @@ var file_gitpod_experimental_v1_scm_proto_rawDesc = []byte{ 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, + 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, + 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/stats.pb.go b/components/public-api/go/experimental/v1/stats.pb.go index e8a08a21ed2123..71dd747bb149b3 100644 --- a/components/public-api/go/experimental/v1/stats.pb.go +++ b/components/public-api/go/experimental/v1/stats.pb.go @@ -130,12 +130,14 @@ var file_gitpod_experimental_v1_stats_proto_rawDesc = []byte{ 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, + 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, + 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/teams.pb.go b/components/public-api/go/experimental/v1/teams.pb.go index 901b7f52f5f08d..7692d360f059a7 100644 --- a/components/public-api/go/experimental/v1/teams.pb.go +++ b/components/public-api/go/experimental/v1/teams.pb.go @@ -1455,12 +1455,14 @@ var file_gitpod_experimental_v1_teams_proto_rawDesc = []byte{ 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/tokens.pb.go b/components/public-api/go/experimental/v1/tokens.pb.go index 84261079045df9..3a5049ab5b84bd 100644 --- a/components/public-api/go/experimental/v1/tokens.pb.go +++ b/components/public-api/go/experimental/v1/tokens.pb.go @@ -868,12 +868,15 @@ var file_gitpod_experimental_v1_tokens_proto_rawDesc = []byte{ 0x1a, 0x39, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x6c, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x46, 0x5a, - 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, - 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, - 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, + 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, + 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/user.pb.go b/components/public-api/go/experimental/v1/user.pb.go index 16c9c508e71017..d6723b588af22f 100644 --- a/components/public-api/go/experimental/v1/user.pb.go +++ b/components/public-api/go/experimental/v1/user.pb.go @@ -1054,12 +1054,14 @@ var file_gitpod_experimental_v1_user_proto_rawDesc = []byte{ 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, + 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, + 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/experimental/v1/workspaces.pb.go b/components/public-api/go/experimental/v1/workspaces.pb.go index 85b60cbf9d6c17..6bdf00ae1b90c2 100644 --- a/components/public-api/go/experimental/v1/workspaces.pb.go +++ b/components/public-api/go/experimental/v1/workspaces.pb.go @@ -3203,12 +3203,15 @@ var file_gitpod_experimental_v1_workspaces_proto_rawDesc = []byte{ 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, - 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x46, - 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, - 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, + 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/authprovider.pb.go b/components/public-api/go/v1/authprovider.pb.go index 3262d5d8b27fa1..d7aaac8e73574c 100644 --- a/components/public-api/go/v1/authprovider.pb.go +++ b/components/public-api/go/v1/authprovider.pb.go @@ -1303,11 +1303,12 @@ var file_gitpod_v1_authprovider_proto_rawDesc = []byte{ 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, + 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/configuration.pb.go b/components/public-api/go/v1/configuration.pb.go index 4916a62eb05f09..7fb03f246a491e 100644 --- a/components/public-api/go/v1/configuration.pb.go +++ b/components/public-api/go/v1/configuration.pb.go @@ -1267,11 +1267,13 @@ var file_gitpod_v1_configuration_proto_rawDesc = []byte{ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x39, 0x5a, - 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, - 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, - 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, + 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/editor.pb.go b/components/public-api/go/v1/editor.pb.go index b66b88a4ace75a..2f89183d106023 100644 --- a/components/public-api/go/v1/editor.pb.go +++ b/components/public-api/go/v1/editor.pb.go @@ -88,11 +88,12 @@ var file_gitpod_v1_editor_proto_rawDesc = []byte{ 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, + 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/envvar.pb.go b/components/public-api/go/v1/envvar.pb.go index cd936cec06e292..5203b33fdab39f 100644 --- a/components/public-api/go/v1/envvar.pb.go +++ b/components/public-api/go/v1/envvar.pb.go @@ -1508,11 +1508,12 @@ var file_gitpod_v1_envvar_proto_rawDesc = []byte{ 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, + 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/error.pb.go b/components/public-api/go/v1/error.pb.go index b708853de5bdf8..bbb5dae247f18e 100644 --- a/components/public-api/go/v1/error.pb.go +++ b/components/public-api/go/v1/error.pb.go @@ -819,11 +819,12 @@ var file_gitpod_v1_error_proto_rawDesc = []byte{ 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x22, 0x24, 0x0a, 0x22, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4c, 0x6f, 0x67, 0x73, 0x4e, 0x6f, 0x74, 0x59, 0x65, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x6f, 0x72, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, + 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/installation.pb.go b/components/public-api/go/v1/installation.pb.go index a6108bf9d67dbd..c12a5d60ffd9a1 100644 --- a/components/public-api/go/v1/installation.pb.go +++ b/components/public-api/go/v1/installation.pb.go @@ -1116,11 +1116,12 @@ var file_gitpod_v1_installation_proto_rawDesc = []byte{ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, + 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, + 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/organization.pb.go b/components/public-api/go/v1/organization.pb.go index ddd718958201c0..ee5a735ab68b73 100644 --- a/components/public-api/go/v1/organization.pb.go +++ b/components/public-api/go/v1/organization.pb.go @@ -2267,11 +2267,12 @@ var file_gitpod_v1_organization_proto_rawDesc = []byte{ 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, + 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, + 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/pagination.pb.go b/components/public-api/go/v1/pagination.pb.go index 4f645e46868ade..e86c9d8bd2c149 100644 --- a/components/public-api/go/v1/pagination.pb.go +++ b/components/public-api/go/v1/pagination.pb.go @@ -174,11 +174,13 @@ var file_gitpod_v1_pagination_proto_rawDesc = []byte{ 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78, - 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, + 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, + 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, + 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/components/public-api/go/v1/prebuild.pb.go b/components/public-api/go/v1/prebuild.pb.go index 94af0f4dcf0c97..2cddbe5ef21edb 100644 --- a/components/public-api/go/v1/prebuild.pb.go +++ b/components/public-api/go/v1/prebuild.pb.go @@ -1446,11 +1446,12 @@ var file_gitpod_v1_prebuild_proto_rawDesc = []byte{ 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, - 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, + 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, + 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/scm.pb.go b/components/public-api/go/v1/scm.pb.go index f199d5a2593f02..33f2aff9a7c369 100644 --- a/components/public-api/go/v1/scm.pb.go +++ b/components/public-api/go/v1/scm.pb.go @@ -878,11 +878,13 @@ var file_gitpod_v1_scm_proto_rawDesc = []byte{ 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, - 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, - 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/sorting.pb.go b/components/public-api/go/v1/sorting.pb.go index d85fef343c84e8..45258901d7f787 100644 --- a/components/public-api/go/v1/sorting.pb.go +++ b/components/public-api/go/v1/sorting.pb.go @@ -144,11 +144,12 @@ var file_gitpod_v1_sorting_proto_rawDesc = []byte{ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x53, 0x43, 0x10, 0x02, - 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, + 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, + 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/ssh.pb.go b/components/public-api/go/v1/ssh.pb.go index 0e51754efa8347..04f287451a0999 100644 --- a/components/public-api/go/v1/ssh.pb.go +++ b/components/public-api/go/v1/ssh.pb.go @@ -473,11 +473,13 @@ var file_gitpod_v1_ssh_proto_rawDesc = []byte{ 0x48, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x53, 0x48, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, - 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, - 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, + 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/token.pb.go b/components/public-api/go/v1/token.pb.go index deeeafb96e0f2e..eb5ef4a99813a6 100644 --- a/components/public-api/go/v1/token.pb.go +++ b/components/public-api/go/v1/token.pb.go @@ -164,11 +164,12 @@ var file_gitpod_v1_token_proto_rawDesc = []byte{ 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x72, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, + 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, + 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/user.pb.go b/components/public-api/go/v1/user.pb.go index fa5dca91f70432..9b102b7a43f563 100644 --- a/components/public-api/go/v1/user.pb.go +++ b/components/public-api/go/v1/user.pb.go @@ -2629,11 +2629,12 @@ var file_gitpod_v1_user_proto_rawDesc = []byte{ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x4f, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, + 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, + 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/verification.pb.go b/components/public-api/go/v1/verification.pb.go index 6b852b56235043..713e5e7dff4750 100644 --- a/components/public-api/go/v1/verification.pb.go +++ b/components/public-api/go/v1/verification.pb.go @@ -289,11 +289,12 @@ var file_gitpod_v1_verification_proto_rawDesc = []byte{ 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, + 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/go/v1/workspace.pb.go b/components/public-api/go/v1/workspace.pb.go index f6005b6c5dca4d..8736a1751b2b60 100644 --- a/components/public-api/go/v1/workspace.pb.go +++ b/components/public-api/go/v1/workspace.pb.go @@ -5412,11 +5412,13 @@ var file_gitpod_v1_workspace_proto_rawDesc = []byte{ 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x6f, 0x72, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, - 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, - 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, + 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/components/public-api/java/.gitattributes b/components/public-api/java/.gitattributes new file mode 100644 index 00000000000000..afd59d8fce15d0 --- /dev/null +++ b/components/public-api/java/.gitattributes @@ -0,0 +1,8 @@ +# +# https://help.github.com/articles/dealing-with-line-endings/ +# +# Linux start script should use lf +/gradlew text eol=lf + +# These are Windows script files and should use crlf +*.bat text eol=crlf diff --git a/components/public-api/java/.gitignore b/components/public-api/java/.gitignore new file mode 100644 index 00000000000000..1b6985c0094c8e --- /dev/null +++ b/components/public-api/java/.gitignore @@ -0,0 +1,5 @@ +# Ignore Gradle project-specific cache directory +.gradle + +# Ignore Gradle build output directory +build diff --git a/components/public-api/java/BUILD.yaml b/components/public-api/java/BUILD.yaml new file mode 100644 index 00000000000000..97b28288fc09b1 --- /dev/null +++ b/components/public-api/java/BUILD.yaml @@ -0,0 +1,14 @@ +packages: + - name: lib + type: generic + srcs: + - "**/*.java" + - "**/*.kt" + - "build.gradle.kts" + - "settings.gradle.kts" + - "gradle.properties" + - "gradle/wrapper/*" + - "gradlew" + config: + commands: + - ["./gradlew", "build"] diff --git a/components/public-api/java/build.gradle.kts b/components/public-api/java/build.gradle.kts new file mode 100644 index 00000000000000..073550d171d743 --- /dev/null +++ b/components/public-api/java/build.gradle.kts @@ -0,0 +1,38 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +plugins { + // Apply the java-library plugin for API and implementation separation. + `java-library` + id("org.jetbrains.kotlin.jvm") version "1.9.0" +} + +repositories { + // Use Maven Central for resolving dependencies. + mavenCentral() +} + +dependencies { + // This dependency is exported to consumers, that is to say found on their compile classpath. + api("org.apache.commons:commons-math3:3.6.1") + + // This dependency is used internally, and not exposed to consumers on their own compile classpath. + implementation("com.google.guava:guava:32.1.1-jre") + + // connect rpc dependencies + implementation("com.squareup.okhttp3:okhttp:4.12.0") + implementation("com.connectrpc:connect-kotlin-okhttp:0.6.0") + // Java specific dependencies. + implementation("com.connectrpc:connect-kotlin-google-java-ext:0.6.0") + implementation("com.google.protobuf:protobuf-java:4.26.0") + implementation(kotlin("stdlib-jdk8")) + +} + +// Apply a specific Java toolchain to ease working on different environments. +java { + toolchain { + languageVersion.set(JavaLanguageVersion.of(11)) + } +} diff --git a/components/public-api/java/gradle.properties b/components/public-api/java/gradle.properties new file mode 100644 index 00000000000000..76dc27bd194341 --- /dev/null +++ b/components/public-api/java/gradle.properties @@ -0,0 +1,5 @@ +# This file was generated by the Gradle 'init' task. +# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties + +org.gradle.parallel=true +org.gradle.caching=true diff --git a/components/public-api/java/gradle/wrapper/gradle-wrapper.jar b/components/public-api/java/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..7f93135c49b765f8051ef9d0a6055ff8e46073d8 GIT binary patch literal 63721 zcmb5Wb9gP!wgnp7wrv|bwr$&XvSZt}Z6`anZSUAlc9NHKf9JdJ;NJVr`=eI(_pMp0 zy1VAAG3FfAOI`{X1O)&90s;U4K;XLp008~hCjbEC_fbYfS%6kTR+JtXK>nW$ZR+`W ze|#J8f4A@M|F5BpfUJb5h>|j$jOe}0oE!`Zf6fM>CR?!y@zU(cL8NsKk`a z6tx5mAkdjD;J=LcJ;;Aw8p!v#ouk>mUDZF@ zK>yvw%+bKu+T{Nk@LZ;zkYy0HBKw06_IWcMHo*0HKpTsEFZhn5qCHH9j z)|XpN&{`!0a>Vl+PmdQc)Yg4A(AG-z!+@Q#eHr&g<9D?7E)_aEB?s_rx>UE9TUq|? z;(ggJt>9l?C|zoO@5)tu?EV0x_7T17q4fF-q3{yZ^ipUbKcRZ4Qftd!xO(#UGhb2y>?*@{xq%`(-`2T^vc=#< zx!+@4pRdk&*1ht2OWk^Z5IAQ0YTAXLkL{(D*$gENaD)7A%^XXrCchN&z2x+*>o2FwPFjWpeaL=!tzv#JOW#( z$B)Nel<+$bkH1KZv3&-}=SiG~w2sbDbAWarg%5>YbC|}*d9hBjBkR(@tyM0T)FO$# zPtRXukGPnOd)~z=?avu+4Co@wF}1T)-uh5jI<1$HLtyDrVak{gw`mcH@Q-@wg{v^c zRzu}hMKFHV<8w}o*yg6p@Sq%=gkd~;`_VGTS?L@yVu`xuGy+dH6YOwcP6ZE`_0rK% zAx5!FjDuss`FQ3eF|mhrWkjux(Pny^k$u_)dyCSEbAsecHsq#8B3n3kDU(zW5yE|( zgc>sFQywFj5}U*qtF9Y(bi*;>B7WJykcAXF86@)z|0-Vm@jt!EPoLA6>r)?@DIobIZ5Sx zsc@OC{b|3%vaMbyeM|O^UxEYlEMHK4r)V-{r)_yz`w1*xV0|lh-LQOP`OP`Pk1aW( z8DSlGN>Ts|n*xj+%If~+E_BxK)~5T#w6Q1WEKt{!Xtbd`J;`2a>8boRo;7u2M&iOop4qcy<)z023=oghSFV zST;?S;ye+dRQe>ygiJ6HCv4;~3DHtJ({fWeE~$H@mKn@Oh6Z(_sO>01JwH5oA4nvK zr5Sr^g+LC zLt(i&ecdmqsIJGNOSUyUpglvhhrY8lGkzO=0USEKNL%8zHshS>Qziu|`eyWP^5xL4 zRP122_dCJl>hZc~?58w~>`P_s18VoU|7(|Eit0-lZRgLTZKNq5{k zE?V=`7=R&ro(X%LTS*f+#H-mGo_j3dm@F_krAYegDLk6UV{`UKE;{YSsn$ z(yz{v1@p|p!0>g04!eRSrSVb>MQYPr8_MA|MpoGzqyd*$@4j|)cD_%^Hrd>SorF>@ zBX+V<@vEB5PRLGR(uP9&U&5=(HVc?6B58NJT_igiAH*q~Wb`dDZpJSKfy5#Aag4IX zj~uv74EQ_Q_1qaXWI!7Vf@ZrdUhZFE;L&P_Xr8l@GMkhc#=plV0+g(ki>+7fO%?Jb zl+bTy7q{w^pTb{>(Xf2q1BVdq?#f=!geqssXp z4pMu*q;iiHmA*IjOj4`4S&|8@gSw*^{|PT}Aw~}ZXU`6=vZB=GGeMm}V6W46|pU&58~P+?LUs%n@J}CSrICkeng6YJ^M? zS(W?K4nOtoBe4tvBXs@@`i?4G$S2W&;$z8VBSM;Mn9 zxcaEiQ9=vS|bIJ>*tf9AH~m&U%2+Dim<)E=}KORp+cZ^!@wI`h1NVBXu{@%hB2Cq(dXx_aQ9x3mr*fwL5!ZryQqi|KFJuzvP zK1)nrKZ7U+B{1ZmJub?4)Ln^J6k!i0t~VO#=q1{?T)%OV?MN}k5M{}vjyZu#M0_*u z8jwZKJ#Df~1jcLXZL7bnCEhB6IzQZ-GcoQJ!16I*39iazoVGugcKA{lhiHg4Ta2fD zk1Utyc5%QzZ$s3;p0N+N8VX{sd!~l*Ta3|t>lhI&G`sr6L~G5Lul`>m z{!^INm?J|&7X=;{XveF!(b*=?9NAp4y&r&N3(GKcW4rS(Ejk|Lzs1PrxPI_owB-`H zg3(Rruh^&)`TKA6+_!n>RdI6pw>Vt1_j&+bKIaMTYLiqhZ#y_=J8`TK{Jd<7l9&sY z^^`hmi7^14s16B6)1O;vJWOF$=$B5ONW;;2&|pUvJlmeUS&F;DbSHCrEb0QBDR|my zIs+pE0Y^`qJTyH-_mP=)Y+u^LHcuZhsM3+P||?+W#V!_6E-8boP#R-*na4!o-Q1 zVthtYhK{mDhF(&7Okzo9dTi03X(AE{8cH$JIg%MEQca`S zy@8{Fjft~~BdzWC(di#X{ny;!yYGK9b@=b|zcKZ{vv4D8i+`ilOPl;PJl{!&5-0!w z^fOl#|}vVg%=n)@_e1BrP)`A zKPgs`O0EO}Y2KWLuo`iGaKu1k#YR6BMySxQf2V++Wo{6EHmK>A~Q5o73yM z-RbxC7Qdh0Cz!nG+7BRZE>~FLI-?&W_rJUl-8FDIaXoNBL)@1hwKa^wOr1($*5h~T zF;%f^%<$p8Y_yu(JEg=c_O!aZ#)Gjh$n(hfJAp$C2he555W5zdrBqjFmo|VY+el;o z=*D_w|GXG|p0**hQ7~9-n|y5k%B}TAF0iarDM!q-jYbR^us(>&y;n^2l0C%@2B}KM zyeRT9)oMt97Agvc4sEKUEy%MpXr2vz*lb zh*L}}iG>-pqDRw7ud{=FvTD?}xjD)w{`KzjNom-$jS^;iw0+7nXSnt1R@G|VqoRhE%12nm+PH?9`(4rM0kfrZzIK9JU=^$YNyLvAIoxl#Q)xxDz!^0@zZ zSCs$nfcxK_vRYM34O<1}QHZ|hp4`ioX3x8(UV(FU$J@o%tw3t4k1QPmlEpZa2IujG&(roX_q*%e`Hq|);0;@k z0z=fZiFckp#JzW0p+2A+D$PC~IsakhJJkG(c;CqAgFfU0Z`u$PzG~-9I1oPHrCw&)@s^Dc~^)#HPW0Ra}J^=|h7Fs*<8|b13ZzG6MP*Q1dkoZ6&A^!}|hbjM{2HpqlSXv_UUg1U4gn z3Q)2VjU^ti1myodv+tjhSZp%D978m~p& z43uZUrraHs80Mq&vcetqfQpQP?m!CFj)44t8Z}k`E798wxg&~aCm+DBoI+nKq}&j^ zlPY3W$)K;KtEajks1`G?-@me7C>{PiiBu+41#yU_c(dITaqE?IQ(DBu+c^Ux!>pCj zLC|HJGU*v+!it1(;3e`6igkH(VA)-S+k(*yqxMgUah3$@C zz`7hEM47xr>j8^g`%*f=6S5n>z%Bt_Fg{Tvmr+MIsCx=0gsu_sF`q2hlkEmisz#Fy zj_0;zUWr;Gz}$BS%Y`meb(=$d%@Crs(OoJ|}m#<7=-A~PQbyN$x%2iXP2@e*nO0b7AwfH8cCUa*Wfu@b)D_>I*%uE4O3 z(lfnB`-Xf*LfC)E}e?%X2kK7DItK6Tf<+M^mX0Ijf_!IP>7c8IZX%8_#0060P{QMuV^B9i<^E`_Qf0pv9(P%_s8D`qvDE9LK9u-jB}J2S`(mCO&XHTS04Z5Ez*vl^T%!^$~EH8M-UdwhegL>3IQ*)(MtuH2Xt1p!fS4o~*rR?WLxlA!sjc2(O znjJn~wQ!Fp9s2e^IWP1C<4%sFF}T4omr}7+4asciyo3DntTgWIzhQpQirM$9{EbQd z3jz9vS@{aOqTQHI|l#aUV@2Q^Wko4T0T04Me4!2nsdrA8QY1%fnAYb~d2GDz@lAtfcHq(P7 zaMBAGo}+NcE-K*@9y;Vt3*(aCaMKXBB*BJcD_Qnxpt75r?GeAQ}*|>pYJE=uZb73 zC>sv)18)q#EGrTG6io*}JLuB_jP3AU1Uiu$D7r|2_zlIGb9 zjhst#ni)Y`$)!fc#reM*$~iaYoz~_Cy7J3ZTiPm)E?%`fbk`3Tu-F#`{i!l5pNEn5 zO-Tw-=TojYhzT{J=?SZj=Z8#|eoF>434b-DXiUsignxXNaR3 zm_}4iWU$gt2Mw5NvZ5(VpF`?X*f2UZDs1TEa1oZCif?Jdgr{>O~7}-$|BZ7I(IKW`{f;@|IZFX*R8&iT= zoWstN8&R;}@2Ka%d3vrLtR|O??ben;k8QbS-WB0VgiCz;<$pBmIZdN!aalyCSEm)crpS9dcD^Y@XT1a3+zpi-`D}e#HV<} z$Y(G&o~PvL-xSVD5D?JqF3?B9rxGWeb=oEGJ3vRp5xfBPlngh1O$yI95EL+T8{GC@ z98i1H9KhZGFl|;`)_=QpM6H?eDPpw~^(aFQWwyXZ8_EEE4#@QeT_URray*mEOGsGc z6|sdXtq!hVZo=d#+9^@lm&L5|q&-GDCyUx#YQiccq;spOBe3V+VKdjJA=IL=Zn%P} zNk=_8u}VhzFf{UYZV0`lUwcD&)9AFx0@Fc6LD9A6Rd1=ga>Mi0)_QxM2ddCVRmZ0d z+J=uXc(?5JLX3=)e)Jm$HS2yF`44IKhwRnm2*669_J=2LlwuF5$1tAo@ROSU@-y+;Foy2IEl2^V1N;fk~YR z?&EP8#t&m0B=?aJeuz~lHjAzRBX>&x=A;gIvb>MD{XEV zV%l-+9N-)i;YH%nKP?>f`=?#`>B(`*t`aiPLoQM(a6(qs4p5KFjDBN?8JGrf3z8>= zi7sD)c)Nm~x{e<^jy4nTx${P~cwz_*a>%0_;ULou3kHCAD7EYkw@l$8TN#LO9jC( z1BeFW`k+bu5e8Ns^a8dPcjEVHM;r6UX+cN=Uy7HU)j-myRU0wHd$A1fNI~`4;I~`zC)3ul#8#^rXVSO*m}Ag>c%_;nj=Nv$rCZ z*~L@C@OZg%Q^m)lc-kcX&a*a5`y&DaRxh6O*dfhLfF+fU5wKs(1v*!TkZidw*)YBP za@r`3+^IHRFeO%!ai%rxy;R;;V^Fr=OJlpBX;(b*3+SIw}7= zIq$*Thr(Zft-RlY)D3e8V;BmD&HOfX+E$H#Y@B3?UL5L~_fA-@*IB-!gItK7PIgG9 zgWuGZK_nuZjHVT_Fv(XxtU%)58;W39vzTI2n&)&4Dmq7&JX6G>XFaAR{7_3QB6zsT z?$L8c*WdN~nZGiscY%5KljQARN;`w$gho=p006z;n(qIQ*Zu<``TMO3n0{ARL@gYh zoRwS*|Niw~cR!?hE{m*y@F`1)vx-JRfqET=dJ5_(076st(=lFfjtKHoYg`k3oNmo_ zNbQEw8&sO5jAYmkD|Zaz_yUb0rC})U!rCHOl}JhbYIDLzLvrZVw0~JO`d*6f;X&?V=#T@ND*cv^I;`sFeq4 z##H5;gpZTb^0Hz@3C*~u0AqqNZ-r%rN3KD~%Gw`0XsIq$(^MEb<~H(2*5G^<2(*aI z%7}WB+TRlMIrEK#s0 z93xn*Ohb=kWFc)BNHG4I(~RPn-R8#0lqyBBz5OM6o5|>x9LK@%HaM}}Y5goCQRt2C z{j*2TtT4ne!Z}vh89mjwiSXG=%DURar~=kGNNaO_+Nkb+tRi~Rkf!7a$*QlavziD( z83s4GmQ^Wf*0Bd04f#0HX@ua_d8 z23~z*53ePD6@xwZ(vdl0DLc=>cPIOPOdca&MyR^jhhKrdQO?_jJh`xV3GKz&2lvP8 zEOwW6L*ufvK;TN{=S&R@pzV^U=QNk^Ec}5H z+2~JvEVA{`uMAr)?Kf|aW>33`)UL@bnfIUQc~L;TsTQ6>r-<^rB8uoNOJ>HWgqMI8 zSW}pZmp_;z_2O5_RD|fGyTxaxk53Hg_3Khc<8AUzV|ZeK{fp|Ne933=1&_^Dbv5^u zB9n=*)k*tjHDRJ@$bp9mrh}qFn*s}npMl5BMDC%Hs0M0g-hW~P*3CNG06G!MOPEQ_ zi}Qs-6M8aMt;sL$vlmVBR^+Ry<64jrm1EI1%#j?c?4b*7>)a{aDw#TfTYKq+SjEFA z(aJ&z_0?0JB83D-i3Vh+o|XV4UP+YJ$9Boid2^M2en@APw&wx7vU~t$r2V`F|7Qfo z>WKgI@eNBZ-+Og<{u2ZiG%>YvH2L3fNpV9J;WLJoBZda)01Rn;o@){01{7E#ke(7U zHK>S#qZ(N=aoae*4X!0A{)nu0R_sKpi1{)u>GVjC+b5Jyl6#AoQ-1_3UDovNSo`T> z?c-@7XX*2GMy?k?{g)7?Sv;SJkmxYPJPs!&QqB12ejq`Lee^-cDveVWL^CTUldb(G zjDGe(O4P=S{4fF=#~oAu>LG>wrU^z_?3yt24FOx>}{^lCGh8?vtvY$^hbZ)9I0E3r3NOlb9I?F-Yc=r$*~l`4N^xzlV~N zl~#oc>U)Yjl0BxV>O*Kr@lKT{Z09OXt2GlvE38nfs+DD7exl|&vT;)>VFXJVZp9Np zDK}aO;R3~ag$X*|hRVY3OPax|PG`@_ESc8E!mHRByJbZQRS38V2F__7MW~sgh!a>98Q2%lUNFO=^xU52|?D=IK#QjwBky-C>zOWlsiiM&1n z;!&1((Xn1$9K}xabq~222gYvx3hnZPg}VMF_GV~5ocE=-v>V=T&RsLBo&`)DOyIj* zLV{h)JU_y*7SdRtDajP_Y+rBkNN*1_TXiKwHH2&p51d(#zv~s#HwbNy?<+(=9WBvo zw2hkk2Dj%kTFhY+$T+W-b7@qD!bkfN#Z2ng@Pd=i3-i?xYfs5Z*1hO?kd7Sp^9`;Y zM2jeGg<-nJD1er@Pc_cSY7wo5dzQX44=%6rn}P_SRbpzsA{6B+!$3B0#;}qwO37G^ zL(V_5JK`XT?OHVk|{_$vQ|oNEpab*BO4F zUTNQ7RUhnRsU`TK#~`)$icsvKh~(pl=3p6m98@k3P#~upd=k*u20SNcb{l^1rUa)>qO997)pYRWMncC8A&&MHlbW?7i^7M`+B$hH~Y|J zd>FYOGQ;j>Zc2e7R{KK7)0>>nn_jYJy&o@sK!4G>-rLKM8Hv)f;hi1D2fAc$+six2 zyVZ@wZ6x|fJ!4KrpCJY=!Mq0;)X)OoS~{Lkh6u8J`eK%u0WtKh6B>GW_)PVc zl}-k`p09qwGtZ@VbYJC!>29V?Dr>>vk?)o(x?!z*9DJ||9qG-&G~#kXxbw{KKYy}J zQKa-dPt~M~E}V?PhW0R26xdA%1T*%ra6SguGu50YHngOTIv)@N|YttEXo#OZfgtP7;H?EeZZxo<}3YlYxtBq znJ!WFR^tmGf0Py}N?kZ(#=VtpC@%xJkDmfcCoBTxq zr_|5gP?u1@vJZbxPZ|G0AW4=tpb84gM2DpJU||(b8kMOV1S3|(yuwZJ&rIiFW(U;5 zUtAW`O6F6Zy+eZ1EDuP~AAHlSY-+A_eI5Gx)%*uro5tljy}kCZU*_d7)oJ>oQSZ3* zneTn`{gnNC&uJd)0aMBzAg021?YJ~b(fmkwZAd696a=0NzBAqBN54KuNDwa*no(^O z6p05bioXUR^uXjpTol*ppHp%1v9e)vkoUAUJyBx3lw0UO39b0?^{}yb!$yca(@DUn zCquRF?t=Zb9`Ed3AI6|L{eX~ijVH`VzSMheKoP7LSSf4g>md>`yi!TkoG5P>Ofp+n z(v~rW+(5L96L{vBb^g51B=(o)?%%xhvT*A5btOpw(TKh^g^4c zw>0%X!_0`{iN%RbVk+A^f{w-4-SSf*fu@FhruNL##F~sF24O~u zyYF<3el2b$$wZ_|uW#@Ak+VAGk#e|kS8nL1g>2B-SNMjMp^8;-FfeofY2fphFHO!{ z*!o4oTb{4e;S<|JEs<1_hPsmAlVNk?_5-Fp5KKU&d#FiNW~Y+pVFk@Cua1I{T+1|+ zHx6rFMor)7L)krbilqsWwy@T+g3DiH5MyVf8Wy}XbEaoFIDr~y;@r&I>FMW{ z?Q+(IgyebZ)-i4jNoXQhq4Muy9Fv+OxU;9_Jmn+<`mEC#%2Q_2bpcgzcinygNI!&^ z=V$)o2&Yz04~+&pPWWn`rrWxJ&}8khR)6B(--!9Q zubo}h+1T)>a@c)H^i``@<^j?|r4*{;tQf78(xn0g39IoZw0(CwY1f<%F>kEaJ zp9u|IeMY5mRdAlw*+gSN^5$Q)ShM<~E=(c8QM+T-Qk)FyKz#Sw0EJ*edYcuOtO#~Cx^(M7w5 z3)rl#L)rF|(Vun2LkFr!rg8Q@=r>9p>(t3Gf_auiJ2Xx9HmxYTa|=MH_SUlYL`mz9 zTTS$`%;D-|Jt}AP1&k7PcnfFNTH0A-*FmxstjBDiZX?}%u%Yq94$fUT&z6od+(Uk> zuqsld#G(b$G8tus=M!N#oPd|PVFX)?M?tCD0tS%2IGTfh}3YA3f&UM)W$_GNV8 zQo+a(ml2Km4o6O%gKTCSDNq+#zCTIQ1*`TIJh~k6Gp;htHBFnne))rlFdGqwC6dx2+La1&Mnko*352k0y z+tQcwndQlX`nc6nb$A9?<-o|r*%aWXV#=6PQic0Ok_D;q>wbv&j7cKc!w4~KF#-{6 z(S%6Za)WpGIWf7jZ3svNG5OLs0>vCL9{V7cgO%zevIVMH{WgP*^D9ws&OqA{yr|m| zKD4*07dGXshJHd#e%x%J+qmS^lS|0Bp?{drv;{@{l9ArPO&?Q5=?OO9=}h$oVe#3b z3Yofj&Cb}WC$PxmRRS)H%&$1-)z7jELS}!u!zQ?A^Y{Tv4QVt*vd@uj-^t2fYRzQj zfxGR>-q|o$3sGn^#VzZ!QQx?h9`njeJry}@x?|k0-GTTA4y3t2E`3DZ!A~D?GiJup z)8%PK2^9OVRlP(24P^4_<|D=H^7}WlWu#LgsdHzB%cPy|f8dD3|A^mh4WXxhLTVu_ z@abE{6Saz|Y{rXYPd4$tfPYo}ef(oQWZ=4Bct-=_9`#Qgp4ma$n$`tOwq#&E18$B; z@Bp)bn3&rEi0>fWWZ@7k5WazfoX`SCO4jQWwVuo+$PmSZn^Hz?O(-tW@*DGxuf)V1 zO_xm&;NVCaHD4dqt(-MlszI3F-p?0!-e$fbiCeuaw66h^TTDLWuaV<@C-`=Xe5WL) zwooG7h>4&*)p3pKMS3O!4>-4jQUN}iAMQ)2*70?hP~)TzzR?-f@?Aqy$$1Iy8VGG$ zMM?8;j!pUX7QQD$gRc_#+=raAS577ga-w?jd`vCiN5lu)dEUkkUPl9!?{$IJNxQys z*E4e$eF&n&+AMRQR2gcaFEjAy*r)G!s(P6D&TfoApMFC_*Ftx0|D0@E-=B7tezU@d zZ{hGiN;YLIoSeRS;9o%dEua4b%4R3;$SugDjP$x;Z!M!@QibuSBb)HY!3zJ7M;^jw zlx6AD50FD&p3JyP*>o+t9YWW8(7P2t!VQQ21pHJOcG_SXQD;(5aX#M6x##5H_Re>6lPyDCjxr*R(+HE%c&QN+b^tbT zXBJk?p)zhJj#I?&Y2n&~XiytG9!1ox;bw5Rbj~)7c(MFBb4>IiRATdhg zmiEFlj@S_hwYYI(ki{}&<;_7(Z0Qkfq>am z&LtL=2qc7rWguk3BtE4zL41@#S;NN*-jWw|7Kx7H7~_%7fPt;TIX}Ubo>;Rmj94V> zNB1=;-9AR7s`Pxn}t_6^3ahlq53e&!Lh85uG zec0vJY_6e`tg7LgfrJ3k!DjR)Bi#L@DHIrZ`sK=<5O0Ip!fxGf*OgGSpP@Hbbe&$9 z;ZI}8lEoC2_7;%L2=w?tb%1oL0V+=Z`7b=P&lNGY;yVBazXRYu;+cQDKvm*7NCxu&i;zub zAJh#11%?w>E2rf2e~C4+rAb-&$^vsdACs7 z@|Ra!OfVM(ke{vyiqh7puf&Yp6cd6{DptUteYfIRWG3pI+5< zBVBI_xkBAc<(pcb$!Y%dTW(b;B;2pOI-(QCsLv@U-D1XJ z(Gk8Q3l7Ws46Aktuj>|s{$6zA&xCPuXL-kB`CgYMs}4IeyG*P51IDwW?8UNQd+$i~ zlxOPtSi5L|gJcF@DwmJA5Ju8HEJ>o{{upwIpb!f{2(vLNBw`7xMbvcw<^{Fj@E~1( z?w`iIMieunS#>nXlmUcSMU+D3rX28f?s7z;X=se6bo8;5vM|O^(D6{A9*ChnGH!RG zP##3>LDC3jZPE4PH32AxrqPk|yIIrq~`aL-=}`okhNu9aT%q z1b)7iJ)CN=V#Ly84N_r7U^SH2FGdE5FpTO2 z630TF$P>GNMu8`rOytb(lB2};`;P4YNwW1<5d3Q~AX#P0aX}R2b2)`rgkp#zTxcGj zAV^cvFbhP|JgWrq_e`~exr~sIR$6p5V?o4Wym3kQ3HA+;Pr$bQ0(PmADVO%MKL!^q z?zAM8j1l4jrq|5X+V!8S*2Wl@=7*pPgciTVK6kS1Ge zMsd_u6DFK$jTnvVtE;qa+8(1sGBu~n&F%dh(&c(Zs4Fc#A=gG^^%^AyH}1^?|8quj zl@Z47h$){PlELJgYZCIHHL= z{U8O>Tw4x3<1{?$8>k-P<}1y9DmAZP_;(3Y*{Sk^H^A=_iSJ@+s5ktgwTXz_2$~W9>VVZsfwCm@s0sQ zeB50_yu@uS+e7QoPvdCwDz{prjo(AFwR%C?z`EL{1`|coJHQTk^nX=tvs1<0arUOJ z!^`*x&&BvTYmemyZ)2p~{%eYX=JVR?DYr(rNgqRMA5E1PR1Iw=prk=L2ldy3r3Vg@27IZx43+ywyzr-X*p*d@tZV+!U#~$-q=8c zgdSuh#r?b4GhEGNai)ayHQpk>5(%j5c@C1K3(W1pb~HeHpaqijJZa-e6vq_8t-^M^ zBJxq|MqZc?pjXPIH}70a5vt!IUh;l}<>VX<-Qcv^u@5(@@M2CHSe_hD$VG-eiV^V( zj7*9T0?di?P$FaD6oo?)<)QT>Npf6Og!GO^GmPV(Km0!=+dE&bk#SNI+C9RGQ|{~O*VC+tXK3!n`5 zHfl6>lwf_aEVV3`0T!aHNZLsj$paS$=LL(?b!Czaa5bbSuZ6#$_@LK<(7yrrl+80| z{tOFd=|ta2Z`^ssozD9BINn45NxUeCQis?-BKmU*Kt=FY-NJ+)8S1ecuFtN-M?&42 zl2$G>u!iNhAk*HoJ^4v^9#ORYp5t^wDj6|lx~5w45#E5wVqI1JQ~9l?nPp1YINf++ zMAdSif~_ETv@Er(EFBI^@L4BULFW>)NI+ejHFP*T}UhWNN`I)RRS8za? z*@`1>9ZB}An%aT5K=_2iQmfE;GcBVHLF!$`I99o5GO`O%O_zLr9AG18>&^HkG(;=V z%}c!OBQ~?MX(9h~tajX{=x)+!cbM7$YzTlmsPOdp2L-?GoW`@{lY9U3f;OUo*BwRB z8A+nv(br0-SH#VxGy#ZrgnGD(=@;HME;yd46EgWJ`EL%oXc&lFpc@Y}^>G(W>h_v_ zlN!`idhX+OjL+~T?19sroAFVGfa5tX-D49w$1g2g_-T|EpHL6}K_aX4$K=LTvwtlF zL*z}j{f+Uoe7{-px3_5iKPA<_7W=>Izkk)!l9ez2w%vi(?Y;i8AxRNLSOGDzNoqoI zP!1uAl}r=_871(G?y`i&)-7{u=%nxk7CZ_Qh#!|ITec zwQn`33GTUM`;D2POWnkqngqJhJRlM>CTONzTG}>^Q0wUunQyn|TAiHzyX2_%ATx%P z%7gW)%4rA9^)M<_%k@`Y?RbC<29sWU&5;@|9thf2#zf8z12$hRcZ!CSb>kUp=4N#y zl3hE#y6>kkA8VY2`W`g5Ip?2qC_BY$>R`iGQLhz2-S>x(RuWv)SPaGdl^)gGw7tjR zH@;jwk!jIaCgSg_*9iF|a);sRUTq30(8I(obh^|}S~}P4U^BIGYqcz;MPpC~Y@k_m zaw4WG1_vz2GdCAX!$_a%GHK**@IrHSkGoN>)e}>yzUTm52on`hYot7cB=oA-h1u|R ztH$11t?54Qg2L+i33FPFKKRm1aOjKST{l1*(nps`>sv%VqeVMWjl5+Gh+9);hIP8? zA@$?}Sc z3qIRpba+y5yf{R6G(u8Z^vkg0Fu&D-7?1s=QZU`Ub{-!Y`I?AGf1VNuc^L3v>)>i# z{DV9W$)>34wnzAXUiV^ZpYKw>UElrN_5Xj6{r_3| z$X5PK`e5$7>~9Dj7gK5ash(dvs`vwfk}&RD`>04;j62zoXESkFBklYaKm5seyiX(P zqQ-;XxlV*yg?Dhlx%xt!b0N3GHp@(p$A;8|%# zZ5m2KL|{on4nr>2_s9Yh=r5ScQ0;aMF)G$-9-Ca6%wA`Pa)i?NGFA|#Yi?{X-4ZO_ z^}%7%vkzvUHa$-^Y#aA+aiR5sa%S|Ebyn`EV<3Pc?ax_f>@sBZF1S;7y$CXd5t5=WGsTKBk8$OfH4v|0?0I=Yp}7c=WBSCg!{0n)XmiU;lfx)**zZaYqmDJelxk$)nZyx5`x$6R|fz(;u zEje5Dtm|a%zK!!tk3{i9$I2b{vXNFy%Bf{50X!x{98+BsDr_u9i>G5%*sqEX|06J0 z^IY{UcEbj6LDwuMh7cH`H@9sVt1l1#8kEQ(LyT@&+K}(ReE`ux8gb0r6L_#bDUo^P z3Ka2lRo52Hdtl_%+pwVs14=q`{d^L58PsU@AMf(hENumaxM{7iAT5sYmWh@hQCO^ zK&}ijo=`VqZ#a3vE?`7QW0ZREL17ZvDfdqKGD?0D4fg{7v%|Yj&_jcKJAB)>=*RS* zto8p6@k%;&^ZF>hvXm&$PCuEp{uqw3VPG$9VMdW5$w-fy2CNNT>E;>ejBgy-m_6`& z97L1p{%srn@O_JQgFpa_#f(_)eb#YS>o>q3(*uB;uZb605(iqM$=NK{nHY=+X2*G) zO3-_Xh%aG}fHWe*==58zBwp%&`mge<8uq8;xIxOd=P%9EK!34^E9sk|(Zq1QSz-JVeP12Fp)-`F|KY$LPwUE?rku zY@OJ)Z9A!ojfzfeyJ9;zv2EM7ZQB)AR5xGa-tMn^bl)FmoIiVyJ@!~@%{}qXXD&Ns zPnfe5U+&ohKefILu_1mPfLGuapX@btta5C#gPB2cjk5m4T}Nfi+Vfka!Yd(L?-c~5 z#ZK4VeQEXNPc4r$K00Fg>g#_W!YZ)cJ?JTS<&68_$#cZT-ME`}tcwqg3#``3M3UPvn+pi}(VNNx6y zFIMVb6OwYU(2`at$gHba*qrMVUl8xk5z-z~fb@Q3Y_+aXuEKH}L+>eW__!IAd@V}L zkw#s%H0v2k5-=vh$^vPCuAi22Luu3uKTf6fPo?*nvj$9(u)4$6tvF-%IM+3pt*cgs z_?wW}J7VAA{_~!?))?s6{M=KPpVhg4fNuU*|3THp@_(q!b*hdl{fjRVFWtu^1dV(f z6iOux9hi&+UK=|%M*~|aqFK{Urfl!TA}UWY#`w(0P!KMe1Si{8|o))Gy6d7;!JQYhgMYmXl?3FfOM2nQGN@~Ap6(G z3+d_5y@=nkpKAhRqf{qQ~k7Z$v&l&@m7Ppt#FSNzKPZM z8LhihcE6i=<(#87E|Wr~HKvVWhkll4iSK$^mUHaxgy8*K$_Zj;zJ`L$naPj+^3zTi z-3NTaaKnD5FPY-~?Tq6QHnmDDRxu0mh0D|zD~Y=vv_qig5r-cIbCpxlju&8Sya)@{ zsmv6XUSi)@(?PvItkiZEeN*)AE~I_?#+Ja-r8$(XiXei2d@Hi7Rx8+rZZb?ZLa{;@*EHeRQ-YDadz~M*YCM4&F-r;E#M+@CSJMJ0oU|PQ^ z=E!HBJDMQ2TN*Y(Ag(ynAL8%^v;=~q?s4plA_hig&5Z0x_^Oab!T)@6kRN$)qEJ6E zNuQjg|G7iwU(N8pI@_6==0CL;lRh1dQF#wePhmu@hADFd3B5KIH#dx(2A zp~K&;Xw}F_N6CU~0)QpQk7s$a+LcTOj1%=WXI(U=Dv!6 z{#<#-)2+gCyyv=Jw?Ab#PVkxPDeH|sAxyG`|Ys}A$PW4TdBv%zDz z^?lwrxWR<%Vzc8Sgt|?FL6ej_*e&rhqJZ3Y>k=X(^dytycR;XDU16}Pc9Vn0>_@H+ zQ;a`GSMEG64=JRAOg%~L)x*w{2re6DVprNp+FcNra4VdNjiaF0M^*>CdPkt(m150rCue?FVdL0nFL$V%5y6N z%eLr5%YN7D06k5ji5*p4v$UMM)G??Q%RB27IvH7vYr_^3>1D-M66#MN8tWGw>WED} z5AhlsanO=STFYFs)Il_0i)l)f<8qn|$DW7ZXhf5xI;m+7M5-%P63XFQrG9>DMqHc} zsgNU9nR`b}E^mL5=@7<1_R~j@q_2U^3h|+`7YH-?C=vme1C3m`Fe0HC>pjt6f_XMh zy~-i-8R46QNYneL4t@)<0VU7({aUO?aH`z4V2+kxgH5pYD5)wCh75JqQY)jIPN=U6 z+qi8cGiOtXG2tXm;_CfpH9ESCz#i5B(42}rBJJF$jh<1sbpj^8&L;gzGHb8M{of+} zzF^8VgML2O9nxBW7AvdEt90vp+#kZxWf@A)o9f9}vKJy9NDBjBW zSt=Hcs=YWCwnfY1UYx*+msp{g!w0HC<_SM!VL1(I2PE?CS}r(eh?{I)mQixmo5^p# zV?2R!R@3GV6hwTCrfHiK#3Orj>I!GS2kYhk1S;aFBD_}u2v;0HYFq}Iz1Z(I4oca4 zxquja8$+8JW_EagDHf$a1OTk5S97umGSDaj)gH=fLs9>_=XvVj^Xj9a#gLdk=&3tl zfmK9MNnIX9v{?%xdw7568 zNrZ|roYs(vC4pHB5RJ8>)^*OuyNC>x7ad)tB_}3SgQ96+-JT^Qi<`xi=)_=$Skwv~ zdqeT9Pa`LYvCAn&rMa2aCDV(TMI#PA5g#RtV|CWpgDYRA^|55LLN^uNh*gOU>Z=a06qJ;$C9z8;n-Pq=qZnc1zUwJ@t)L;&NN+E5m zRkQ(SeM8=l-aoAKGKD>!@?mWTW&~)uF2PYUJ;tB^my`r9n|Ly~0c%diYzqs9W#FTjy?h&X3TnH zXqA{QI82sdjPO->f=^K^f>N`+B`q9&rN0bOXO79S&a9XX8zund(kW7O76f4dcWhIu zER`XSMSFbSL>b;Rp#`CuGJ&p$s~G|76){d?xSA5wVg##_O0DrmyEYppyBr%fyWbbv zp`K84JwRNP$d-pJ!Qk|(RMr?*!wi1if-9G#0p>>1QXKXWFy)eB3ai)l3601q8!9JC zvU#ZWWDNKq9g6fYs?JQ)Q4C_cgTy3FhgKb8s&m)DdmL5zhNK#8wWg!J*7G7Qhe9VU zha?^AQTDpYcuN!B+#1dE*X{<#!M%zfUQbj=zLE{dW0XeQ7-oIsGY6RbkP2re@Q{}r_$iiH0xU%iN*ST`A)-EH6eaZB$GA#v)cLi z*MpA(3bYk$oBDKAzu^kJoSUsDd|856DApz={3u8sbQV@JnRkp2nC|)m;#T=DvIL-O zI4vh;g7824l}*`_p@MT4+d`JZ2%6NQh=N9bmgJ#q!hK@_<`HQq3}Z8Ij>3%~<*= zcv=!oT#5xmeGI92lqm9sGVE%#X$ls;St|F#u!?5Y7syhx6q#MVRa&lBmmn%$C0QzU z);*ldgwwCmzM3uglr}!Z2G+?& zf%Dpo&mD%2ZcNFiN-Z0f;c_Q;A%f@>26f?{d1kxIJD}LxsQkB47SAdwinfMILZdN3 zfj^HmTzS3Ku5BxY>ANutS8WPQ-G>v4^_Qndy==P3pDm+Xc?>rUHl-4+^%Sp5atOja z2oP}ftw-rqnb}+khR3CrRg^ibi6?QYk1*i^;kQGirQ=uB9Sd1NTfT-Rbv;hqnY4neE5H1YUrjS2m+2&@uXiAo- zrKUX|Ohg7(6F(AoP~tj;NZlV#xsfo-5reuQHB$&EIAhyZk;bL;k9ouDmJNBAun;H& zn;Of1z_Qj`x&M;5X;{s~iGzBQTY^kv-k{ksbE*Dl%Qf%N@hQCfY~iUw!=F-*$cpf2 z3wix|aLBV0b;W@z^%7S{>9Z^T^fLOI68_;l@+Qzaxo`nAI8emTV@rRhEKZ z?*z_{oGdI~R*#<2{bkz$G~^Qef}$*4OYTgtL$e9q!FY7EqxJ2`zk6SQc}M(k(_MaV zSLJnTXw&@djco1~a(vhBl^&w=$fa9{Sru>7g8SHahv$&Bl(D@(Zwxo_3r=;VH|uc5 zi1Ny)J!<(KN-EcQ(xlw%PNwK8U>4$9nVOhj(y0l9X^vP1TA>r_7WtSExIOsz`nDOP zs}d>Vxb2Vo2e5x8p(n~Y5ggAyvib>d)6?)|E@{FIz?G3PVGLf7-;BxaP;c?7ddH$z zA+{~k^V=bZuXafOv!RPsE1GrR3J2TH9uB=Z67gok+u`V#}BR86hB1xl}H4v`F+mRfr zYhortD%@IGfh!JB(NUNSDh+qDz?4ztEgCz&bIG-Wg7w-ua4ChgQR_c+z8dT3<1?uX z*G(DKy_LTl*Ea!%v!RhpCXW1WJO6F`bgS-SB;Xw9#! z<*K}=#wVu9$`Yo|e!z-CPYH!nj7s9dEPr-E`DXUBu0n!xX~&|%#G=BeM?X@shQQMf zMvr2!y7p_gD5-!Lnm|a@z8Of^EKboZsTMk%5VsJEm>VsJ4W7Kv{<|#4f-qDE$D-W>gWT%z-!qXnDHhOvLk=?^a1*|0j z{pW{M0{#1VcR5;F!!fIlLVNh_Gj zbnW(_j?0c2q$EHIi@fSMR{OUKBcLr{Y&$hrM8XhPByyZaXy|dd&{hYQRJ9@Fn%h3p7*VQolBIV@Eq`=y%5BU~3RPa^$a?ixp^cCg z+}Q*X+CW9~TL29@OOng(#OAOd!)e$d%sr}^KBJ-?-X&|4HTmtemxmp?cT3uA?md4% zT8yZ0U;6Rg6JHy3fJae{6TMGS?ZUX6+gGTT{Q{)SI85$5FD{g-eR%O0KMpWPY`4@O zx!hen1*8^E(*}{m^V_?}(b5k3hYo=T+$&M32+B`}81~KKZhY;2H{7O-M@vbCzuX0n zW-&HXeyr1%I3$@ns-V1~Lb@wIpkmx|8I~ob1Of7i6BTNysEwI}=!nU%q7(V_^+d*G z7G;07m(CRTJup!`cdYi93r^+LY+`M*>aMuHJm(A8_O8C#A*$!Xvddgpjx5)?_EB*q zgE8o5O>e~9IiSC@WtZpF{4Bj2J5eZ>uUzY%TgWF7wdDE!fSQIAWCP)V{;HsU3ap?4 znRsiiDbtN7i9hapO;(|Ew>Ip2TZSvK9Z^N21%J?OiA_&eP1{(Pu_=%JjKy|HOardq ze?zK^K zA%sjF64*Wufad%H<) z^|t>e*h+Z1#l=5wHexzt9HNDNXgM=-OPWKd^5p!~%SIl>Fo&7BvNpbf8{NXmH)o{r zO=aBJ;meX1^{O%q;kqdw*5k!Y7%t_30 zy{nGRVc&5qt?dBwLs+^Sfp;f`YVMSB#C>z^a9@fpZ!xb|b-JEz1LBX7ci)V@W+kvQ89KWA0T~Lj$aCcfW#nD5bt&Y_< z-q{4ZXDqVg?|0o)j1%l0^_it0WF*LCn-+)c!2y5yS7aZIN$>0LqNnkujV*YVes(v$ zY@_-!Q;!ZyJ}Bg|G-~w@or&u0RO?vlt5*9~yeoPV_UWrO2J54b4#{D(D>jF(R88u2 zo#B^@iF_%S>{iXSol8jpmsZuJ?+;epg>k=$d`?GSegAVp3n$`GVDvK${N*#L_1`44 z{w0fL{2%)0|E+qgZtjX}itZz^KJt4Y;*8uSK}Ft38+3>j|K(PxIXXR-t4VopXo#9# zt|F{LWr-?34y`$nLBVV_*UEgA6AUI65dYIbqpNq9cl&uLJ0~L}<=ESlOm?Y-S@L*d z<7vt}`)TW#f%Rp$Q}6@3=j$7Tze@_uZO@aMn<|si{?S}~maII`VTjs&?}jQ4_cut9$)PEqMukwoXobzaKx^MV z2fQwl+;LSZ$qy%Tys0oo^K=jOw$!YwCv^ei4NBVauL)tN%=wz9M{uf{IB(BxK|lT*pFkmNK_1tV`nb%jH=a0~VNq2RCKY(rG7jz!-D^k)Ec)yS%17pE#o6&eY+ z^qN(hQT$}5F(=4lgNQhlxj?nB4N6ntUY6(?+R#B?W3hY_a*)hnr4PA|vJ<6p`K3Z5Hy z{{8(|ux~NLUW=!?9Qe&WXMTAkQnLXg(g=I@(VG3{HE13OaUT|DljyWXPs2FE@?`iU z4GQlM&Q=T<4&v@Fe<+TuXiZQT3G~vZ&^POfmI1K2h6t4eD}Gk5XFGpbj1n_g*{qmD6Xy z`6Vv|lLZtLmrnv*{Q%xxtcWVj3K4M%$bdBk_a&ar{{GWyu#ljM;dII;*jP;QH z#+^o-A4np{@|Mz+LphTD0`FTyxYq#wY)*&Ls5o{0z9yg2K+K7ZN>j1>N&;r+Z`vI| zDzG1LJZ+sE?m?>x{5LJx^)g&pGEpY=fQ-4}{x=ru;}FL$inHemOg%|R*ZXPodU}Kh zFEd5#+8rGq$Y<_?k-}r5zgQ3jRV=ooHiF|@z_#D4pKVEmn5CGV(9VKCyG|sT9nc=U zEoT67R`C->KY8Wp-fEcjjFm^;Cg(ls|*ABVHq8clBE(;~K^b+S>6uj70g? z&{XQ5U&!Z$SO7zfP+y^8XBbiu*Cv-yJG|l-oe*!s5$@Lh_KpxYL2sx`B|V=dETN>5K+C+CU~a_3cI8{vbu$TNVdGf15*>D zz@f{zIlorkY>TRh7mKuAlN9A0>N>SV`X)+bEHms=mfYTMWt_AJtz_h+JMmrgH?mZt zm=lfdF`t^J*XLg7v+iS)XZROygK=CS@CvUaJo&w2W!Wb@aa?~Drtf`JV^cCMjngVZ zv&xaIBEo8EYWuML+vxCpjjY^s1-ahXJzAV6hTw%ZIy!FjI}aJ+{rE&u#>rs)vzuxz z+$5z=7W?zH2>Eb32dvgHYZtCAf!=OLY-pb4>Ae79rd68E2LkVPj-|jFeyqtBCCwiW zkB@kO_(3wFq)7qwV}bA=zD!*@UhT`geq}ITo%@O(Z5Y80nEX~;0-8kO{oB6|(4fQh z);73T!>3@{ZobPwRv*W?7m0Ml9GmJBCJd&6E?hdj9lV= z4flNfsc(J*DyPv?RCOx!MSvk(M952PJ-G|JeVxWVjN~SNS6n-_Ge3Q;TGE;EQvZg86%wZ`MB zSMQua(i*R8a75!6$QRO^(o7sGoomb+Y{OMy;m~Oa`;P9Yqo>?bJAhqXxLr7_3g_n>f#UVtxG!^F#1+y@os6x(sg z^28bsQ@8rw%Gxk-stAEPRbv^}5sLe=VMbkc@Jjimqjvmd!3E7+QnL>|(^3!R} zD-l1l7*Amu@j+PWLGHXXaFG0Ct2Q=}5YNUxEQHCAU7gA$sSC<5OGylNnQUa>>l%sM zyu}z6i&({U@x^hln**o6r2s-(C-L50tQvz|zHTqW!ir?w&V23tuYEDJVV#5pE|OJu z7^R!A$iM$YCe?8n67l*J-okwfZ+ZTkGvZ)tVPfR;|3gyFjF)8V zyXXN=!*bpyRg9#~Bg1+UDYCt0 ztp4&?t1X0q>uz;ann$OrZs{5*r`(oNvw=$7O#rD|Wuv*wIi)4b zGtq4%BX+kkagv3F9Id6~-c+1&?zny%w5j&nk9SQfo0k4LhdSU_kWGW7axkfpgR`8* z!?UTG*Zi_baA1^0eda8S|@&F z{)Rad0kiLjB|=}XFJhD(S3ssKlveFFmkN{Vl^_nb!o5M!RC=m)V&v2%e?ZoRC@h3> zJ(?pvToFd`*Zc@HFPL#=otWKwtuuQ_dT-Hr{S%pQX<6dqVJ8;f(o)4~VM_kEQkMR+ zs1SCVi~k>M`u1u2xc}>#D!V&6nOOh-E$O&SzYrjJdZpaDv1!R-QGA141WjQe2s0J~ zQ;AXG)F+K#K8_5HVqRoRM%^EduqOnS(j2)|ctA6Q^=|s_WJYU;Z%5bHp08HPL`YF2 zR)Ad1z{zh`=sDs^&V}J z%$Z$!jd7BY5AkT?j`eqMs%!Gm@T8)4w3GYEX~IwgE~`d|@T{WYHkudy(47brgHXx& zBL1yFG6!!!VOSmDxBpefy2{L_u5yTwja&HA!mYA#wg#bc-m%~8aRR|~AvMnind@zs zy>wkShe5&*un^zvSOdlVu%kHsEo>@puMQ`b1}(|)l~E{5)f7gC=E$fP(FC2=F<^|A zxeIm?{EE!3sO!Gr7e{w)Dx(uU#3WrFZ>ibmKSQ1tY?*-Nh1TDHLe+k*;{Rp!Bmd_m zb#^kh`Y*8l|9Cz2e{;RL%_lg{#^Ar+NH|3z*Zye>!alpt{z;4dFAw^^H!6ING*EFc z_yqhr8d!;%nHX9AKhFQZBGrSzfzYCi%C!(Q5*~hX>)0N`vbhZ@N|i;_972WSx*>LH z87?en(;2_`{_JHF`Sv6Wlps;dCcj+8IJ8ca6`DsOQCMb3n# z3)_w%FuJ3>fjeOOtWyq)ag|PmgQbC-s}KRHG~enBcIwqIiGW8R8jFeBNY9|YswRY5 zjGUxdGgUD26wOpwM#8a!Nuqg68*dG@VM~SbOroL_On0N6QdT9?)NeB3@0FCC?Z|E0 z6TPZj(AsPtwCw>*{eDEE}Gby>0q{*lI+g2e&(YQrsY&uGM{O~}(oM@YWmb*F zA0^rr5~UD^qmNljq$F#ARXRZ1igP`MQx4aS6*MS;Ot(1L5jF2NJ;de!NujUYg$dr# z=TEL_zTj2@>ZZN(NYCeVX2==~=aT)R30gETO{G&GM4XN<+!&W&(WcDP%oL8PyIVUC zs5AvMgh6qr-2?^unB@mXK*Dbil^y-GTC+>&N5HkzXtozVf93m~xOUHn8`HpX=$_v2 z61H;Z1qK9o;>->tb8y%#4H)765W4E>TQ1o0PFj)uTOPEvv&}%(_mG0ISmyhnQV33Z$#&yd{ zc{>8V8XK$3u8}04CmAQ#I@XvtmB*s4t8va?-IY4@CN>;)mLb_4!&P3XSw4pA_NzDb zORn!blT-aHk1%Jpi>T~oGLuh{DB)JIGZ9KOsciWs2N7mM1JWM+lna4vkDL?Q)z_Ct z`!mi0jtr+4*L&N7jk&LodVO#6?_qRGVaucqVB8*us6i3BTa^^EI0x%EREQSXV@f!lak6Wf1cNZ8>*artIJ(ADO*=<-an`3zB4d*oO*8D1K!f z*A@P1bZCNtU=p!742MrAj%&5v%Xp_dSX@4YCw%F|%Dk=u|1BOmo)HsVz)nD5USa zR~??e61sO(;PR)iaxK{M%QM_rIua9C^4ppVS$qCT9j2%?*em?`4Z;4@>I(c%M&#cH z>4}*;ej<4cKkbCAjjDsyKS8rIm90O)Jjgyxj5^venBx&7B!xLmzxW3jhj7sR(^3Fz z84EY|p1NauwXUr;FfZjdaAfh%ivyp+^!jBjJuAaKa!yCq=?T_)R!>16?{~p)FQ3LDoMyG%hL#pR!f@P%*;#90rs_y z@9}@r1BmM-SJ#DeuqCQk=J?ixDSwL*wh|G#us;dd{H}3*-Y7Tv5m=bQJMcH+_S`zVtf;!0kt*(zwJ zs+kedTm!A}cMiM!qv(c$o5K%}Yd0|nOd0iLjus&;s0Acvoi-PFrWm?+q9f^FslxGi z6ywB`QpL$rJzWDg(4)C4+!2cLE}UPCTBLa*_=c#*$b2PWrRN46$y~yST3a2$7hEH= zNjux+wna^AzQ=KEa_5#9Ph=G1{S0#hh1L3hQ`@HrVnCx{!fw_a0N5xV(iPdKZ-HOM za)LdgK}1ww*C_>V7hbQnTzjURJL`S%`6nTHcgS+dB6b_;PY1FsrdE8(2K6FN>37!62j_cBlui{jO^$dPkGHV>pXvW0EiOA zqW`YaSUBWg_v^Y5tPJfWLcLpsA8T zG)!x>pKMpt!lv3&KV!-um= zKCir6`bEL_LCFx4Z5bAFXW$g3Cq`?Q%)3q0r852XI*Der*JNuKUZ`C{cCuu8R8nkt z%pnF>R$uY8L+D!V{s^9>IC+bmt<05h**>49R*#vpM*4i0qRB2uPbg8{{s#9yC;Z18 zD7|4m<9qneQ84uX|J&f-g8a|nFKFt34@Bt{CU`v(SYbbn95Q67*)_Esl_;v291s=9 z+#2F2apZU4Tq=x+?V}CjwD(P=U~d<=mfEFuyPB`Ey82V9G#Sk8H_Ob_RnP3s?)S_3 zr%}Pb?;lt_)Nf>@zX~D~TBr;-LS<1I##8z`;0ZCvI_QbXNh8Iv)$LS=*gHr;}dgb=w5$3k2la1keIm|=7<-JD>)U%=Avl0Vj@+&vxn zt-)`vJxJr88D&!}2^{GPXc^nmRf#}nb$4MMkBA21GzB`-Or`-3lq^O^svO7Vs~FdM zv`NvzyG+0T!P8l_&8gH|pzE{N(gv_tgDU7SWeiI-iHC#0Ai%Ixn4&nt{5y3(GQs)i z&uA;~_0shP$0Wh0VooIeyC|lak__#KVJfxa7*mYmZ22@(<^W}FdKjd*U1CqSjNKW% z*z$5$=t^+;Ui=MoDW~A7;)Mj%ibX1_p4gu>RC}Z_pl`U*{_z@+HN?AF{_W z?M_X@o%w8fgFIJ$fIzBeK=v#*`mtY$HC3tqw7q^GCT!P$I%=2N4FY7j9nG8aIm$c9 zeKTxVKN!UJ{#W)zxW|Q^K!3s;(*7Gbn;e@pQBCDS(I|Y0euK#dSQ_W^)sv5pa%<^o zyu}3d?Lx`)3-n5Sy9r#`I{+t6x%I%G(iewGbvor&I^{lhu-!#}*Q3^itvY(^UWXgvthH52zLy&T+B)Pw;5>4D6>74 zO_EBS)>l!zLTVkX@NDqyN2cXTwsUVao7$HcqV2%t$YzdAC&T)dwzExa3*kt9d(}al zA~M}=%2NVNUjZiO7c>04YH)sRelXJYpWSn^aC$|Ji|E13a^-v2MB!Nc*b+=KY7MCm zqIteKfNkONq}uM;PB?vvgQvfKLPMB8u5+Am=d#>g+o&Ysb>dX9EC8q?D$pJH!MTAqa=DS5$cb+;hEvjwVfF{4;M{5U&^_+r zvZdu_rildI!*|*A$TzJ&apQWV@p{!W`=?t(o0{?9y&vM)V)ycGSlI3`;ps(vf2PUq zX745#`cmT*ra7XECC0gKkpu2eyhFEUb?;4@X7weEnLjXj_F~?OzL1U1L0|s6M+kIhmi%`n5vvDALMagi4`wMc=JV{XiO+^ z?s9i7;GgrRW{Mx)d7rj)?(;|b-`iBNPqdwtt%32se@?w4<^KU&585_kZ=`Wy^oLu9 z?DQAh5z%q;UkP48jgMFHTf#mj?#z|=w= z(q6~17Vn}P)J3M?O)x))%a5+>TFW3No~TgP;f}K$#icBh;rSS+R|}l鯊%1Et zwk~hMkhq;MOw^Q5`7oC{CUUyTw9x>^%*FHx^qJw(LB+E0WBX@{Ghw;)6aA-KyYg8p z7XDveQOpEr;B4je@2~usI5BlFadedX^ma{b{ypd|RNYqo#~d*mj&y`^iojR}s%~vF z(H!u`yx68D1Tj(3(m;Q+Ma}s2n#;O~bcB1`lYk%Irx60&-nWIUBr2x&@}@76+*zJ5 ze&4?q8?m%L9c6h=J$WBzbiTf1Z-0Eb5$IZs>lvm$>1n_Mezp*qw_pr8<8$6f)5f<@ zyV#tzMCs51nTv_5ca`x`yfE5YA^*%O_H?;tWYdM_kHPubA%vy47i=9>Bq) zRQ&0UwLQHeswmB1yP)+BiR;S+Vc-5TX84KUA;8VY9}yEj0eESSO`7HQ4lO z4(CyA8y1G7_C;6kd4U3K-aNOK!sHE}KL_-^EDl(vB42P$2Km7$WGqNy=%fqB+ zSLdrlcbEH=T@W8V4(TgoXZ*G1_aq$K^@ek=TVhoKRjw;HyI&coln|uRr5mMOy2GXP zwr*F^Y|!Sjr2YQXX(Fp^*`Wk905K%$bd03R4(igl0&7IIm*#f`A!DCarW9$h$z`kYk9MjjqN&5-DsH@8xh63!fTNPxWsFQhNv z#|3RjnP$Thdb#Ys7M+v|>AHm0BVTw)EH}>x@_f4zca&3tXJhTZ8pO}aN?(dHo)44Z z_5j+YP=jMlFqwvf3lq!57-SAuRV2_gJ*wsR_!Y4Z(trO}0wmB9%f#jNDHPdQGHFR; zZXzS-$`;7DQ5vF~oSgP3bNV$6Z(rwo6W(U07b1n3UHqml>{=6&-4PALATsH@Bh^W? z)ob%oAPaiw{?9HfMzpGb)@Kys^J$CN{uf*HX?)z=g`J(uK1YO^8~s1(ZIbG%Et(|q z$D@_QqltVZu9Py4R0Ld8!U|#`5~^M=b>fnHthzKBRr=i+w@0Vr^l|W;=zFT#PJ?*a zbC}G#It}rQP^Ait^W&aa6B;+0gNvz4cWUMzpv(1gvfw-X4xJ2Sv;mt;zb2Tsn|kSS zo*U9N?I{=-;a-OybL4r;PolCfiaL=y@o9{%`>+&FI#D^uy#>)R@b^1ue&AKKwuI*` zx%+6r48EIX6nF4o;>)zhV_8(IEX})NGU6Vs(yslrx{5fII}o3SMHW7wGtK9oIO4OM&@@ECtXSICLcPXoS|{;=_yj>hh*%hP27yZwOmj4&Lh z*Nd@OMkd!aKReoqNOkp5cW*lC)&C$P?+H3*%8)6HcpBg&IhGP^77XPZpc%WKYLX$T zsSQ$|ntaVVOoRat$6lvZO(G-QM5s#N4j*|N_;8cc2v_k4n6zx9c1L4JL*83F-C1Cn zaJhd;>rHXB%%ZN=3_o3&Qd2YOxrK~&?1=UuN9QhL$~OY-Qyg&})#ez*8NpQW_*a&kD&ANjedxT0Ar z<6r{eaVz3`d~+N~vkMaV8{F?RBVemN(jD@S8qO~L{rUw#=2a$V(7rLE+kGUZ<%pdr z?$DP|Vg#gZ9S}w((O2NbxzQ^zTot=89!0^~hE{|c9q1hVzv0?YC5s42Yx($;hAp*E zyoGuRyphQY{Q2ee0Xx`1&lv(l-SeC$NEyS~8iil3_aNlnqF_G|;zt#F%1;J)jnPT& z@iU0S;wHJ2$f!juqEzPZeZkjcQ+Pa@eERSLKsWf=`{R@yv7AuRh&ALRTAy z8=g&nxsSJCe!QLchJ=}6|LshnXIK)SNd zRkJNiqHwKK{SO;N5m5wdL&qK`v|d?5<4!(FAsDxR>Ky#0#t$8XCMptvNo?|SY?d8b z`*8dVBlXTUanlh6n)!EHf2&PDG8sXNAt6~u-_1EjPI1|<=33T8 zEnA00E!`4Ave0d&VVh0e>)Dc}=FfAFxpsC1u9ATfQ`-Cu;mhc8Z>2;uyXtqpLb7(P zd2F9<3cXS} znMg?{&8_YFTGRQZEPU-XPq55%51}RJpw@LO_|)CFAt62-_!u_Uq$csc+7|3+TV_!h z+2a7Yh^5AA{q^m|=KSJL+w-EWDBc&I_I1vOr^}P8i?cKMhGy$CP0XKrQzCheG$}G# zuglf8*PAFO8%xop7KSwI8||liTaQ9NCAFarr~psQt)g*pC@9bORZ>m`_GA`_K@~&% zijH0z;T$fd;-Liw8%EKZas>BH8nYTqsK7F;>>@YsE=Rqo?_8}UO-S#|6~CAW0Oz1} z3F(1=+#wrBJh4H)9jTQ_$~@#9|Bc1Pd3rAIA_&vOpvvbgDJOM(yNPhJJq2%PCcMaI zrbe~toYzvkZYQ{ea(Wiyu#4WB#RRN%bMe=SOk!CbJZv^m?Flo5p{W8|0i3`hI3Np# zvCZqY%o258CI=SGb+A3yJe~JH^i{uU`#U#fvSC~rWTq+K`E%J@ zasU07&pB6A4w3b?d?q}2=0rA#SA7D`X+zg@&zm^iA*HVi z009#PUH<%lk4z~p^l0S{lCJk1Uxi=F4e_DwlfHA`X`rv(|JqWKAA5nH+u4Da+E_p+ zVmH@lg^n4ixs~*@gm_dgQ&eDmE1mnw5wBz9Yg?QdZwF|an67Xd*x!He)Gc8&2!urh z4_uXzbYz-aX)X1>&iUjGp;P1u8&7TID0bTH-jCL&Xk8b&;;6p2op_=y^m@Nq*0{#o!!A;wNAFG@0%Z9rHo zcJs?Th>Ny6+hI`+1XoU*ED$Yf@9f91m9Y=#N(HJP^Y@ZEYR6I?oM{>&Wq4|v0IB(p zqX#Z<_3X(&{H+{3Tr|sFy}~=bv+l=P;|sBz$wk-n^R`G3p0(p>p=5ahpaD7>r|>pm zv;V`_IR@tvZreIuv2EM7ZQHhO+qUgw#kOs%*ekY^n|=1#x9&c;Ro&I~{rG-#_3ZB1 z?|9}IFdbP}^DneP*T-JaoYHt~r@EfvnPE5EKUwIxjPbsr$% zfWW83pgWST7*B(o=kmo)74$8UU)v0{@4DI+ci&%=#90}!CZz|rnH+Mz=HN~97G3~@ z;v5(9_2%eca(9iu@J@aqaMS6*$TMw!S>H(b z4(*B!|H|8&EuB%mITr~O?vVEf%(Gr)6E=>H~1VR z&1YOXluJSG1!?TnT)_*YmJ*o_Q@om~(GdrhI{$Fsx_zrkupc#y{DK1WOUR>tk>ZE) ziOLoBkhZZ?0Uf}cm>GsA>Rd6V8@JF)J*EQlQ<=JD@m<)hyElXR0`pTku*3MU`HJn| zIf7$)RlK^pW-$87U;431;Ye4Ie+l~_B3*bH1>*yKzn23cH0u(i5pXV! z4K?{3oF7ZavmmtTq((wtml)m6i)8X6ot_mrE-QJCW}Yn!(3~aUHYG=^fA<^~`e3yc z-NWTb{gR;DOUcK#zPbN^D*e=2eR^_!(!RKkiwMW@@yYtEoOp4XjOGgzi`;=8 zi3`Ccw1%L*y(FDj=C7Ro-V?q)-%p?Ob2ZElu`eZ99n14-ZkEV#y5C+{Pq87Gu3&>g zFy~Wk7^6v*)4pF3@F@rE__k3ikx(hzN3@e*^0=KNA6|jC^B5nf(XaoQaZN?Xi}Rn3 z$8&m*KmWvPaUQ(V<#J+S&zO|8P-#!f%7G+n_%sXp9=J%Z4&9OkWXeuZN}ssgQ#Tcj z8p6ErJQJWZ+fXLCco=RN8D{W%+*kko*2-LEb))xcHwNl~Xmir>kmAxW?eW50Osw3# zki8Fl$#fvw*7rqd?%E?}ZX4`c5-R&w!Y0#EBbelVXSng+kUfeUiqofPehl}$ormli zg%r)}?%=?_pHb9`Cq9Z|B`L8b>(!+8HSX?`5+5mm81AFXfnAt1*R3F z%b2RPIacKAddx%JfQ8l{3U|vK@W7KB$CdLqn@wP^?azRks@x8z59#$Q*7q!KilY-P zHUbs(IFYRGG1{~@RF;Lqyho$~7^hNC`NL3kn^Td%A7dRgr_&`2k=t+}D-o9&C!y^? z6MsQ=tc3g0xkK(O%DzR9nbNB(r@L;1zQrs8mzx&4dz}?3KNYozOW5;=w18U6$G4U2 z#2^qRLT*Mo4bV1Oeo1PKQ2WQS2Y-hv&S|C7`xh6=Pj7MNLC5K-zokZ67S)C;(F0Dd zloDK2_o1$Fmza>EMj3X9je7e%Q`$39Dk~GoOj89-6q9|_WJlSl!!+*{R=tGp z8u|MuSwm^t7K^nUe+^0G3dkGZr3@(X+TL5eah)K^Tn zXEtHmR9UIaEYgD5Nhh(s*fcG_lh-mfy5iUF3xxpRZ0q3nZ=1qAtUa?(LnT9I&~uxX z`pV?+=|-Gl(kz?w!zIieXT}o}7@`QO>;u$Z!QB${a08_bW0_o@&9cjJUXzVyNGCm8 zm=W+$H!;_Kzp6WQqxUI;JlPY&`V}9C$8HZ^m?NvI*JT@~BM=()T()Ii#+*$y@lTZBkmMMda>7s#O(1YZR+zTG@&}!EXFG{ zEWPSDI5bFi;NT>Yj*FjH((=oe%t%xYmE~AGaOc4#9K_XsVpl<4SP@E!TgC0qpe1oi zNpxU2b0(lEMcoibQ-G^cxO?ySVW26HoBNa;n0}CWL*{k)oBu1>F18X061$SP{Gu67 z-v-Fa=Fl^u3lnGY^o5v)Bux}bNZ~ z5pL+7F_Esoun8^5>z8NFoIdb$sNS&xT8_|`GTe8zSXQzs4r^g0kZjg(b0bJvz`g<70u9Z3fQILX1Lj@;@+##bP|FAOl)U^9U>0rx zGi)M1(Hce)LAvQO-pW!MN$;#ZMX?VE(22lTlJrk#pB0FJNqVwC+*%${Gt#r_tH9I_ z;+#)#8cWAl?d@R+O+}@1A^hAR1s3UcW{G+>;X4utD2d9X(jF555}!TVN-hByV6t+A zdFR^aE@GNNgSxxixS2p=on4(+*+f<8xrwAObC)D5)4!z7)}mTpb7&ofF3u&9&wPS< zB62WHLGMhmrmOAgmJ+|c>qEWTD#jd~lHNgT0?t-p{T=~#EMcB| z=AoDKOL+qXCfk~F)-Rv**V}}gWFl>liXOl7Uec_8v)(S#av99PX1sQIVZ9eNLkhq$ zt|qu0b?GW_uo}TbU8!jYn8iJeIP)r@;!Ze_7mj{AUV$GEz6bDSDO=D!&C9!M@*S2! zfGyA|EPlXGMjkH6x7OMF?gKL7{GvGfED=Jte^p=91FpCu)#{whAMw`vSLa`K#atdN zThnL+7!ZNmP{rc=Z>%$meH;Qi1=m1E3Lq2D_O1-X5C;!I0L>zur@tPAC9*7Jeh)`;eec}1`nkRP(%iv-`N zZ@ip-g|7l6Hz%j%gcAM}6-nrC8oA$BkOTz^?dakvX?`^=ZkYh%vUE z9+&)K1UTK=ahYiaNn&G5nHUY5niLGus@p5E2@RwZufRvF{@$hW{;{3QhjvEHMvduO z#Wf-@oYU4ht?#uP{N3utVzV49mEc9>*TV_W2TVC`6+oI)zAjy$KJrr=*q##&kobiQ z1vNbya&OVjK`2pdRrM?LuK6BgrLN7H_3m z!qpNKg~87XgCwb#I=Q&0rI*l$wM!qTkXrx1ko5q-f;=R2fImRMwt5Qs{P*p^z@9ex z`2#v(qE&F%MXlHpdO#QEZyZftn4f05ab^f2vjxuFaat2}jke{j?5GrF=WYBR?gS(^ z9SBiNi}anzBDBRc+QqizTTQuJrzm^bNA~A{j%ugXP7McZqJ}65l10({wk++$=e8O{ zxWjG!Qp#5OmI#XRQQM?n6?1ztl6^D40hDJr?4$Wc&O_{*OfMfxe)V0=e{|N?J#fgE>j9jAajze$iN!*yeF%jJU#G1c@@rm zolGW!j?W6Q8pP=lkctNFdfgUMg92wlM4E$aks1??M$~WQfzzzXtS)wKrr2sJeCN4X zY(X^H_c^PzfcO8Bq(Q*p4c_v@F$Y8cHLrH$`pJ2}=#*8%JYdqsqnGqEdBQMpl!Ot04tUGSXTQdsX&GDtjbWD=prcCT9(+ z&UM%lW%Q3yrl1yiYs;LxzIy>2G}EPY6|sBhL&X&RAQrSAV4Tlh2nITR?{6xO9ujGu zr*)^E`>o!c=gT*_@6S&>0POxcXYNQd&HMw6<|#{eSute2C3{&h?Ah|cw56-AP^f8l zT^kvZY$YiH8j)sk7_=;gx)vx-PW`hbSBXJGCTkpt;ap(}G2GY=2bbjABU5)ty%G#x zAi07{Bjhv}>OD#5zh#$0w;-vvC@^}F! z#X$@)zIs1L^E;2xDAwEjaXhTBw2<{&JkF*`;c3<1U@A4MaLPe{M5DGGkL}#{cHL%* zYMG+-Fm0#qzPL#V)TvQVI|?_M>=zVJr9>(6ib*#z8q@mYKXDP`k&A4A};xMK0h=yrMp~JW{L?mE~ph&1Y1a#4%SO)@{ zK2juwynUOC)U*hVlJU17%llUxAJFuKZh3K0gU`aP)pc~bE~mM!i1mi!~LTf>1Wp< zuG+ahp^gH8g8-M$u{HUWh0m^9Rg@cQ{&DAO{PTMudV6c?ka7+AO& z746QylZ&Oj`1aqfu?l&zGtJnpEQOt;OAFq19MXTcI~`ZcoZmyMrIKDFRIDi`FH)w; z8+*8tdevMDv*VtQi|e}CnB_JWs>fhLOH-+Os2Lh!&)Oh2utl{*AwR)QVLS49iTp{6 z;|172Jl!Ml17unF+pd+Ff@jIE-{Oxv)5|pOm@CkHW?{l}b@1>Pe!l}VccX#xp@xgJ zyE<&ep$=*vT=}7vtvif0B?9xw_3Gej7mN*dOHdQPtW5kA5_zGD zpA4tV2*0E^OUimSsV#?Tg#oiQ>%4D@1F5@AHwT8Kgen$bSMHD3sXCkq8^(uo7CWk`mT zuslYq`6Yz;L%wJh$3l1%SZv#QnG3=NZ=BK4yzk#HAPbqXa92;3K5?0kn4TQ`%E%X} z&>Lbt!!QclYKd6+J7Nl@xv!uD%)*bY-;p`y^ZCC<%LEHUi$l5biu!sT3TGGSTPA21 zT8@B&a0lJHVn1I$I3I1I{W9fJAYc+8 zVj8>HvD}&O`TqU2AAb={?eT;0hyL(R{|h23=4fDSZKC32;wWxsVj`P z3J3{M$PwdH!ro*Cn!D&=jnFR>BNGR<<|I8CI@+@658Dy(lhqbhXfPTVecY@L8%`3Q z1Fux2w?2C3th60jI~%OC9BtpNF$QPqcG+Pz96qZJ71_`0o0w_q7|h&O>`6U+^BA&5 zXd5Zp1Xkw~>M%RixTm&OqpNl8Q+ue=92Op_>T~_9UON?ZM2c0aGm=^A4ejrXj3dV9 zhh_bCt-b9`uOX#cFLj!vhZ#lS8Tc47OH>*)y#{O9?AT~KR9LntM|#l#Dlm^8{nZdk zjMl#>ZM%#^nK2TPzLcKxqx24P7R1FPlBy7LSBrRvx>fE$9AJ;7{PQm~^LBX^k#6Zq zw*Z(zJC|`!6_)EFR}8|n8&&Rbj8y028~P~sFXBFRt+tmqH-S3<%N;C&WGH!f3{7cm zy_fCAb9@HqaXa1Y5vFbxWf%#zg6SI$C+Uz5=CTO}e|2fjWkZ;Dx|84Ow~bkI=LW+U zuq;KSv9VMboRvs9)}2PAO|b(JCEC_A0wq{uEj|3x@}*=bOd zwr{TgeCGG>HT<@Zeq8y}vTpwDg#UBvD)BEs@1KP$^3$sh&_joQPn{hjBXmLPJ{tC) z*HS`*2+VtJO{|e$mM^|qv1R*8i(m1`%)}g=SU#T#0KlTM2RSvYUc1fP+va|4;5}Bfz98UvDCpq7}+SMV&;nX zQw~N6qOX{P55{#LQkrZk(e5YGzr|(B;Q;ju;2a`q+S9bsEH@i1{_Y0;hWYn1-79jl z5c&bytD*k)GqrVcHn6t-7kinadiD>B{Tl`ZY@`g|b~pvHh5!gKP4({rp?D0aFd_cN zhHRo4dd5^S6ViN(>(28qZT6E>??aRhc($kP`>@<+lIKS5HdhjVU;>f7<4))E*5|g{ z&d1}D|vpuV^eRj5j|xx9nwaCxXFG?Qbjn~_WSy=N}P0W>MP zG-F%70lX5Xr$a)2i6?i|iMyM|;Jtf*hO?=Jxj12oz&>P=1#h~lf%#fc73M2_(SUM- zf&qnjS80|_Y0lDgl&I?*eMumUklLe_=Td!9G@eR*tcPOgIShJipp3{A10u(4eT~DY zHezEj8V+7m!knn7)W!-5QI3=IvC^as5+TW1@Ern@yX| z7Nn~xVx&fGSr+L%4iohtS3w^{-H1A_5=r&x8}R!YZvp<2T^YFvj8G_vm}5q;^UOJf ztl=X3iL;;^^a#`t{Ae-%5Oq{?M#s6Npj+L(n-*LMI-yMR{)qki!~{5z{&`-iL}lgW zxo+tnvICK=lImjV$Z|O_cYj_PlEYCzu-XBz&XC-JVxUh9;6*z4fuBG+H{voCC;`~GYV|hj%j_&I zDZCj>Q_0RCwFauYoVMiUSB+*Mx`tg)bWmM^SwMA+?lBg12QUF_x2b)b?qb88K-YUd z0dO}3k#QirBV<5%jL$#wlf!60dizu;tsp(7XLdI=eQs?P`tOZYMjVq&jE)qK*6B^$ zBe>VvH5TO>s>izhwJJ$<`a8fakTL!yM^Zfr2hV9`f}}VVUXK39p@G|xYRz{fTI+Yq z20d=)iwjuG9RB$%$^&8#(c0_j0t_C~^|n+c`Apu|x7~;#cS-s=X1|C*YxX3ailhg_|0`g!E&GZJEr?bh#Tpb8siR=JxWKc{#w7g zWznLwi;zLFmM1g8V5-P#RsM@iX>TK$xsWuujcsVR^7TQ@!+vCD<>Bk9tdCo7Mzgq5 zv8d>dK9x8C@Qoh01u@3h0X_`SZluTb@5o;{4{{eF!-4405x8X7hewZWpz z2qEi4UTiXTvsa(0X7kQH{3VMF>W|6;6iTrrYD2fMggFA&-CBEfSqPlQDxqsa>{e2M z(R5PJ7uOooFc|9GU0ELA%m4&4Ja#cQpNw8i8ACAoK6?-px+oBl_yKmenZut#Xumjz zk8p^OV2KY&?5MUwGrBOo?ki`Sxo#?-Q4gw*Sh0k`@ zFTaYK2;}%Zk-68`#5DXU$2#=%YL#S&MTN8bF+!J2VT6x^XBci6O)Q#JfW{YMz) zOBM>t2rSj)n#0a3cjvu}r|k3od6W(SN}V-cL?bi*Iz-8uOcCcsX0L>ZXjLqk zZu2uHq5B|Kt>e+=pPKu=1P@1r9WLgYFq_TNV1p9pu0erHGd!+bBp!qGi+~4A(RsYN@CyXNrC&hxGmW)u5m35OmWwX`I+0yByglO`}HC4nGE^_HUs^&A(uaM zKPj^=qI{&ayOq#z=p&pnx@@k&I1JI>cttJcu@Ihljt?6p^6{|ds`0MoQwp+I{3l6` zB<9S((RpLG^>=Kic`1LnhpW2=Gu!x`m~=y;A`Qk!-w`IN;S8S930#vBVMv2vCKi}u z6<-VPrU0AnE&vzwV(CFC0gnZYcpa-l5T0ZS$P6(?9AM;`Aj~XDvt;Jua=jIgF=Fm? zdp=M$>`phx%+Gu};;-&7T|B1AcC#L4@mW5SV_^1BRbo6;2PWe$r+npRV`yc;T1mo& z+~_?7rA+(Um&o@Tddl zL_hxvWk~a)yY}%j`Y+200D%9$bWHy&;(yj{jpi?Rtz{J66ANw)UyPOm;t6FzY3$hx zcn)Ir79nhFvNa7^a{SHN7XH*|Vlsx`CddPnA&Qvh8aNhEA;mPVv;Ah=k<*u!Zq^7 z<=xs*iQTQOMMcg|(NA_auh@x`3#_LFt=)}%SQppP{E>mu_LgquAWvh<>L7tf9+~rO znwUDS52u)OtY<~!d$;m9+87aO+&`#2ICl@Y>&F{jI=H(K+@3M1$rr=*H^dye#~TyD z!){#Pyfn+|ugUu}G;a~!&&0aqQ59U@UT3|_JuBlYUpT$2+11;}JBJ`{+lQN9T@QFY z5+`t;6(TS0F?OlBTE!@7D`8#URDNqx2t6`GZ{ZgXeS@v%-eJzZOHz18aS|svxII$a zZeFjrJ*$IwX$f-Rzr_G>xbu@euGl)B7pC&S+CmDJBg$BoV~jxSO#>y z33`bupN#LDoW0feZe0%q8un0rYN|eRAnwDHQ6e_)xBTbtoZtTA=Fvk){q}9Os~6mQ zKB80VI_&6iSq`LnK7*kfHZoeX6?WE}8yjuDn=2#JG$+;-TOA1%^=DnXx%w{b=w}tS zQbU3XxtOI8E(!%`64r2`zog;5<0b4i)xBmGP^jiDZ2%HNSxIf3@wKs~uk4%3Mxz;~ zts_S~E4>W+YwI<-*-$U8*^HKDEa8oLbmqGg?3vewnaNg%Mm)W=)lcC_J+1ov^u*N3 zXJ?!BrH-+wGYziJq2Y#vyry6Z>NPgkEk+Ke`^DvNRdb>Q2Nlr#v%O@<5hbflI6EKE z9dWc0-ORk^T}jP!nkJ1imyjdVX@GrjOs%cpgA8-c&FH&$(4od#x6Y&=LiJZPINVyW z0snY$8JW@>tc2}DlrD3StQmA0Twck~@>8dSix9CyQOALcREdxoM$Sw*l!}bXKq9&r zysMWR@%OY24@e`?+#xV2bk{T^C_xSo8v2ZI=lBI*l{RciPwuE>L5@uhz@{!l)rtVlWC>)6(G)1~n=Q|S!{E9~6*fdpa*n z!()-8EpTdj=zr_Lswi;#{TxbtH$8*G=UM`I+icz7sr_SdnHXrv=?iEOF1UL+*6O;% zPw>t^kbW9X@oEXx<97%lBm-9?O_7L!DeD)Me#rwE54t~UBu9VZ zl_I1tBB~>jm@bw0Aljz8! zXBB6ATG6iByKIxs!qr%pz%wgqbg(l{65DP4#v(vqhhL{0b#0C8mq`bnqZ1OwFV z7mlZZJFMACm>h9v^2J9+^_zc1=JjL#qM5ZHaThH&n zXPTsR8(+)cj&>Un{6v*z?@VTLr{TmZ@-fY%*o2G}*G}#!bmqpoo*Ay@U!JI^Q@7gj;Kg-HIrLj4}#ec4~D2~X6vo;ghep-@&yOivYP zC19L0D`jjKy1Yi-SGPAn94(768Tcf$urAf{)1)9W58P`6MA{YG%O?|07!g9(b`8PXG1B1Sh0?HQmeJtP0M$O$hI z{5G`&9XzYhh|y@qsF1GnHN|~^ru~HVf#)lOTSrv=S@DyR$UKQk zjdEPFDz{uHM&UM;=mG!xKvp;xAGHOBo~>_=WFTmh$chpC7c`~7?36h)7$fF~Ii}8q zF|YXxH-Z?d+Q+27Rs3X9S&K3N+)OBxMHn1u(vlrUC6ckBY@@jl+mgr#KQUKo#VeFm zFwNYgv0<%~Wn}KeLeD9e1$S>jhOq&(e*I@L<=I5b(?G(zpqI*WBqf|Zge0&aoDUsC zngMRA_Kt0>La+Erl=Uv_J^p(z=!?XHpenzn$%EA`JIq#yYF?JLDMYiPfM(&Csr#f{ zdd+LJL1by?xz|D8+(fgzRs~(N1k9DSyK@LJygwaYX8dZl0W!I&c^K?7)z{2is;OkE zd$VK-(uH#AUaZrp=1z;O*n=b?QJkxu`Xsw&7yrX0?(CX=I-C#T;yi8a<{E~?vr3W> zQrpPqOW2M+AnZ&p{hqmHZU-;Q(7?- zP8L|Q0RM~sB0w1w53f&Kd*y}ofx@c z5Y6B8qGel+uT1JMot$nT1!Tim6{>oZzJXdyA+4euOLME?5Fd_85Uk%#E*ln%y{u8Q z$|?|R@Hpb~yTVK-Yr_S#%NUy7EBfYGAg>b({J|5b+j-PBpPy$Ns`PaJin4JdRfOaS zE|<HjH%NuJgsd2wOlv>~y=np%=2)$M9LS|>P)zJ+Fei5vYo_N~B0XCn+GM76 z)Xz3tg*FRVFgIl9zpESgdpWAavvVViGlU8|UFY{{gVJskg*I!ZjWyk~OW-Td4(mZ6 zB&SQreAAMqwp}rjy`HsG({l2&q5Y52<@AULVAu~rWI$UbFuZs>Sc*x+XI<+ez%$U)|a^unjpiW0l0 zj1!K0(b6$8LOjzRqQ~K&dfbMIE=TF}XFAi)$+h}5SD3lo z%%Qd>p9se=VtQG{kQ;N`sI)G^u|DN#7{aoEd zkksYP%_X$Rq08);-s6o>CGJ<}v`qs%eYf+J%DQ^2k68C%nvikRsN?$ap--f+vCS`K z#&~)f7!N^;sdUXu54gl3L=LN>FB^tuK=y2e#|hWiWUls__n@L|>xH{%8lIJTd5`w? zSwZbnS;W~DawT4OwSJVdAylbY+u5S+ZH{4hAi2&}Iv~W(UvHg(1GTZRPz`@{SOqzy z(8g&Dz=$PfRV=6FgxN~zo+G8OoPI&d-thcGVR*_^(R8COTM@bq?fDwY{}WhsQS1AK zF6R1t8!RdFmfocpJ6?9Yv~;WYi~XPgs(|>{5})j!AR!voO7y9&cMPo#80A(`za@t>cx<0;qxM@S*m(jYP)dMXr*?q0E`oL;12}VAep179uEr8c<=D zr5?A*C{eJ`z9Ee;E$8)MECqatHkbHH z&Y+ho0B$31MIB-xm&;xyaFCtg<{m~M-QDbY)fQ>Q*Xibb~8ytxZQ?QMf9!%cV zU0_X1@b4d+Pg#R!`OJ~DOrQz3@cpiGy~XSKjZQQ|^4J1puvwKeScrH8o{bscBsowomu z^f12kTvje`yEI3eEXDHJ6L+O{Jv$HVj%IKb|J{IvD*l6IG8WUgDJ*UGz z3!C%>?=dlfSJ>4U88)V+`U-!9r^@AxJBx8R;)J4Fn@`~k>8>v0M9xp90OJElWP&R5 zM#v*vtT}*Gm1^)Bv!s72T3PB0yVIjJW)H7a)ilkAvoaH?)jjb`MP>2z{%Y?}83 zUIwBKn`-MSg)=?R)1Q0z3b>dHE^)D8LFs}6ASG1|daDly_^lOSy&zIIhm*HXm1?VS=_iacG);_I9c zUQH1>i#*?oPIwBMJkzi_*>HoUe}_4o>2(SHWzqQ=;TyhAHS;Enr7!#8;sdlty&(>d zl%5cjri8`2X^Ds`jnw7>A`X|bl=U8n+3LKLy(1dAu8`g@9=5iw$R0qk)w8Vh_Dt^U zIglK}sn^)W7aB(Q>HvrX=rxB z+*L)3DiqpQ_%~|m=44LcD4-bxO3OO*LPjsh%p(k?&jvLp0py57oMH|*IMa(<|{m1(0S|x)?R-mqJ=I;_YUZA>J z62v*eSK;5w!h8J+6Z2~oyGdZ68waWfy09?4fU&m7%u~zi?YPHPgK6LDwphgaYu%0j zurtw)AYOpYKgHBrkX189mlJ`q)w-f|6>IER{5Lk97%P~a-JyCRFjejW@L>n4vt6#hq;!|m;hNE||LK3nw1{bJOy+eBJjK=QqNjI;Q6;Rp5 z&035pZDUZ#%Oa;&_7x0T<7!RW`#YBOj}F380Bq?MjjEhrvlCATPdkCTTl+2efTX$k zH&0zR1n^`C3ef~^sXzJK-)52(T}uTG%OF8yDhT76L~|^+hZ2hiSM*QA9*D5odI1>& z9kV9jC~twA5MwyOx(lsGD_ggYmztXPD`2=_V|ks_FOx!_J8!zM zTzh^cc+=VNZ&(OdN=y4Juw)@8-85lwf_#VMN!Ed(eQiRiLB2^2e`4dp286h@v@`O%_b)Y~A; zv}r6U?zs&@uD_+(_4bwoy7*uozNvp?bXFoB8?l8yG0qsm1JYzIvB_OH4_2G*IIOwT zVl%HX1562vLVcxM_RG*~w_`FbIc!(T=3>r528#%mwwMK}uEhJ()3MEby zQQjzqjWkwfI~;Fuj(Lj=Ug0y`>~C7`w&wzjK(rPw+Hpd~EvQ-ufQOiB4OMpyUKJhw zqEt~jle9d7S~LI~$6Z->J~QJ{Vdn3!c}g9}*KG^Kzr^(7VI5Gk(mHLL{itj_hG?&K4Ws0+T4gLfi3eu$N=`s36geNC?c zm!~}vG6lx9Uf^5M;bWntF<-{p^bruy~f?sk9 zcETAPQZLoJ8JzMMg<-=ju4keY@SY%Wo?u9Gx=j&dfa6LIAB|IrbORLV1-H==Z1zCM zeZcOYpm5>U2fU7V*h;%n`8 zN95QhfD994={1*<2vKLCNF)feKOGk`R#K~G=;rfq}|)s20&MCa65 zUM?xF5!&e0lF%|U!#rD@I{~OsS_?=;s_MQ_b_s=PuWdC)q|UQ&ea)DMRh5>fpQjXe z%9#*x=7{iRCtBKT#H>#v%>77|{4_slZ)XCY{s3j_r{tdpvb#|r|sbS^dU1x70$eJMU!h{Y7Kd{dl}9&vxQl6Jt1a` zHQZrWyY0?!vqf@u-fxU_@+}u(%Wm>0I#KP48tiAPYY!TdW(o|KtVI|EUB9V`CBBNaBLVih7+yMVF|GSoIQD0Jfb{ z!OXq;(>Z?O`1gap(L~bUcp>Lc@Jl-})^=6P%<~~9ywY=$iu8pJ0m*hOPzr~q`23eX zgbs;VOxxENe0UMVeN*>uCn9Gk!4siN-e>x)pIKAbQz!G)TcqIJ0`JBBaX>1-4_XO_-HCS^vr2vjv#7KltDZdyQ{tlWh4$Gm zB>|O1cBDC)yG(sbnc*@w6e%e}r*|IhpXckx&;sQCwGdKH+3oSG-2)Bf#x`@<4ETAr z0My%7RFh6ZLiZ_;X6Mu1YmXx7C$lSZ^}1h;j`EZd6@%JNUe=btBE z%s=Xmo1Ps?8G`}9+6>iaB8bgjUdXT?=trMu|4yLX^m0Dg{m7rpKNJey|EwHI+nN1e zL^>qN%5Fg)dGs4DO~uwIdXImN)QJ*Jhpj7$fq_^`{3fwpztL@WBB}OwQ#Epo-mqMO zsM$UgpFiG&d#)lzEQ{3Q;)&zTw;SzGOah-Dpm{!q7<8*)Ti_;xvV2TYXa}=faXZy? z3y?~GY@kl)>G&EvEijk9y1S`*=zBJSB1iet>0;x1Ai)*`^{pj0JMs)KAM=@UyOGtO z3y0BouW$N&TnwU6!%zS%nIrnANvZF&vB1~P5_d`x-giHuG zPJ;>XkVoghm#kZXRf>qxxEix;2;D1CC~NrbO6NBX!`&_$iXwP~P*c($EVV|669kDO zKoTLZNF4Cskh!Jz5ga9uZ`3o%7Pv`d^;a=cXI|>y;zC3rYPFLQkF*nv(r>SQvD*## z(Vo%^9g`%XwS0t#94zPq;mYGLKu4LU3;txF26?V~A0xZbU4Lmy`)>SoQX^m7fd^*E z+%{R4eN!rIk~K)M&UEzxp9dbY;_I^c} zOc{wlIrN_P(PPqi51k_$>Lt|X6A^|CGYgKAmoI#Li?;Wq%q~q*L7ehZkUrMxW67Jl zhsb~+U?33QS>eqyN{(odAkbopo=Q$Az?L+NZW>j;#~@wCDX?=L5SI|OxI~7!Pli;e zELMFcZtJY3!|=Gr2L4>z8yQ-{To>(f80*#;6`4IAiqUw`=Pg$%C?#1 z_g@hIGerILSU>=P>z{gM|DS91A4cT@PEIB^hSop!uhMo#2G;+tQSpDO_6nOnPWSLU zS;a9m^DFMXR4?*X=}d7l;nXuHk&0|m`NQn%d?8|Ab3A9l9Jh5s120ibWBdB z$5YwsK3;wvp!Kn@)Qae{ef`0#NwlRpQ}k^r>yos_Ne1;xyKLO?4)t_G4eK~wkUS2A&@_;)K0-03XGBzU+5f+uMDxC z(s8!8!RvdC#@`~fx$r)TKdLD6fWEVdEYtV#{ncT-ZMX~eI#UeQ-+H(Z43vVn%Yj9X zLdu9>o%wnWdvzA-#d6Z~vzj-}V3FQ5;axDIZ;i(95IIU=GQ4WuU{tl-{gk!5{l4_d zvvb&uE{%!iFwpymz{wh?bKr1*qzeZb5f6e6m_ozRF&zux2mlK=v_(_s^R6b5lu?_W4W3#<$zeG~Pd)^!4tzhs}-Sx$FJP>)ZGF(hVTH|C3(U zs0PO&*h_ zNA-&qZpTP$$LtIgfiCn07}XDbK#HIXdmv8zdz4TY;ifNIH-0jy(gMSByG2EF~Th#eb_TueZC` zE?3I>UTMpKQ})=C;6p!?G)M6w^u*A57bD?2X`m3X^6;&4%i_m(uGJ3Z5h`nwxM<)H z$I5m?wN>O~8`BGnZ=y^p6;0+%_0K}Dcg|K;+fEi|qoBqvHj(M&aHGqNF48~XqhtU? z^ogwBzRlOfpAJ+Rw7IED8lRbTdBdyEK$gPUpUG}j-M42xDj_&qEAQEtbs>D#dRd7Y z<&TpSZ(quQDHiCFn&0xsrz~4`4tz!CdL8m~HxZM_agu@IrBpyeL1Ft}V$HX_ZqDPm z-f89)pjuEzGdq-PRu`b1m+qBGY{zr_>{6Ss>F|xHZlJj9dt5HD$u`1*WZe)qEIuDSR)%z+|n zatVlhQ?$w#XRS7xUrFE;Y8vMGhQS5*T{ZnY=q1P?w5g$OKJ#M&e??tAmPWHMj3xhS ziGxapy?kn@$~2%ZY;M8Bc@%$pkl%Rvj!?o%agBvpQ-Q61n9kznC4ttrRNQ4%GFR5u zyv%Yo9~yxQJWJSfj z?#HY$y=O~F|2pZs22pu|_&Ajd+D(Mt!nPUG{|1nlvP`=R#kKH zO*s$r_%ss5h1YO7k0bHJ2CXN)Yd6CHn~W!R=SqkWe=&nAZu(Q1G!xgcUilM@YVei@2@a`8he z9@pM`)VB*=e7-MWgLlXlc)t;fF&-AwM{E-EX}pViFn0I0CNw2bNEnN2dj!^4(^zS3 zobUm1uQnpqk_4q{pl*n06=TfK_C>UgurKFjRXsK_LEn};=79`TB12tv6KzwSu*-C8 z;=~ohDLZylHQ|Mpx-?yql>|e=vI1Z!epyUpAcDCp4T|*RV&X`Q$0ogNwy6mFALo^@ z9=&(9txO8V@E!@6^(W0{*~CT>+-MA~vnJULBxCTUW>X5>r7*eXYUT0B6+w@lzw%n> z_VjJ<2qf|(d6jYq2(x$(ZDf!yVkfnbvNmb5c|hhZ^2TV_LBz`9w!e_V*W_(MiA7|= z&EeIIkw*+$Xd!)j8<@_<}A5;~A_>3JT*kX^@}cDoLd>Qj<`Se^wdUa(j0dp+Tl8EptwBm{9OGsdFEq zM`!pjf(Lm(`$e3FLOjqA5LnN5o!}z{ zNf}rJuZh@yUtq&ErjHeGzX4(!luV!jB&;FAP|!R_QHYw#^Z1LwTePAKJ6X&IDNO#; z)#I@Xnnzyij~C@UH~X51JCgQeF0&hTXnuoElz#m{heZRexWc0k4<>0+ClX7%0 zEBqCCld1tD9Zwkr4{?Nor19#E5-YKfB8d?qgR82-Ow2^AuNevly2*tHA|sK!ybYkX zm-sLQH72P&{vEAW6+z~O5d0qd=xW~rua~5a?ymYFSD@8&gV)E5@RNNBAj^C99+Z5Z zR@Pq55mbCQbz+Mn$d_CMW<-+?TU960agEk1J<>d>0K=pF19yN))a~4>m^G&tc*xR+yMD*S=yip-q=H zIlredHpsJV8H(32@Zxc@bX6a21dUV95Th--8pE6C&3F>pk=yv$yd6@Haw;$v4+Fcb zRwn{Qo@0`7aPa2LQOP}j9v>sjOo5Kqvn|`FLizX zB+@-u4Lw|jsvz{p^>n8Vo8H2peIqJJnMN}A)q6%$Tmig7eu^}K2 zrh$X?T|ZMsoh{6pdw1G$_T<`Ds-G=jc;qcGdK4{?dN2-XxjDNbb(7pk|3JUVCU4y; z)?LXR>f+AAu)JEiti_Zy#z5{RgsC}R(@jl%9YZ>zu~hKQ*AxbvhC378-I@{~#%Y`Z zy=a=9YpewPIC+gkEUUwtUL7|RU7=!^Aa}Mk^6uxOgRGA#JXjWLsjFUnix|Mau{hDT z7mn*z1m5g`vP(#tjT0Zy4eAY(br&!RiiXE=ZI!{sE1#^#%x^Z7t1U)b<;%Y}Q9=5v z;wpDCEZ@OE36TWT=|gxigT@VaW9BvHS05;_P(#s z8zI4XFQys}q)<`tkX$WnSarn{3e!s}4(J!=Yf>+Y>cP3f;vr63f2{|S^`_pWc)^5_!R z*(x-fuBxL51@xe!lnDBKi}Br$c$BMZ3%f2Sa6kLabiBS{pq*yj;q|k(86x`PiC{p6 z_bxCW{>Q2BA8~Ggz&0jkrcU+-$ANBsOop*ms>34K9lNYil@}jC;?cYP(m^P}nR6FV zk(M%48Z&%2Rx$A&FhOEirEhY0(dn;-k(qkTU)sFQ`+-ih+s@A8g?r8Pw+}2;35WYf zi}VO`jS`p(tc)$X$a>-#WXoW!phhatC*$}|rk>|wUU71eUJG^$c6_jwX?iSHM@6__ zvV|6%U*$sSXJu9SX?2%M^kK|}a2QJ8AhF{fuXrHZxXsI~O zGKX45!K7p*MCPEQ=gp?eu&#AW*pR{lhQR##P_*{c_DjMGL|3T3-bSJ(o$|M{ytU}> zAV>wq*uE*qFo9KvnA^@juy{x<-u*#2NvkV={Ly}ysKYB-k`K3@K#^S1Bb$8Y#0L0# z`6IkSG&|Z$ODy|VLS+y5pFJx&8tvPmMd8c9FhCyiU8~k6FwkakUd^(_ml8`rnl>JS zZV){9G*)xBqPz^LDqRwyS6w86#D^~xP4($150M)SOZRe9sn=>V#aG0Iy(_^YcPpIz8QYM-#s+n% z@Jd?xQq?Xk6=<3xSY7XYP$$yd&Spu{A#uafiIfy8gRC`o0nk{ezEDjb=q_qRAlR1d zFq^*9Gn)yTG4b}R{!+3hWQ+u3GT~8nwl2S1lpw`s0X_qpxv)g+JIkVKl${sYf_nV~B>Em>M;RlqGb5WVil(89 zs=ld@|#;dq1*vQGz=7--Br-|l) zZ%Xh@v8>B7P?~}?Cg$q9_={59l%m~O&*a6TKsCMAzG&vD>k2WDzJ6!tc!V)+oxF;h zJH;apM=wO?r_+*#;ulohuP=E>^zon}a$NnlcQ{1$SO*i=jnGVcQa^>QOILc)e6;eNTI>os=eaJ{*^DE+~jc zS}TYeOykDmJ=6O%>m`i*>&pO_S;qMySJIyP=}4E&J%#1zju$RpVAkZbEl+p%?ZP^C z*$$2b4t%a(e+%>a>d_f_<JjxI#J1x;=hPd1zFPx=6T$;;X1TD*2(edZ3f46zaAoW>L53vS_J*N8TMB|n+;LD| zC=GkQPpyDY#Am4l49chDv*gojhRj_?63&&8#doW`INATAo(qY#{q}%nf@eTIXmtU< zdB<7YWfyCmBs|c)cK>1)v&M#!yNj#4d$~pVfDWQc_ke1?fw{T1Nce_b`v|Vp5ig(H zJvRD^+ps46^hLX;=e2!2e;w9y1D@!D$c@Jc&%%%IL=+xzw55&2?darw=9g~>P z9>?Kdc$r?6c$m%x2S$sdpPl>GQZ{rC9mPS63*qjCVa?OIBj!fW zm|g?>CVfGXNjOfcyqImXR_(tXS(F{FcoNzKvG5R$IgGaxC@)i(e+$ME}vPVIhd|mx2IIE+f zM?9opQHIVgBWu)^A|RzXw!^??S!x)SZOwZaJkGjc<_}2l^eSBm!eAJG9T>EC6I_sy z?bxzDIAn&K5*mX)$RQzDA?s)-no-XF(g*yl4%+GBf`##bDXJ==AQk*xmnatI;SsLp zP9XTHq5mmS=iWu~9ES>b%Q=1aMa|ya^vj$@qz9S!ih{T8_PD%Sf_QrNKwgrXw9ldm zHRVR98*{C?_XNpJn{abA!oix_mowRMu^2lV-LPi;0+?-F(>^5#OHX-fPED zCu^l7u3E%STI}c4{J2!)9SUlGP_@!d?5W^QJXOI-Ea`hFMKjR7TluLvzC-ozCPn1`Tpy z!vlv@_Z58ILX6>nDjTp-1LlFMx~-%GA`aJvG$?8*Ihn;mH37eK**rmOEwqegf-Ccx zrIX4;{c~RK>XuTXxYo5kMiWMy)!IC{*DHG@E$hx?RwP@+wuad(P1{@%tRkyJRqD)3 zMHHHZ4boqDn>-=DgR5VlhQTpfVy182Gk;A_S8A1-;U1RR>+$62>(MUx@Nox$vTjHq z%QR=j!6Gdyb5wu7y(YUktwMuW5<@jl?m4cv4BODiT5o8qVdC0MBqGr@-YBIwnpZAY znX9(_uQjP}JJ=!~Ve9#5I~rUnN|P_3D$LqZcvBnywYhjlMSFHm`;u9GPla{5QD7(7*6Tb3Svr8;(nuAd81q$*uq6HC_&~je*Ca7hP4sJp0av{M8480wF zxASi7Qv+~@2U%Nu1Ud;s-G4CTVWIPyx!sg&8ZG0Wq zG_}i3C(6_1>q3w!EH7$Kwq8uBp2F2N7}l65mk1p*9v0&+;th=_E-W)E;w}P(j⁢ zv5o9#E7!G0XmdzfsS{efPNi`1b44~SZ4Z8fuX!I}#8g+(wxzQwUT#Xb2(tbY1+EUhGKoT@KEU9Ktl>_0 z%bjDJg;#*gtJZv!-Zs`?^}v5eKmnbjqlvnSzE@_SP|LG_PJ6CYU+6zY6>92%E+ z=j@TZf-iW4(%U{lnYxQA;7Q!b;^brF8n0D>)`q5>|WDDXLrqYU_tKN2>=#@~OE7grMnNh?UOz-O~6 z6%rHy{#h9K0AT+lDC7q4{hw^|q6*Ry;;L%Q@)Ga}$60_q%D)rv(CtS$CQbpq9|y1e zRSrN4;$Jyl{m5bZw`$8TGvb}(LpY{-cQ)fcyJv7l3S52TLXVDsphtv&aPuDk1OzCA z4A^QtC(!11`IsNx_HnSy?>EKpHJWT^wmS~hc^p^zIIh@9f6U@I2 zC=Mve{j2^)mS#U$e{@Q?SO6%LDsXz@SY+=cK_QMmXBIU)j!$ajc-zLx3V60EXJ!qC zi<%2x8Q24YN+&8U@CIlN zrZkcT9yh%LrlGS9`G)KdP(@9Eo-AQz@8GEFWcb7U=a0H^ZVbLmz{+&M7W(nXJ4sN8 zJLR7eeK(K8`2-}j(T7JsO`L!+CvbueT%izanm-^A1Dn{`1Nw`9P?cq;7no+XfC`K(GO9?O^5zNIt4M+M8LM0=7Gz8UA@Z0N+lg+cX)NfazRu z5D)~HA^(u%w^cz+@2@_#S|u>GpB+j4KzQ^&Wcl9f z&hG#bCA(Yk0D&t&aJE^xME^&E-&xGHhXn%}psEIj641H+Nl-}boj;)Zt*t(4wZ5DN z@GXF$bL=&pBq-#vkTkh>7hl%K5|3 z{`Vn9b$iR-SoGENp}bn4;fR3>9sA%X2@1L3aE9yTra;Wb#_`xWwLSLdfu+PAu+o3| zGVnpzPr=ch{uuoHjtw7+_!L_2;knQ!DuDl0R`|%jr+}jFzXtrHIKc323?JO{l&;VF z*L1+}JU7%QJOg|5|Tc|D8fN zJORAg=_vsy{ak|o);@)Yh8Lkcg@$FG3k@ep36BRa^>~UmnRPziS>Z=`Jb2x*Q#`%A zU*i3&Vg?TluO@X0O;r2Jl6LKLUOVhSqg1*qOt^|8*c7 zo(298@+r$k_wQNGHv{|$tW(T8L+4_`FQ{kEW5Jgg{yf7ey4ss_(SNKfz(N9lx&a;< je(UuV8hP?p&}TPdm1I$XmG#(RzlD&B2izSj9sl%y5~4qc literal 0 HcmV?d00001 diff --git a/components/public-api/java/gradle/wrapper/gradle-wrapper.properties b/components/public-api/java/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000000000..3fa8f862f75333 --- /dev/null +++ b/components/public-api/java/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/components/public-api/java/gradlew b/components/public-api/java/gradlew new file mode 100755 index 00000000000000..1aa94a42690741 --- /dev/null +++ b/components/public-api/java/gradlew @@ -0,0 +1,249 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/components/public-api/java/gradlew.bat b/components/public-api/java/gradlew.bat new file mode 100644 index 00000000000000..93e3f59f135dd2 --- /dev/null +++ b/components/public-api/java/gradlew.bat @@ -0,0 +1,92 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/components/public-api/java/settings.gradle.kts b/components/public-api/java/settings.gradle.kts new file mode 100644 index 00000000000000..5c8eb44b6d2aed --- /dev/null +++ b/components/public-api/java/settings.gradle.kts @@ -0,0 +1,18 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +/* + * This file was generated by the Gradle 'init' task. + * + * The settings file is used to specify which projects to include in your build. + * For more detailed information on multi-project builds, please refer to https://docs.gradle.org/8.4/userguide/building_swift_projects.html in the Gradle documentation. + * This project uses @Incubating APIs which are subject to change. + */ + +plugins { + // Apply the foojay-resolver plugin to allow automatic download of JDKs + id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0" +} + +rootProject.name = "gitpod-public-api" diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Dummy.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Dummy.java new file mode 100644 index 00000000000000..7235ef8e839da7 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Dummy.java @@ -0,0 +1,1990 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/dummy.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class Dummy { + private Dummy() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Dummy.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SayHelloRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.SayHelloRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.SayHelloRequest} + */ + public static final class SayHelloRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.SayHelloRequest) + SayHelloRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SayHelloRequest.class.getName()); + } + // Use SayHelloRequest.newBuilder() to construct. + private SayHelloRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SayHelloRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest.class, io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest other = (io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.SayHelloRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.SayHelloRequest) + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest.class, io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest build() { + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest result = new io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.SayHelloRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.SayHelloRequest) + private static final io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SayHelloRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SayHelloResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.SayHelloResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string reply = 1 [json_name = "reply"]; + * @return The reply. + */ + java.lang.String getReply(); + /** + * string reply = 1 [json_name = "reply"]; + * @return The bytes for reply. + */ + com.google.protobuf.ByteString + getReplyBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.SayHelloResponse} + */ + public static final class SayHelloResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.SayHelloResponse) + SayHelloResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SayHelloResponse.class.getName()); + } + // Use SayHelloResponse.newBuilder() to construct. + private SayHelloResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SayHelloResponse() { + reply_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse.class, io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse.Builder.class); + } + + public static final int REPLY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object reply_ = ""; + /** + * string reply = 1 [json_name = "reply"]; + * @return The reply. + */ + @java.lang.Override + public java.lang.String getReply() { + java.lang.Object ref = reply_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reply_ = s; + return s; + } + } + /** + * string reply = 1 [json_name = "reply"]; + * @return The bytes for reply. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReplyBytes() { + java.lang.Object ref = reply_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reply_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reply_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, reply_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reply_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, reply_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse other = (io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse) obj; + + if (!getReply() + .equals(other.getReply())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPLY_FIELD_NUMBER; + hash = (53 * hash) + getReply().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.SayHelloResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.SayHelloResponse) + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse.class, io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reply_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_SayHelloResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse build() { + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse result = new io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reply_ = reply_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse.getDefaultInstance()) return this; + if (!other.getReply().isEmpty()) { + reply_ = other.reply_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + reply_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object reply_ = ""; + /** + * string reply = 1 [json_name = "reply"]; + * @return The reply. + */ + public java.lang.String getReply() { + java.lang.Object ref = reply_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reply_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string reply = 1 [json_name = "reply"]; + * @return The bytes for reply. + */ + public com.google.protobuf.ByteString + getReplyBytes() { + java.lang.Object ref = reply_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reply_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string reply = 1 [json_name = "reply"]; + * @param value The reply to set. + * @return This builder for chaining. + */ + public Builder setReply( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + reply_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string reply = 1 [json_name = "reply"]; + * @return This builder for chaining. + */ + public Builder clearReply() { + reply_ = getDefaultInstance().getReply(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string reply = 1 [json_name = "reply"]; + * @param value The bytes for reply to set. + * @return This builder for chaining. + */ + public Builder setReplyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + reply_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.SayHelloResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.SayHelloResponse) + private static final io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SayHelloResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LotsOfRepliesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.LotsOfRepliesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 previous_count = 1 [json_name = "previousCount"]; + * @return The previousCount. + */ + int getPreviousCount(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.LotsOfRepliesRequest} + */ + public static final class LotsOfRepliesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.LotsOfRepliesRequest) + LotsOfRepliesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + LotsOfRepliesRequest.class.getName()); + } + // Use LotsOfRepliesRequest.newBuilder() to construct. + private LotsOfRepliesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private LotsOfRepliesRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest.class, io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest.Builder.class); + } + + public static final int PREVIOUS_COUNT_FIELD_NUMBER = 1; + private int previousCount_ = 0; + /** + * int32 previous_count = 1 [json_name = "previousCount"]; + * @return The previousCount. + */ + @java.lang.Override + public int getPreviousCount() { + return previousCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (previousCount_ != 0) { + output.writeInt32(1, previousCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (previousCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, previousCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest other = (io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest) obj; + + if (getPreviousCount() + != other.getPreviousCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREVIOUS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPreviousCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.LotsOfRepliesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.LotsOfRepliesRequest) + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest.class, io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + previousCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest build() { + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest result = new io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.previousCount_ = previousCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest.getDefaultInstance()) return this; + if (other.getPreviousCount() != 0) { + setPreviousCount(other.getPreviousCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + previousCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int previousCount_ ; + /** + * int32 previous_count = 1 [json_name = "previousCount"]; + * @return The previousCount. + */ + @java.lang.Override + public int getPreviousCount() { + return previousCount_; + } + /** + * int32 previous_count = 1 [json_name = "previousCount"]; + * @param value The previousCount to set. + * @return This builder for chaining. + */ + public Builder setPreviousCount(int value) { + + previousCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 previous_count = 1 [json_name = "previousCount"]; + * @return This builder for chaining. + */ + public Builder clearPreviousCount() { + bitField0_ = (bitField0_ & ~0x00000001); + previousCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.LotsOfRepliesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.LotsOfRepliesRequest) + private static final io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LotsOfRepliesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LotsOfRepliesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.LotsOfRepliesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string reply = 1 [json_name = "reply"]; + * @return The reply. + */ + java.lang.String getReply(); + /** + * string reply = 1 [json_name = "reply"]; + * @return The bytes for reply. + */ + com.google.protobuf.ByteString + getReplyBytes(); + + /** + * int32 count = 2 [json_name = "count"]; + * @return The count. + */ + int getCount(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.LotsOfRepliesResponse} + */ + public static final class LotsOfRepliesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.LotsOfRepliesResponse) + LotsOfRepliesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + LotsOfRepliesResponse.class.getName()); + } + // Use LotsOfRepliesResponse.newBuilder() to construct. + private LotsOfRepliesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private LotsOfRepliesResponse() { + reply_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse.class, io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse.Builder.class); + } + + public static final int REPLY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object reply_ = ""; + /** + * string reply = 1 [json_name = "reply"]; + * @return The reply. + */ + @java.lang.Override + public java.lang.String getReply() { + java.lang.Object ref = reply_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reply_ = s; + return s; + } + } + /** + * string reply = 1 [json_name = "reply"]; + * @return The bytes for reply. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReplyBytes() { + java.lang.Object ref = reply_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reply_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNT_FIELD_NUMBER = 2; + private int count_ = 0; + /** + * int32 count = 2 [json_name = "count"]; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reply_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, reply_); + } + if (count_ != 0) { + output.writeInt32(2, count_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reply_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, reply_); + } + if (count_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, count_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse other = (io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse) obj; + + if (!getReply() + .equals(other.getReply())) return false; + if (getCount() + != other.getCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPLY_FIELD_NUMBER; + hash = (53 * hash) + getReply().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.LotsOfRepliesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.LotsOfRepliesResponse) + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse.class, io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reply_ = ""; + count_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Dummy.internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse build() { + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse result = new io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reply_ = reply_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.count_ = count_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse.getDefaultInstance()) return this; + if (!other.getReply().isEmpty()) { + reply_ = other.reply_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getCount() != 0) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + reply_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + count_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object reply_ = ""; + /** + * string reply = 1 [json_name = "reply"]; + * @return The reply. + */ + public java.lang.String getReply() { + java.lang.Object ref = reply_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reply_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string reply = 1 [json_name = "reply"]; + * @return The bytes for reply. + */ + public com.google.protobuf.ByteString + getReplyBytes() { + java.lang.Object ref = reply_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reply_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string reply = 1 [json_name = "reply"]; + * @param value The reply to set. + * @return This builder for chaining. + */ + public Builder setReply( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + reply_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string reply = 1 [json_name = "reply"]; + * @return This builder for chaining. + */ + public Builder clearReply() { + reply_ = getDefaultInstance().getReply(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string reply = 1 [json_name = "reply"]; + * @param value The bytes for reply to set. + * @return This builder for chaining. + */ + public Builder setReplyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + reply_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int count_ ; + /** + * int32 count = 2 [json_name = "count"]; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * int32 count = 2 [json_name = "count"]; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 count = 2 [json_name = "count"]; + * @return This builder for chaining. + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000002); + count_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.LotsOfRepliesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.LotsOfRepliesResponse) + private static final io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LotsOfRepliesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_SayHelloRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_SayHelloRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_SayHelloResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_SayHelloResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\"gitpod/experimental/v1/dummy.proto\022\026gi" + + "tpod.experimental.v1\"\021\n\017SayHelloRequest\"" + + "(\n\020SayHelloResponse\022\024\n\005reply\030\001 \001(\tR\005repl" + + "y\"=\n\024LotsOfRepliesRequest\022%\n\016previous_co" + + "unt\030\001 \001(\005R\rpreviousCount\"C\n\025LotsOfReplie" + + "sResponse\022\024\n\005reply\030\001 \001(\tR\005reply\022\024\n\005count" + + "\030\002 \001(\005R\005count2\335\001\n\014HelloService\022]\n\010SayHel" + + "lo\022\'.gitpod.experimental.v1.SayHelloRequ" + + "est\032(.gitpod.experimental.v1.SayHelloRes" + + "ponse\022n\n\rLotsOfReplies\022,.gitpod.experime" + + "ntal.v1.LotsOfRepliesRequest\032-.gitpod.ex" + + "perimental.v1.LotsOfRepliesResponse0\001Bk\n" + + "#io.gitpod.publicapi.experimental.v1ZDgi" + + "thub.com/gitpod-io/gitpod/components/pub" + + "lic-api/go/experimental/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_experimental_v1_SayHelloRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_SayHelloRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_SayHelloRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_SayHelloResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_SayHelloResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_SayHelloResponse_descriptor, + new java.lang.String[] { "Reply", }); + internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_LotsOfRepliesRequest_descriptor, + new java.lang.String[] { "PreviousCount", }); + internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_LotsOfRepliesResponse_descriptor, + new java.lang.String[] { "Reply", "Count", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceClient.kt new file mode 100644 index 00000000000000..79c82a100b0e77 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceClient.kt @@ -0,0 +1,33 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/editor_service.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class EditorServiceClient( + private val client: ProtocolClientInterface, +) : EditorServiceClientInterface { + override suspend fun listEditorOptions(request: EditorServiceOuterClass.ListEditorOptionsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.EditorService/ListEditorOptions", + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest::class, + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceClientInterface.kt new file mode 100644 index 00000000000000..a284a3566170d0 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceClientInterface.kt @@ -0,0 +1,18 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/editor_service.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface EditorServiceClientInterface { + public suspend fun listEditorOptions(request: EditorServiceOuterClass.ListEditorOptionsRequest, + headers: Headers = emptyMap()): + ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceOuterClass.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceOuterClass.java new file mode 100644 index 00000000000000..03ce6d5084fd58 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/EditorServiceOuterClass.java @@ -0,0 +1,3507 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/editor_service.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class EditorServiceOuterClass { + private EditorServiceOuterClass() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + EditorServiceOuterClass.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ListEditorOptionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListEditorOptionsRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListEditorOptionsRequest} + */ + public static final class ListEditorOptionsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListEditorOptionsRequest) + ListEditorOptionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListEditorOptionsRequest.class.getName()); + } + // Use ListEditorOptionsRequest.newBuilder() to construct. + private ListEditorOptionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListEditorOptionsRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest.class, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest other = (io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListEditorOptionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListEditorOptionsRequest) + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest.class, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest build() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest result = new io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListEditorOptionsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListEditorOptionsRequest) + private static final io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEditorOptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListEditorOptionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListEditorOptionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + java.util.List + getResultList(); + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption getResult(int index); + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + int getResultCount(); + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + java.util.List + getResultOrBuilderList(); + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOptionOrBuilder getResultOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListEditorOptionsResponse} + */ + public static final class ListEditorOptionsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListEditorOptionsResponse) + ListEditorOptionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListEditorOptionsResponse.class.getName()); + } + // Use ListEditorOptionsResponse.newBuilder() to construct. + private ListEditorOptionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListEditorOptionsResponse() { + result_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse.class, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse.Builder.class); + } + + public static final int RESULT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List result_; + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + @java.lang.Override + public java.util.List getResultList() { + return result_; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + @java.lang.Override + public java.util.List + getResultOrBuilderList() { + return result_; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + @java.lang.Override + public int getResultCount() { + return result_.size(); + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption getResult(int index) { + return result_.get(index); + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOptionOrBuilder getResultOrBuilder( + int index) { + return result_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < result_.size(); i++) { + output.writeMessage(1, result_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < result_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, result_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse other = (io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse) obj; + + if (!getResultList() + .equals(other.getResultList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListEditorOptionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListEditorOptionsResponse) + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse.class, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + } else { + result_ = null; + resultBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse build() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse result = new io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse result) { + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse.getDefaultInstance()) return this; + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + resultBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.parser(), + extensionRegistry); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(m); + } else { + resultBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List result_ = + java.util.Collections.emptyList(); + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOptionOrBuilder> resultBuilder_; + + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public java.util.List getResultList() { + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public int getResultCount() { + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption getResult(int index) { + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public Builder setResult( + int index, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public Builder setResult( + int index, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public Builder addResult(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public Builder addResult( + int index, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public Builder addResult( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public Builder addResult( + int index, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public Builder addAllResult( + java.lang.Iterable values) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public Builder clearResult() { + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public Builder removeResult(int index) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder getResultBuilder( + int index) { + return getResultFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOptionOrBuilder getResultOrBuilder( + int index) { + if (resultBuilder_ == null) { + return result_.get(index); } else { + return resultBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public java.util.List + getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); + } + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder addResultBuilder( + int index) { + return getResultFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.EditorOption result = 1 [json_name = "result"]; + */ + public java.util.List + getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOptionOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOptionOrBuilder>( + result_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListEditorOptionsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListEditorOptionsResponse) + private static final io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEditorOptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.ListEditorOptionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EditorOptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.EditorOption) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The unique identifier for an editor.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * The unique identifier for an editor.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Human readable title text of the editor (plain text only).
+     * 
+ * + * string title = 2 [json_name = "title"]; + * @return The title. + */ + java.lang.String getTitle(); + /** + *
+     * Human readable title text of the editor (plain text only).
+     * 
+ * + * string title = 2 [json_name = "title"]; + * @return The bytes for title. + */ + com.google.protobuf.ByteString + getTitleBytes(); + + /** + * .gitpod.experimental.v1.EditorOption.Type type = 3 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * .gitpod.experimental.v1.EditorOption.Type type = 3 [json_name = "type"]; + * @return The type. + */ + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type getType(); + + /** + *
+     * The logo for the editor
+     * 
+ * + * string logo = 4 [json_name = "logo"]; + * @return The logo. + */ + java.lang.String getLogo(); + /** + *
+     * The logo for the editor
+     * 
+ * + * string logo = 4 [json_name = "logo"]; + * @return The bytes for logo. + */ + com.google.protobuf.ByteString + getLogoBytes(); + + /** + *
+     * Text of an optional label next to the editor option like “Insiders” (plain
+     * text only).
+     * 
+ * + * string label = 5 [json_name = "label"]; + * @return The label. + */ + java.lang.String getLabel(); + /** + *
+     * Text of an optional label next to the editor option like “Insiders” (plain
+     * text only).
+     * 
+ * + * string label = 5 [json_name = "label"]; + * @return The bytes for label. + */ + com.google.protobuf.ByteString + getLabelBytes(); + + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + * @return Whether the stable field is set. + */ + boolean hasStable(); + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + * @return The stable. + */ + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind getStable(); + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + */ + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder getStableOrBuilder(); + + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + * @return Whether the latest field is set. + */ + boolean hasLatest(); + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + * @return The latest. + */ + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind getLatest(); + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + */ + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder getLatestOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.EditorOption} + */ + public static final class EditorOption extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.EditorOption) + EditorOptionOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + EditorOption.class.getName()); + } + // Use EditorOption.newBuilder() to construct. + private EditorOption(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EditorOption() { + id_ = ""; + title_ = ""; + type_ = 0; + logo_ = ""; + label_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.class, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder.class); + } + + /** + *
+     * The type of the editor, currently browser or desktop.
+     * 
+ * + * Protobuf enum {@code gitpod.experimental.v1.EditorOption.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * TYPE_BROWSER = 1; + */ + TYPE_BROWSER(1), + /** + * TYPE_DESKTOP = 2; + */ + TYPE_DESKTOP(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Type.class.getName()); + } + /** + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * TYPE_BROWSER = 1; + */ + public static final int TYPE_BROWSER_VALUE = 1; + /** + * TYPE_DESKTOP = 2; + */ + public static final int TYPE_DESKTOP_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: return TYPE_UNSPECIFIED; + case 1: return TYPE_BROWSER; + case 2: return TYPE_DESKTOP; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.experimental.v1.EditorOption.Type) + } + + public interface KindOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.EditorOption.Kind) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The semantic version of the editor.
+       * 
+ * + * string version = 1 [json_name = "version"]; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
+       * The semantic version of the editor.
+       * 
+ * + * string version = 1 [json_name = "version"]; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.EditorOption.Kind} + */ + public static final class Kind extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.EditorOption.Kind) + KindOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Kind.class.getName()); + } + // Use Kind.newBuilder() to construct. + private Kind(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Kind() { + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_Kind_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_Kind_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.class, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + *
+       * The semantic version of the editor.
+       * 
+ * + * string version = 1 [json_name = "version"]; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+       * The semantic version of the editor.
+       * 
+ * + * string version = 1 [json_name = "version"]; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, version_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind other = (io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind) obj; + + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.EditorOption.Kind} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.EditorOption.Kind) + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_Kind_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_Kind_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.class, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_Kind_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind build() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind buildPartial() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind result = new io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind other) { + if (other == io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object version_ = ""; + /** + *
+         * The semantic version of the editor.
+         * 
+ * + * string version = 1 [json_name = "version"]; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * The semantic version of the editor.
+         * 
+ * + * string version = 1 [json_name = "version"]; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * The semantic version of the editor.
+         * 
+ * + * string version = 1 [json_name = "version"]; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The semantic version of the editor.
+         * 
+ * + * string version = 1 [json_name = "version"]; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * The semantic version of the editor.
+         * 
+ * + * string version = 1 [json_name = "version"]; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.EditorOption.Kind) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.EditorOption.Kind) + private static final io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind(); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Kind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * The unique identifier for an editor.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * The unique identifier for an editor.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + *
+     * Human readable title text of the editor (plain text only).
+     * 
+ * + * string title = 2 [json_name = "title"]; + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + *
+     * Human readable title text of the editor (plain text only).
+     * 
+ * + * string title = 2 [json_name = "title"]; + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_ = 0; + /** + * .gitpod.experimental.v1.EditorOption.Type type = 3 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .gitpod.experimental.v1.EditorOption.Type type = 3 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type getType() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type result = io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type.forNumber(type_); + return result == null ? io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type.UNRECOGNIZED : result; + } + + public static final int LOGO_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object logo_ = ""; + /** + *
+     * The logo for the editor
+     * 
+ * + * string logo = 4 [json_name = "logo"]; + * @return The logo. + */ + @java.lang.Override + public java.lang.String getLogo() { + java.lang.Object ref = logo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logo_ = s; + return s; + } + } + /** + *
+     * The logo for the editor
+     * 
+ * + * string logo = 4 [json_name = "logo"]; + * @return The bytes for logo. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLogoBytes() { + java.lang.Object ref = logo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + /** + *
+     * Text of an optional label next to the editor option like “Insiders” (plain
+     * text only).
+     * 
+ * + * string label = 5 [json_name = "label"]; + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + /** + *
+     * Text of an optional label next to the editor option like “Insiders” (plain
+     * text only).
+     * 
+ * + * string label = 5 [json_name = "label"]; + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STABLE_FIELD_NUMBER = 6; + private io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind stable_; + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + * @return Whether the stable field is set. + */ + @java.lang.Override + public boolean hasStable() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + * @return The stable. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind getStable() { + return stable_ == null ? io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance() : stable_; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder getStableOrBuilder() { + return stable_ == null ? io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance() : stable_; + } + + public static final int LATEST_FIELD_NUMBER = 7; + private io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind latest_; + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + * @return Whether the latest field is set. + */ + @java.lang.Override + public boolean hasLatest() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + * @return The latest. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind getLatest() { + return latest_ == null ? io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance() : latest_; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder getLatestOrBuilder() { + return latest_ == null ? io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance() : latest_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); + } + if (type_ != io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logo_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, logo_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, label_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getStable()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getLatest()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); + } + if (type_ != io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logo_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, logo_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, label_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getStable()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLatest()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption other = (io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getTitle() + .equals(other.getTitle())) return false; + if (type_ != other.type_) return false; + if (!getLogo() + .equals(other.getLogo())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (hasStable() != other.hasStable()) return false; + if (hasStable()) { + if (!getStable() + .equals(other.getStable())) return false; + } + if (hasLatest() != other.hasLatest()) return false; + if (hasLatest()) { + if (!getLatest() + .equals(other.getLatest())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + LOGO_FIELD_NUMBER; + hash = (53 * hash) + getLogo().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + if (hasStable()) { + hash = (37 * hash) + STABLE_FIELD_NUMBER; + hash = (53 * hash) + getStable().hashCode(); + } + if (hasLatest()) { + hash = (37 * hash) + LATEST_FIELD_NUMBER; + hash = (53 * hash) + getLatest().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.EditorOption} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.EditorOption) + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.class, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStableFieldBuilder(); + getLatestFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + title_ = ""; + type_ = 0; + logo_ = ""; + label_ = ""; + stable_ = null; + if (stableBuilder_ != null) { + stableBuilder_.dispose(); + stableBuilder_ = null; + } + latest_ = null; + if (latestBuilder_ != null) { + latestBuilder_.dispose(); + latestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.internal_static_gitpod_experimental_v1_EditorOption_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption build() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption buildPartial() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption result = new io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.logo_ = logo_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.label_ = label_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.stable_ = stableBuilder_ == null + ? stable_ + : stableBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.latest_ = latestBuilder_ == null + ? latest_ + : latestBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption other) { + if (other == io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getLogo().isEmpty()) { + logo_ = other.logo_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasStable()) { + mergeStable(other.getStable()); + } + if (other.hasLatest()) { + mergeLatest(other.getLatest()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + type_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + logo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getStableFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getLatestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * The unique identifier for an editor.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The unique identifier for an editor.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The unique identifier for an editor.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The unique identifier for an editor.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The unique identifier for an editor.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + *
+       * Human readable title text of the editor (plain text only).
+       * 
+ * + * string title = 2 [json_name = "title"]; + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Human readable title text of the editor (plain text only).
+       * 
+ * + * string title = 2 [json_name = "title"]; + * @return The bytes for title. + */ + public com.google.protobuf.ByteString + getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Human readable title text of the editor (plain text only).
+       * 
+ * + * string title = 2 [json_name = "title"]; + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Human readable title text of the editor (plain text only).
+       * 
+ * + * string title = 2 [json_name = "title"]; + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Human readable title text of the editor (plain text only).
+       * 
+ * + * string title = 2 [json_name = "title"]; + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * .gitpod.experimental.v1.EditorOption.Type type = 3 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .gitpod.experimental.v1.EditorOption.Type type = 3 [json_name = "type"]; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Type type = 3 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type getType() { + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type result = io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type.forNumber(type_); + return result == null ? io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type.UNRECOGNIZED : result; + } + /** + * .gitpod.experimental.v1.EditorOption.Type type = 3 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Type type = 3 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000004); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object logo_ = ""; + /** + *
+       * The logo for the editor
+       * 
+ * + * string logo = 4 [json_name = "logo"]; + * @return The logo. + */ + public java.lang.String getLogo() { + java.lang.Object ref = logo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logo_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The logo for the editor
+       * 
+ * + * string logo = 4 [json_name = "logo"]; + * @return The bytes for logo. + */ + public com.google.protobuf.ByteString + getLogoBytes() { + java.lang.Object ref = logo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The logo for the editor
+       * 
+ * + * string logo = 4 [json_name = "logo"]; + * @param value The logo to set. + * @return This builder for chaining. + */ + public Builder setLogo( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + logo_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The logo for the editor
+       * 
+ * + * string logo = 4 [json_name = "logo"]; + * @return This builder for chaining. + */ + public Builder clearLogo() { + logo_ = getDefaultInstance().getLogo(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * The logo for the editor
+       * 
+ * + * string logo = 4 [json_name = "logo"]; + * @param value The bytes for logo to set. + * @return This builder for chaining. + */ + public Builder setLogoBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + logo_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + /** + *
+       * Text of an optional label next to the editor option like “Insiders” (plain
+       * text only).
+       * 
+ * + * string label = 5 [json_name = "label"]; + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Text of an optional label next to the editor option like “Insiders” (plain
+       * text only).
+       * 
+ * + * string label = 5 [json_name = "label"]; + * @return The bytes for label. + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Text of an optional label next to the editor option like “Insiders” (plain
+       * text only).
+       * 
+ * + * string label = 5 [json_name = "label"]; + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + label_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Text of an optional label next to the editor option like “Insiders” (plain
+       * text only).
+       * 
+ * + * string label = 5 [json_name = "label"]; + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * Text of an optional label next to the editor option like “Insiders” (plain
+       * text only).
+       * 
+ * + * string label = 5 [json_name = "label"]; + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + label_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind stable_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder> stableBuilder_; + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + * @return Whether the stable field is set. + */ + public boolean hasStable() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + * @return The stable. + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind getStable() { + if (stableBuilder_ == null) { + return stable_ == null ? io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance() : stable_; + } else { + return stableBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + */ + public Builder setStable(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind value) { + if (stableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stable_ = value; + } else { + stableBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + */ + public Builder setStable( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder builderForValue) { + if (stableBuilder_ == null) { + stable_ = builderForValue.build(); + } else { + stableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + */ + public Builder mergeStable(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind value) { + if (stableBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + stable_ != null && + stable_ != io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance()) { + getStableBuilder().mergeFrom(value); + } else { + stable_ = value; + } + } else { + stableBuilder_.mergeFrom(value); + } + if (stable_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + */ + public Builder clearStable() { + bitField0_ = (bitField0_ & ~0x00000020); + stable_ = null; + if (stableBuilder_ != null) { + stableBuilder_.dispose(); + stableBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder getStableBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStableFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder getStableOrBuilder() { + if (stableBuilder_ != null) { + return stableBuilder_.getMessageOrBuilder(); + } else { + return stable_ == null ? + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance() : stable_; + } + } + /** + * .gitpod.experimental.v1.EditorOption.Kind stable = 6 [json_name = "stable"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder> + getStableFieldBuilder() { + if (stableBuilder_ == null) { + stableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder>( + getStable(), + getParentForChildren(), + isClean()); + stable_ = null; + } + return stableBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind latest_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder> latestBuilder_; + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + * @return Whether the latest field is set. + */ + public boolean hasLatest() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + * @return The latest. + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind getLatest() { + if (latestBuilder_ == null) { + return latest_ == null ? io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance() : latest_; + } else { + return latestBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + */ + public Builder setLatest(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind value) { + if (latestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latest_ = value; + } else { + latestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + */ + public Builder setLatest( + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder builderForValue) { + if (latestBuilder_ == null) { + latest_ = builderForValue.build(); + } else { + latestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + */ + public Builder mergeLatest(io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind value) { + if (latestBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + latest_ != null && + latest_ != io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance()) { + getLatestBuilder().mergeFrom(value); + } else { + latest_ = value; + } + } else { + latestBuilder_.mergeFrom(value); + } + if (latest_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + */ + public Builder clearLatest() { + bitField0_ = (bitField0_ & ~0x00000040); + latest_ = null; + if (latestBuilder_ != null) { + latestBuilder_.dispose(); + latestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder getLatestBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getLatestFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + */ + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder getLatestOrBuilder() { + if (latestBuilder_ != null) { + return latestBuilder_.getMessageOrBuilder(); + } else { + return latest_ == null ? + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.getDefaultInstance() : latest_; + } + } + /** + * .gitpod.experimental.v1.EditorOption.Kind latest = 7 [json_name = "latest"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder> + getLatestFieldBuilder() { + if (latestBuilder_ == null) { + latestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.Kind.Builder, io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption.KindOrBuilder>( + getLatest(), + getParentForChildren(), + isClean()); + latest_ = null; + } + return latestBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.EditorOption) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.EditorOption) + private static final io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption(); + } + + public static io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EditorOption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.EditorServiceOuterClass.EditorOption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_EditorOption_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_EditorOption_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_EditorOption_Kind_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_EditorOption_Kind_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+gitpod/experimental/v1/editor_service." + + "proto\022\026gitpod.experimental.v1\"\032\n\030ListEdi" + + "torOptionsRequest\"Y\n\031ListEditorOptionsRe" + + "sponse\022<\n\006result\030\001 \003(\0132$.gitpod.experime" + + "ntal.v1.EditorOptionR\006result\"\207\003\n\014EditorO" + + "ption\022\016\n\002id\030\001 \001(\tR\002id\022\024\n\005title\030\002 \001(\tR\005ti" + + "tle\022=\n\004type\030\003 \001(\0162).gitpod.experimental." + + "v1.EditorOption.TypeR\004type\022\022\n\004logo\030\004 \001(\t" + + "R\004logo\022\024\n\005label\030\005 \001(\tR\005label\022A\n\006stable\030\006" + + " \001(\0132).gitpod.experimental.v1.EditorOpti" + + "on.KindR\006stable\022A\n\006latest\030\007 \001(\0132).gitpod" + + ".experimental.v1.EditorOption.KindR\006late" + + "st\032 \n\004Kind\022\030\n\007version\030\001 \001(\tR\007version\"@\n\004" + + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_BROWS" + + "ER\020\001\022\020\n\014TYPE_DESKTOP\020\0022\213\001\n\rEditorService" + + "\022z\n\021ListEditorOptions\0220.gitpod.experimen" + + "tal.v1.ListEditorOptionsRequest\0321.gitpod" + + ".experimental.v1.ListEditorOptionsRespon" + + "se\"\000Bk\n#io.gitpod.publicapi.experimental" + + ".v1ZDgithub.com/gitpod-io/gitpod/compone" + + "nts/public-api/go/experimental/v1b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListEditorOptionsRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListEditorOptionsResponse_descriptor, + new java.lang.String[] { "Result", }); + internal_static_gitpod_experimental_v1_EditorOption_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_experimental_v1_EditorOption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_EditorOption_descriptor, + new java.lang.String[] { "Id", "Title", "Type", "Logo", "Label", "Stable", "Latest", }); + internal_static_gitpod_experimental_v1_EditorOption_Kind_descriptor = + internal_static_gitpod_experimental_v1_EditorOption_descriptor.getNestedTypes().get(0); + internal_static_gitpod_experimental_v1_EditorOption_Kind_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_EditorOption_Kind_descriptor, + new java.lang.String[] { "Version", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/HelloServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/HelloServiceClient.kt new file mode 100644 index 00000000000000..217bb88b223f6c --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/HelloServiceClient.kt @@ -0,0 +1,58 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/dummy.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.ServerOnlyStreamInterface +import com.connectrpc.StreamType + +/** + * HelloService is a dummy service that says hello. It is used for reliability + * testing. + */ +public class HelloServiceClient( + private val client: ProtocolClientInterface, +) : HelloServiceClientInterface { + /** + * Unary RPCs where the client sends a single request to the server and gets a + * single response back, just like a normal function call. + */ + override suspend fun sayHello(request: Dummy.SayHelloRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.HelloService/SayHello", + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloRequest::class, + io.gitpod.publicapi.experimental.v1.Dummy.SayHelloResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Server streaming RPCs where the client sends a request to the server and + * gets a stream to read a sequence of messages back. + */ + override suspend fun lotsOfReplies(headers: Headers): + ServerOnlyStreamInterface = + client.serverStream( + headers, + MethodSpec( + "gitpod.experimental.v1.HelloService/LotsOfReplies", + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesRequest::class, + io.gitpod.publicapi.experimental.v1.Dummy.LotsOfRepliesResponse::class, + StreamType.SERVER, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/HelloServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/HelloServiceClientInterface.kt new file mode 100644 index 00000000000000..778150e5efda52 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/HelloServiceClientInterface.kt @@ -0,0 +1,33 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/dummy.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage +import com.connectrpc.ServerOnlyStreamInterface + +/** + * HelloService is a dummy service that says hello. It is used for reliability + * testing. + */ +public interface HelloServiceClientInterface { + /** + * Unary RPCs where the client sends a single request to the server and gets a + * single response back, just like a normal function call. + */ + public suspend fun sayHello(request: Dummy.SayHelloRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * Server streaming RPCs where the client sends a request to the server and + * gets a stream to read a sequence of messages back. + */ + public suspend fun lotsOfReplies(headers: Headers = emptyMap()): + ServerOnlyStreamInterface +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IDEClientServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IDEClientServiceClient.kt new file mode 100644 index 00000000000000..ec70a221a85a4a --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IDEClientServiceClient.kt @@ -0,0 +1,67 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/ide_client.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class IDEClientServiceClient( + private val client: ProtocolClientInterface, +) : IDEClientServiceClientInterface { + /** + * SendHeartbeat sends a clientheartbeat signal for a running workspace. + */ + override suspend fun sendHeartbeat(request: IdeClient.SendHeartbeatRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.IDEClientService/SendHeartbeat", + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest::class, + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * SendDidClose sends a client close signal for a running workspace. + */ + override suspend fun sendDidClose(request: IdeClient.SendDidCloseRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.IDEClientService/SendDidClose", + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest::class, + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateGitStatus updates the status of a repository in a workspace. + */ + override suspend fun updateGitStatus(request: IdeClient.UpdateGitStatusRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.IDEClientService/UpdateGitStatus", + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest::class, + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IDEClientServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IDEClientServiceClientInterface.kt new file mode 100644 index 00000000000000..652384a1b51402 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IDEClientServiceClientInterface.kt @@ -0,0 +1,32 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/ide_client.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface IDEClientServiceClientInterface { + /** + * SendHeartbeat sends a clientheartbeat signal for a running workspace. + */ + public suspend fun sendHeartbeat(request: IdeClient.SendHeartbeatRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * SendDidClose sends a client close signal for a running workspace. + */ + public suspend fun sendDidClose(request: IdeClient.SendDidCloseRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * UpdateGitStatus updates the status of a repository in a workspace. + */ + public suspend fun updateGitStatus(request: IdeClient.UpdateGitStatusRequest, headers: Headers = + emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdeClient.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdeClient.java new file mode 100644 index 00000000000000..04e032a0f21f14 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdeClient.java @@ -0,0 +1,2944 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/ide_client.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class IdeClient { + private IdeClient() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + IdeClient.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SendHeartbeatRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.SendHeartbeatRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.SendHeartbeatRequest} + */ + public static final class SendHeartbeatRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.SendHeartbeatRequest) + SendHeartbeatRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SendHeartbeatRequest.class.getName()); + } + // Use SendHeartbeatRequest.newBuilder() to construct. + private SendHeartbeatRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SendHeartbeatRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest.class, io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest other = (io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.SendHeartbeatRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.SendHeartbeatRequest) + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest.class, io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest build() { + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest result = new io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.SendHeartbeatRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.SendHeartbeatRequest) + private static final io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendHeartbeatRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SendHeartbeatResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.SendHeartbeatResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.SendHeartbeatResponse} + */ + public static final class SendHeartbeatResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.SendHeartbeatResponse) + SendHeartbeatResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SendHeartbeatResponse.class.getName()); + } + // Use SendHeartbeatResponse.newBuilder() to construct. + private SendHeartbeatResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SendHeartbeatResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse.class, io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse other = (io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.SendHeartbeatResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.SendHeartbeatResponse) + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse.class, io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendHeartbeatResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse build() { + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse result = new io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.SendHeartbeatResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.SendHeartbeatResponse) + private static final io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendHeartbeatResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendHeartbeatResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SendDidCloseRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.SendDidCloseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.SendDidCloseRequest} + */ + public static final class SendDidCloseRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.SendDidCloseRequest) + SendDidCloseRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SendDidCloseRequest.class.getName()); + } + // Use SendDidCloseRequest.newBuilder() to construct. + private SendDidCloseRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SendDidCloseRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest.class, io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest other = (io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.SendDidCloseRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.SendDidCloseRequest) + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest.class, io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest build() { + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest result = new io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.SendDidCloseRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.SendDidCloseRequest) + private static final io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendDidCloseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SendDidCloseResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.SendDidCloseResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.SendDidCloseResponse} + */ + public static final class SendDidCloseResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.SendDidCloseResponse) + SendDidCloseResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SendDidCloseResponse.class.getName()); + } + // Use SendDidCloseResponse.newBuilder() to construct. + private SendDidCloseResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SendDidCloseResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse.class, io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse other = (io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.SendDidCloseResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.SendDidCloseResponse) + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse.class, io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_SendDidCloseResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse build() { + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse result = new io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.SendDidCloseResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.SendDidCloseResponse) + private static final io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendDidCloseResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.SendDidCloseResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateGitStatusRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdateGitStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + * @return The status. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getStatus(); + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getStatusOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateGitStatusRequest} + */ + public static final class UpdateGitStatusRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdateGitStatusRequest) + UpdateGitStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateGitStatusRequest.class.getName()); + } + // Use UpdateGitStatusRequest.newBuilder() to construct. + private UpdateGitStatusRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateGitStatusRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest.class, io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus status_; + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getStatus() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance() : status_; + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest other = (io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateGitStatusRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdateGitStatusRequest) + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest.class, io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest build() { + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest result = new io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus status_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder> statusBuilder_; + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + * @return The status. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + */ + public Builder setStatus(io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + */ + public Builder setStatus( + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + */ + public Builder mergeStatus(io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + status_ != null && + status_ != io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance() : status_; + } + } + /** + * .gitpod.experimental.v1.GitStatus status = 2 [json_name = "status"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdateGitStatusRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdateGitStatusRequest) + private static final io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGitStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateGitStatusResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdateGitStatusResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateGitStatusResponse} + */ + public static final class UpdateGitStatusResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdateGitStatusResponse) + UpdateGitStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateGitStatusResponse.class.getName()); + } + // Use UpdateGitStatusResponse.newBuilder() to construct. + private UpdateGitStatusResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateGitStatusResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse.class, io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse other = (io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateGitStatusResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdateGitStatusResponse) + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse.class, io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse build() { + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse result = new io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdateGitStatusResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdateGitStatusResponse) + private static final io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGitStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.IdeClient.UpdateGitStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_SendHeartbeatRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_SendHeartbeatRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_SendHeartbeatResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_SendHeartbeatResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_SendDidCloseRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_SendDidCloseRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_SendDidCloseResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_SendDidCloseResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'gitpod/experimental/v1/ide_client.prot" + + "o\022\026gitpod.experimental.v1\032\'gitpod/experi" + + "mental/v1/workspaces.proto\"9\n\024SendHeartb" + + "eatRequest\022!\n\014workspace_id\030\001 \001(\tR\013worksp" + + "aceId\"\027\n\025SendHeartbeatResponse\"8\n\023SendDi" + + "dCloseRequest\022!\n\014workspace_id\030\001 \001(\tR\013wor" + + "kspaceId\"\026\n\024SendDidCloseResponse\"v\n\026Upda" + + "teGitStatusRequest\022!\n\014workspace_id\030\001 \001(\t" + + "R\013workspaceId\0229\n\006status\030\002 \001(\0132!.gitpod.e" + + "xperimental.v1.GitStatusR\006status\"\031\n\027Upda" + + "teGitStatusResponse2\345\002\n\020IDEClientService" + + "\022n\n\rSendHeartbeat\022,.gitpod.experimental." + + "v1.SendHeartbeatRequest\032-.gitpod.experim" + + "ental.v1.SendHeartbeatResponse\"\000\022k\n\014Send" + + "DidClose\022+.gitpod.experimental.v1.SendDi" + + "dCloseRequest\032,.gitpod.experimental.v1.S" + + "endDidCloseResponse\"\000\022t\n\017UpdateGitStatus" + + "\022..gitpod.experimental.v1.UpdateGitStatu" + + "sRequest\032/.gitpod.experimental.v1.Update" + + "GitStatusResponse\"\000Bk\n#io.gitpod.publica" + + "pi.experimental.v1ZDgithub.com/gitpod-io" + + "/gitpod/components/public-api/go/experim" + + "ental/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.experimental.v1.Workspaces.getDescriptor(), + }); + internal_static_gitpod_experimental_v1_SendHeartbeatRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_SendHeartbeatRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_SendHeartbeatRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_SendHeartbeatResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_SendHeartbeatResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_SendHeartbeatResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_SendDidCloseRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_experimental_v1_SendDidCloseRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_SendDidCloseRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_SendDidCloseResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_experimental_v1_SendDidCloseResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_SendDidCloseResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdateGitStatusRequest_descriptor, + new java.lang.String[] { "WorkspaceId", "Status", }); + internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdateGitStatusResponse_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.experimental.v1.Workspaces.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdentityProviderServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdentityProviderServiceClient.kt new file mode 100644 index 00000000000000..25f5451d6b4202 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdentityProviderServiceClient.kt @@ -0,0 +1,36 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/identityprovider.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class IdentityProviderServiceClient( + private val client: ProtocolClientInterface, +) : IdentityProviderServiceClientInterface { + /** + * GetIDToken produces a new OIDC ID token + * (https://openid.net/specs/openid-connect-core-1_0.html#ImplicitIDToken) + */ + override suspend fun getIDToken(request: Identityprovider.GetIDTokenRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.IdentityProviderService/GetIDToken", + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest::class, + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdentityProviderServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdentityProviderServiceClientInterface.kt new file mode 100644 index 00000000000000..e73fc45f504333 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/IdentityProviderServiceClientInterface.kt @@ -0,0 +1,21 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/identityprovider.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface IdentityProviderServiceClientInterface { + /** + * GetIDToken produces a new OIDC ID token + * (https://openid.net/specs/openid-connect-core-1_0.html#ImplicitIDToken) + */ + public suspend fun getIDToken(request: Identityprovider.GetIDTokenRequest, headers: Headers = + emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Identityprovider.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Identityprovider.java new file mode 100644 index 00000000000000..de4813df688e3e --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Identityprovider.java @@ -0,0 +1,1466 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/identityprovider.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class Identityprovider { + private Identityprovider() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Identityprovider.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GetIDTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetIDTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + * repeated string audience = 2 [json_name = "audience"]; + * @return A list containing the audience. + */ + java.util.List + getAudienceList(); + /** + * repeated string audience = 2 [json_name = "audience"]; + * @return The count of audience. + */ + int getAudienceCount(); + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param index The index of the element to return. + * @return The audience at the given index. + */ + java.lang.String getAudience(int index); + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param index The index of the value to return. + * @return The bytes of the audience at the given index. + */ + com.google.protobuf.ByteString + getAudienceBytes(int index); + + /** + * string scope = 3 [json_name = "scope"]; + * @return The scope. + */ + java.lang.String getScope(); + /** + * string scope = 3 [json_name = "scope"]; + * @return The bytes for scope. + */ + com.google.protobuf.ByteString + getScopeBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetIDTokenRequest} + */ + public static final class GetIDTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetIDTokenRequest) + GetIDTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetIDTokenRequest.class.getName()); + } + // Use GetIDTokenRequest.newBuilder() to construct. + private GetIDTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetIDTokenRequest() { + workspaceId_ = ""; + audience_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + scope_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest.class, io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUDIENCE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList audience_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string audience = 2 [json_name = "audience"]; + * @return A list containing the audience. + */ + public com.google.protobuf.ProtocolStringList + getAudienceList() { + return audience_; + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @return The count of audience. + */ + public int getAudienceCount() { + return audience_.size(); + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param index The index of the element to return. + * @return The audience at the given index. + */ + public java.lang.String getAudience(int index) { + return audience_.get(index); + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param index The index of the value to return. + * @return The bytes of the audience at the given index. + */ + public com.google.protobuf.ByteString + getAudienceBytes(int index) { + return audience_.getByteString(index); + } + + public static final int SCOPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; + /** + * string scope = 3 [json_name = "scope"]; + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } + } + /** + * string scope = 3 [json_name = "scope"]; + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + for (int i = 0; i < audience_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, audience_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scope_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, scope_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + { + int dataSize = 0; + for (int i = 0; i < audience_.size(); i++) { + dataSize += computeStringSizeNoTag(audience_.getRaw(i)); + } + size += dataSize; + size += 1 * getAudienceList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scope_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, scope_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest other = (io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getAudienceList() + .equals(other.getAudienceList())) return false; + if (!getScope() + .equals(other.getScope())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + if (getAudienceCount() > 0) { + hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudienceList().hashCode(); + } + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetIDTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetIDTokenRequest) + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest.class, io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + audience_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + scope_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest build() { + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest result = new io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + audience_.makeImmutable(); + result.audience_ = audience_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scope_ = scope_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.audience_.isEmpty()) { + if (audience_.isEmpty()) { + audience_ = other.audience_; + bitField0_ |= 0x00000002; + } else { + ensureAudienceIsMutable(); + audience_.addAll(other.audience_); + } + onChanged(); + } + if (!other.getScope().isEmpty()) { + scope_ = other.scope_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAudienceIsMutable(); + audience_.add(s); + break; + } // case 18 + case 26: { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList audience_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAudienceIsMutable() { + if (!audience_.isModifiable()) { + audience_ = new com.google.protobuf.LazyStringArrayList(audience_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @return A list containing the audience. + */ + public com.google.protobuf.ProtocolStringList + getAudienceList() { + audience_.makeImmutable(); + return audience_; + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @return The count of audience. + */ + public int getAudienceCount() { + return audience_.size(); + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param index The index of the element to return. + * @return The audience at the given index. + */ + public java.lang.String getAudience(int index) { + return audience_.get(index); + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param index The index of the value to return. + * @return The bytes of the audience at the given index. + */ + public com.google.protobuf.ByteString + getAudienceBytes(int index) { + return audience_.getByteString(index); + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param index The index to set the value at. + * @param value The audience to set. + * @return This builder for chaining. + */ + public Builder setAudience( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAudienceIsMutable(); + audience_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param value The audience to add. + * @return This builder for chaining. + */ + public Builder addAudience( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAudienceIsMutable(); + audience_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param values The audience to add. + * @return This builder for chaining. + */ + public Builder addAllAudience( + java.lang.Iterable values) { + ensureAudienceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, audience_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @return This builder for chaining. + */ + public Builder clearAudience() { + audience_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + * repeated string audience = 2 [json_name = "audience"]; + * @param value The bytes of the audience to add. + * @return This builder for chaining. + */ + public Builder addAudienceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureAudienceIsMutable(); + audience_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object scope_ = ""; + /** + * string scope = 3 [json_name = "scope"]; + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string scope = 3 [json_name = "scope"]; + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string scope = 3 [json_name = "scope"]; + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + scope_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string scope = 3 [json_name = "scope"]; + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string scope = 3 [json_name = "scope"]; + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + scope_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetIDTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetIDTokenRequest) + private static final io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIDTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetIDTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetIDTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string token = 1 [json_name = "token"]; + * @return The token. + */ + java.lang.String getToken(); + /** + * string token = 1 [json_name = "token"]; + * @return The bytes for token. + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetIDTokenResponse} + */ + public static final class GetIDTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetIDTokenResponse) + GetIDTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetIDTokenResponse.class.getName()); + } + // Use GetIDTokenResponse.newBuilder() to construct. + private GetIDTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetIDTokenResponse() { + token_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse.class, io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse.Builder.class); + } + + public static final int TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + * string token = 1 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + * string token = 1 [json_name = "token"]; + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, token_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, token_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse other = (io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse) obj; + + if (!getToken() + .equals(other.getToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetIDTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetIDTokenResponse) + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse.class, io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.internal_static_gitpod_experimental_v1_GetIDTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse build() { + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse result = new io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = token_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse.getDefaultInstance()) return this; + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object token_ = ""; + /** + * string token = 1 [json_name = "token"]; + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string token = 1 [json_name = "token"]; + * @return The bytes for token. + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string token = 1 [json_name = "token"]; + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string token = 1 [json_name = "token"]; + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string token = 1 [json_name = "token"]; + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetIDTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetIDTokenResponse) + private static final io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIDTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Identityprovider.GetIDTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetIDTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetIDTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetIDTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetIDTokenResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-gitpod/experimental/v1/identityprovide" + + "r.proto\022\026gitpod.experimental.v1\"h\n\021GetID" + + "TokenRequest\022!\n\014workspace_id\030\001 \001(\tR\013work" + + "spaceId\022\032\n\010audience\030\002 \003(\tR\010audience\022\024\n\005s" + + "cope\030\003 \001(\tR\005scope\"*\n\022GetIDTokenResponse\022" + + "\024\n\005token\030\001 \001(\tR\005token2\200\001\n\027IdentityProvid" + + "erService\022e\n\nGetIDToken\022).gitpod.experim" + + "ental.v1.GetIDTokenRequest\032*.gitpod.expe" + + "rimental.v1.GetIDTokenResponse\"\000Bk\n#io.g" + + "itpod.publicapi.experimental.v1ZDgithub." + + "com/gitpod-io/gitpod/components/public-a" + + "pi/go/experimental/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_experimental_v1_GetIDTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_GetIDTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetIDTokenRequest_descriptor, + new java.lang.String[] { "WorkspaceId", "Audience", "Scope", }); + internal_static_gitpod_experimental_v1_GetIDTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_GetIDTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetIDTokenResponse_descriptor, + new java.lang.String[] { "Token", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/OIDCServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/OIDCServiceClient.kt new file mode 100644 index 00000000000000..cb138c828a9535 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/OIDCServiceClient.kt @@ -0,0 +1,115 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/oidc.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class OIDCServiceClient( + private val client: ProtocolClientInterface, +) : OIDCServiceClientInterface { + /** + * Creates a new OIDC client configuration. + */ + override suspend fun createClientConfig(request: Oidc.CreateClientConfigRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.OIDCService/CreateClientConfig", + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest::class, + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Retrieves an OIDC client configuration by ID. + */ + override suspend fun getClientConfig(request: Oidc.GetClientConfigRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.OIDCService/GetClientConfig", + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest::class, + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Lists OIDC client configurations. + */ + override suspend fun listClientConfigs(request: Oidc.ListClientConfigsRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.OIDCService/ListClientConfigs", + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest::class, + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Updates modifiable properties of an existing OIDC client configuration. + */ + override suspend fun updateClientConfig(request: Oidc.UpdateClientConfigRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.OIDCService/UpdateClientConfig", + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest::class, + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Removes an OIDC client configuration by ID. + */ + override suspend fun deleteClientConfig(request: Oidc.DeleteClientConfigRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.OIDCService/DeleteClientConfig", + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest::class, + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Activates an OIDC client configuration by ID. + */ + override suspend fun setClientConfigActivation(request: Oidc.SetClientConfigActivationRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.OIDCService/SetClientConfigActivation", + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest::class, + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/OIDCServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/OIDCServiceClientInterface.kt new file mode 100644 index 00000000000000..71589df57a2d56 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/OIDCServiceClientInterface.kt @@ -0,0 +1,50 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/oidc.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface OIDCServiceClientInterface { + /** + * Creates a new OIDC client configuration. + */ + public suspend fun createClientConfig(request: Oidc.CreateClientConfigRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * Retrieves an OIDC client configuration by ID. + */ + public suspend fun getClientConfig(request: Oidc.GetClientConfigRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * Lists OIDC client configurations. + */ + public suspend fun listClientConfigs(request: Oidc.ListClientConfigsRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * Updates modifiable properties of an existing OIDC client configuration. + */ + public suspend fun updateClientConfig(request: Oidc.UpdateClientConfigRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * Removes an OIDC client configuration by ID. + */ + public suspend fun deleteClientConfig(request: Oidc.DeleteClientConfigRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * Activates an OIDC client configuration by ID. + */ + public suspend fun setClientConfigActivation(request: Oidc.SetClientConfigActivationRequest, + headers: Headers = emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Oidc.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Oidc.java new file mode 100644 index 00000000000000..f6195a5133c930 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Oidc.java @@ -0,0 +1,16068 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/oidc.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class Oidc { + private Oidc() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Oidc.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface OIDCClientConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.OIDCClientConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID is the unique identifier for the OIDC Config.
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * ID is the unique identifier for the OIDC Config.
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + * @return Whether the oidcConfig field is set. + */ + boolean hasOidcConfig(); + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + * @return The oidcConfig. + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig getOidcConfig(); + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfigOrBuilder getOidcConfigOrBuilder(); + + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + * @return Whether the oauth2Config field is set. + */ + boolean hasOauth2Config(); + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + * @return The oauth2Config. + */ + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config getOauth2Config(); + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2ConfigOrBuilder getOauth2ConfigOrBuilder(); + + /** + *
+     * Optional.
+     * 
+ * + * bool oauth_only = 5 [json_name = "oauthOnly"]; + * @return The oauthOnly. + */ + boolean getOauthOnly(); + + /** + *
+     * List of the JWS signing algorithms (alg values) supported by the OP for the
+     * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+     * included.
+     * Optional.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + java.util.List + getIdTokenSigningAlgValuesSupportedList(); + /** + *
+     * List of the JWS signing algorithms (alg values) supported by the OP for the
+     * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+     * included.
+     * Optional.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @return The count of idTokenSigningAlgValuesSupported. + */ + int getIdTokenSigningAlgValuesSupportedCount(); + /** + *
+     * List of the JWS signing algorithms (alg values) supported by the OP for the
+     * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+     * included.
+     * Optional.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + java.lang.String getIdTokenSigningAlgValuesSupported(int index); + /** + *
+     * List of the JWS signing algorithms (alg values) supported by the OP for the
+     * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+     * included.
+     * Optional.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + com.google.protobuf.ByteString + getIdTokenSigningAlgValuesSupportedBytes(int index); + + /** + *
+     * Time when the config was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + boolean hasCreationTime(); + /** + *
+     * Time when the config was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return The creationTime. + */ + com.google.protobuf.Timestamp getCreationTime(); + /** + *
+     * Time when the config was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder(); + + /** + *
+     * Describes the status of this configuration item.
+     * Read-only.
+     * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+     * Describes the status of this configuration item.
+     * Read-only.
+     * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + * @return The status. + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus getStatus(); + /** + *
+     * Describes the status of this configuration item.
+     * Read-only.
+     * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatusOrBuilder getStatusOrBuilder(); + + /** + *
+     * Whether this config can be used for sign-ins.
+     * Defaults to false.
+     * Optional.
+     * 
+ * + * bool active = 9 [json_name = "active"]; + * @return The active. + */ + boolean getActive(); + + /** + *
+     * Whether this config was tested by executing the OIDC flow.
+     * Defaults to false.
+     * Optional.
+     * 
+ * + * bool verified = 10 [json_name = "verified"]; + * @return The verified. + */ + boolean getVerified(); + } + /** + *
+   * Configuration of an OpenID client.
+   *
+   * For the metadata describing the configuration of OIDC providers, cf.
+   * https://openid.net/specs/openid-connect-discovery-1_0.html
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.OIDCClientConfig} + */ + public static final class OIDCClientConfig extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.OIDCClientConfig) + OIDCClientConfigOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OIDCClientConfig.class.getName()); + } + // Use OIDCClientConfig.newBuilder() to construct. + private OIDCClientConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private OIDCClientConfig() { + id_ = ""; + organizationId_ = ""; + idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.class, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * ID is the unique identifier for the OIDC Config.
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * ID is the unique identifier for the OIDC Config.
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OIDC_CONFIG_FIELD_NUMBER = 3; + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig oidcConfig_; + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + * @return Whether the oidcConfig field is set. + */ + @java.lang.Override + public boolean hasOidcConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + * @return The oidcConfig. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig getOidcConfig() { + return oidcConfig_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.getDefaultInstance() : oidcConfig_; + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfigOrBuilder getOidcConfigOrBuilder() { + return oidcConfig_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.getDefaultInstance() : oidcConfig_; + } + + public static final int OAUTH2_CONFIG_FIELD_NUMBER = 4; + private io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config oauth2Config_; + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + * @return Whether the oauth2Config field is set. + */ + @java.lang.Override + public boolean hasOauth2Config() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + * @return The oauth2Config. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config getOauth2Config() { + return oauth2Config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.getDefaultInstance() : oauth2Config_; + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OAuth2ConfigOrBuilder getOauth2ConfigOrBuilder() { + return oauth2Config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.getDefaultInstance() : oauth2Config_; + } + + public static final int OAUTH_ONLY_FIELD_NUMBER = 5; + private boolean oauthOnly_ = false; + /** + *
+     * Optional.
+     * 
+ * + * bool oauth_only = 5 [json_name = "oauthOnly"]; + * @return The oauthOnly. + */ + @java.lang.Override + public boolean getOauthOnly() { + return oauthOnly_; + } + + public static final int ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * List of the JWS signing algorithms (alg values) supported by the OP for the
+     * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+     * included.
+     * Optional.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList + getIdTokenSigningAlgValuesSupportedList() { + return idTokenSigningAlgValuesSupported_; + } + /** + *
+     * List of the JWS signing algorithms (alg values) supported by the OP for the
+     * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+     * included.
+     * Optional.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + *
+     * List of the JWS signing algorithms (alg values) supported by the OP for the
+     * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+     * included.
+     * Optional.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + *
+     * List of the JWS signing algorithms (alg values) supported by the OP for the
+     * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+     * included.
+     * Optional.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString + getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + + public static final int CREATION_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp creationTime_; + /** + *
+     * Time when the config was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + @java.lang.Override + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Time when the config was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return The creationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreationTime() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + /** + *
+     * Time when the config was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + + public static final int STATUS_FIELD_NUMBER = 8; + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus status_; + /** + *
+     * Describes the status of this configuration item.
+     * Read-only.
+     * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Describes the status of this configuration item.
+     * Read-only.
+     * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus getStatus() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.getDefaultInstance() : status_; + } + /** + *
+     * Describes the status of this configuration item.
+     * Read-only.
+     * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.getDefaultInstance() : status_; + } + + public static final int ACTIVE_FIELD_NUMBER = 9; + private boolean active_ = false; + /** + *
+     * Whether this config can be used for sign-ins.
+     * Defaults to false.
+     * Optional.
+     * 
+ * + * bool active = 9 [json_name = "active"]; + * @return The active. + */ + @java.lang.Override + public boolean getActive() { + return active_; + } + + public static final int VERIFIED_FIELD_NUMBER = 10; + private boolean verified_ = false; + /** + *
+     * Whether this config was tested by executing the OIDC flow.
+     * Defaults to false.
+     * Optional.
+     * 
+ * + * bool verified = 10 [json_name = "verified"]; + * @return The verified. + */ + @java.lang.Override + public boolean getVerified() { + return verified_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOidcConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getOauth2Config()); + } + if (oauthOnly_ != false) { + output.writeBool(5, oauthOnly_); + } + for (int i = 0; i < idTokenSigningAlgValuesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, idTokenSigningAlgValuesSupported_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getCreationTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getStatus()); + } + if (active_ != false) { + output.writeBool(9, active_); + } + if (verified_ != false) { + output.writeBool(10, verified_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOidcConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOauth2Config()); + } + if (oauthOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, oauthOnly_); + } + { + int dataSize = 0; + for (int i = 0; i < idTokenSigningAlgValuesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(idTokenSigningAlgValuesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdTokenSigningAlgValuesSupportedList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreationTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getStatus()); + } + if (active_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, active_); + } + if (verified_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, verified_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig other = (io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (hasOidcConfig() != other.hasOidcConfig()) return false; + if (hasOidcConfig()) { + if (!getOidcConfig() + .equals(other.getOidcConfig())) return false; + } + if (hasOauth2Config() != other.hasOauth2Config()) return false; + if (hasOauth2Config()) { + if (!getOauth2Config() + .equals(other.getOauth2Config())) return false; + } + if (getOauthOnly() + != other.getOauthOnly()) return false; + if (!getIdTokenSigningAlgValuesSupportedList() + .equals(other.getIdTokenSigningAlgValuesSupportedList())) return false; + if (hasCreationTime() != other.hasCreationTime()) return false; + if (hasCreationTime()) { + if (!getCreationTime() + .equals(other.getCreationTime())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (getActive() + != other.getActive()) return false; + if (getVerified() + != other.getVerified()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + if (hasOidcConfig()) { + hash = (37 * hash) + OIDC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOidcConfig().hashCode(); + } + if (hasOauth2Config()) { + hash = (37 * hash) + OAUTH2_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOauth2Config().hashCode(); + } + hash = (37 * hash) + OAUTH_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOauthOnly()); + if (getIdTokenSigningAlgValuesSupportedCount() > 0) { + hash = (37 * hash) + ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getIdTokenSigningAlgValuesSupportedList().hashCode(); + } + if (hasCreationTime()) { + hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreationTime().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (37 * hash) + ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getActive()); + hash = (37 * hash) + VERIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerified()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Configuration of an OpenID client.
+     *
+     * For the metadata describing the configuration of OIDC providers, cf.
+     * https://openid.net/specs/openid-connect-discovery-1_0.html
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.OIDCClientConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.OIDCClientConfig) + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.class, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getOidcConfigFieldBuilder(); + getOauth2ConfigFieldBuilder(); + getCreationTimeFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + organizationId_ = ""; + oidcConfig_ = null; + if (oidcConfigBuilder_ != null) { + oidcConfigBuilder_.dispose(); + oidcConfigBuilder_ = null; + } + oauth2Config_ = null; + if (oauth2ConfigBuilder_ != null) { + oauth2ConfigBuilder_.dispose(); + oauth2ConfigBuilder_ = null; + } + oauthOnly_ = false; + idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + active_ = false; + verified_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfig_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig build() { + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig result = new io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.oidcConfig_ = oidcConfigBuilder_ == null + ? oidcConfig_ + : oidcConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.oauth2Config_ = oauth2ConfigBuilder_ == null + ? oauth2Config_ + : oauth2ConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.oauthOnly_ = oauthOnly_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + idTokenSigningAlgValuesSupported_.makeImmutable(); + result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.creationTime_ = creationTimeBuilder_ == null + ? creationTime_ + : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.active_ = active_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.verified_ = verified_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOidcConfig()) { + mergeOidcConfig(other.getOidcConfig()); + } + if (other.hasOauth2Config()) { + mergeOauth2Config(other.getOauth2Config()); + } + if (other.getOauthOnly() != false) { + setOauthOnly(other.getOauthOnly()); + } + if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { + if (idTokenSigningAlgValuesSupported_.isEmpty()) { + idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; + bitField0_ |= 0x00000020; + } else { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); + } + onChanged(); + } + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.getActive() != false) { + setActive(other.getActive()); + } + if (other.getVerified() != false) { + setVerified(other.getVerified()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getOidcConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getOauth2ConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + oauthOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(s); + break; + } // case 50 + case 58: { + input.readMessage( + getCreationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + active_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + verified_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * ID is the unique identifier for the OIDC Config.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ID is the unique identifier for the OIDC Config.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ID is the unique identifier for the OIDC Config.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * ID is the unique identifier for the OIDC Config.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * ID is the unique identifier for the OIDC Config.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig oidcConfig_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfigOrBuilder> oidcConfigBuilder_; + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + * @return Whether the oidcConfig field is set. + */ + public boolean hasOidcConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + * @return The oidcConfig. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig getOidcConfig() { + if (oidcConfigBuilder_ == null) { + return oidcConfig_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.getDefaultInstance() : oidcConfig_; + } else { + return oidcConfigBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + */ + public Builder setOidcConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig value) { + if (oidcConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oidcConfig_ = value; + } else { + oidcConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + */ + public Builder setOidcConfig( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.Builder builderForValue) { + if (oidcConfigBuilder_ == null) { + oidcConfig_ = builderForValue.build(); + } else { + oidcConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + */ + public Builder mergeOidcConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig value) { + if (oidcConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + oidcConfig_ != null && + oidcConfig_ != io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.getDefaultInstance()) { + getOidcConfigBuilder().mergeFrom(value); + } else { + oidcConfig_ = value; + } + } else { + oidcConfigBuilder_.mergeFrom(value); + } + if (oidcConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + */ + public Builder clearOidcConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + oidcConfig_ = null; + if (oidcConfigBuilder_ != null) { + oidcConfigBuilder_.dispose(); + oidcConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.Builder getOidcConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOidcConfigFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfigOrBuilder getOidcConfigOrBuilder() { + if (oidcConfigBuilder_ != null) { + return oidcConfigBuilder_.getMessageOrBuilder(); + } else { + return oidcConfig_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.getDefaultInstance() : oidcConfig_; + } + } + /** + * .gitpod.experimental.v1.OIDCConfig oidc_config = 3 [json_name = "oidcConfig"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfigOrBuilder> + getOidcConfigFieldBuilder() { + if (oidcConfigBuilder_ == null) { + oidcConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfigOrBuilder>( + getOidcConfig(), + getParentForChildren(), + isClean()); + oidcConfig_ = null; + } + return oidcConfigBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config oauth2Config_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config, io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OAuth2ConfigOrBuilder> oauth2ConfigBuilder_; + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + * @return Whether the oauth2Config field is set. + */ + public boolean hasOauth2Config() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + * @return The oauth2Config. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config getOauth2Config() { + if (oauth2ConfigBuilder_ == null) { + return oauth2Config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.getDefaultInstance() : oauth2Config_; + } else { + return oauth2ConfigBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + */ + public Builder setOauth2Config(io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config value) { + if (oauth2ConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oauth2Config_ = value; + } else { + oauth2ConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + */ + public Builder setOauth2Config( + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.Builder builderForValue) { + if (oauth2ConfigBuilder_ == null) { + oauth2Config_ = builderForValue.build(); + } else { + oauth2ConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + */ + public Builder mergeOauth2Config(io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config value) { + if (oauth2ConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + oauth2Config_ != null && + oauth2Config_ != io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.getDefaultInstance()) { + getOauth2ConfigBuilder().mergeFrom(value); + } else { + oauth2Config_ = value; + } + } else { + oauth2ConfigBuilder_.mergeFrom(value); + } + if (oauth2Config_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + */ + public Builder clearOauth2Config() { + bitField0_ = (bitField0_ & ~0x00000008); + oauth2Config_ = null; + if (oauth2ConfigBuilder_ != null) { + oauth2ConfigBuilder_.dispose(); + oauth2ConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.Builder getOauth2ConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getOauth2ConfigFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OAuth2ConfigOrBuilder getOauth2ConfigOrBuilder() { + if (oauth2ConfigBuilder_ != null) { + return oauth2ConfigBuilder_.getMessageOrBuilder(); + } else { + return oauth2Config_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.getDefaultInstance() : oauth2Config_; + } + } + /** + * .gitpod.experimental.v1.OAuth2Config oauth2_config = 4 [json_name = "oauth2Config"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config, io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OAuth2ConfigOrBuilder> + getOauth2ConfigFieldBuilder() { + if (oauth2ConfigBuilder_ == null) { + oauth2ConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config, io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OAuth2ConfigOrBuilder>( + getOauth2Config(), + getParentForChildren(), + isClean()); + oauth2Config_ = null; + } + return oauth2ConfigBuilder_; + } + + private boolean oauthOnly_ ; + /** + *
+       * Optional.
+       * 
+ * + * bool oauth_only = 5 [json_name = "oauthOnly"]; + * @return The oauthOnly. + */ + @java.lang.Override + public boolean getOauthOnly() { + return oauthOnly_; + } + /** + *
+       * Optional.
+       * 
+ * + * bool oauth_only = 5 [json_name = "oauthOnly"]; + * @param value The oauthOnly to set. + * @return This builder for chaining. + */ + public Builder setOauthOnly(boolean value) { + + oauthOnly_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * bool oauth_only = 5 [json_name = "oauthOnly"]; + * @return This builder for chaining. + */ + public Builder clearOauthOnly() { + bitField0_ = (bitField0_ & ~0x00000010); + oauthOnly_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { + if (!idTokenSigningAlgValuesSupported_.isModifiable()) { + idTokenSigningAlgValuesSupported_ = new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); + } + bitField0_ |= 0x00000020; + } + /** + *
+       * List of the JWS signing algorithms (alg values) supported by the OP for the
+       * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+       * included.
+       * Optional.
+       * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList + getIdTokenSigningAlgValuesSupportedList() { + idTokenSigningAlgValuesSupported_.makeImmutable(); + return idTokenSigningAlgValuesSupported_; + } + /** + *
+       * List of the JWS signing algorithms (alg values) supported by the OP for the
+       * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+       * included.
+       * Optional.
+       * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + *
+       * List of the JWS signing algorithms (alg values) supported by the OP for the
+       * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+       * included.
+       * Optional.
+       * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + *
+       * List of the JWS signing algorithms (alg values) supported by the OP for the
+       * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+       * included.
+       * Optional.
+       * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString + getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + /** + *
+       * List of the JWS signing algorithms (alg values) supported by the OP for the
+       * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+       * included.
+       * Optional.
+       * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param index The index to set the value at. + * @param value The idTokenSigningAlgValuesSupported to set. + * @return This builder for chaining. + */ + public Builder setIdTokenSigningAlgValuesSupported( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * List of the JWS signing algorithms (alg values) supported by the OP for the
+       * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+       * included.
+       * Optional.
+       * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param value The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupported( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * List of the JWS signing algorithms (alg values) supported by the OP for the
+       * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+       * included.
+       * Optional.
+       * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param values The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllIdTokenSigningAlgValuesSupported( + java.lang.Iterable values) { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, idTokenSigningAlgValuesSupported_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * List of the JWS signing algorithms (alg values) supported by the OP for the
+       * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+       * included.
+       * Optional.
+       * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @return This builder for chaining. + */ + public Builder clearIdTokenSigningAlgValuesSupported() { + idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; + onChanged(); + return this; + } + /** + *
+       * List of the JWS signing algorithms (alg values) supported by the OP for the
+       * ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be
+       * included.
+       * Optional.
+       * 
+ * + * repeated string id_token_signing_alg_values_supported = 6 [json_name = "idTokenSigningAlgValuesSupported"]; + * @param value The bytes of the idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupportedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_; + /** + *
+       * Time when the config was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+       * Time when the config was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return The creationTime. + */ + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } + } + /** + *
+       * Time when the config was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * Time when the config was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public Builder setCreationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * Time when the config was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + creationTime_ != null && + creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+       * Time when the config was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x00000040); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Time when the config was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Time when the config was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + } + /** + *
+       * Time when the config was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), + getParentForChildren(), + isClean()); + creationTime_ = null; + } + return creationTimeBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus status_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatusOrBuilder> statusBuilder_; + /** + *
+       * Describes the status of this configuration item.
+       * Read-only.
+       * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+       * Describes the status of this configuration item.
+       * Read-only.
+       * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + * @return The status. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * Describes the status of this configuration item.
+       * Read-only.
+       * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + */ + public Builder setStatus(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * Describes the status of this configuration item.
+       * Read-only.
+       * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + */ + public Builder setStatus( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * Describes the status of this configuration item.
+       * Read-only.
+       * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + */ + public Builder mergeStatus(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + status_ != null && + status_ != io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+       * Describes the status of this configuration item.
+       * Read-only.
+       * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000080); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Describes the status of this configuration item.
+       * Read-only.
+       * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * Describes the status of this configuration item.
+       * Read-only.
+       * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.getDefaultInstance() : status_; + } + } + /** + *
+       * Describes the status of this configuration item.
+       * Read-only.
+       * 
+ * + * .gitpod.experimental.v1.OIDCClientConfigStatus status = 8 [json_name = "status"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private boolean active_ ; + /** + *
+       * Whether this config can be used for sign-ins.
+       * Defaults to false.
+       * Optional.
+       * 
+ * + * bool active = 9 [json_name = "active"]; + * @return The active. + */ + @java.lang.Override + public boolean getActive() { + return active_; + } + /** + *
+       * Whether this config can be used for sign-ins.
+       * Defaults to false.
+       * Optional.
+       * 
+ * + * bool active = 9 [json_name = "active"]; + * @param value The active to set. + * @return This builder for chaining. + */ + public Builder setActive(boolean value) { + + active_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * Whether this config can be used for sign-ins.
+       * Defaults to false.
+       * Optional.
+       * 
+ * + * bool active = 9 [json_name = "active"]; + * @return This builder for chaining. + */ + public Builder clearActive() { + bitField0_ = (bitField0_ & ~0x00000100); + active_ = false; + onChanged(); + return this; + } + + private boolean verified_ ; + /** + *
+       * Whether this config was tested by executing the OIDC flow.
+       * Defaults to false.
+       * Optional.
+       * 
+ * + * bool verified = 10 [json_name = "verified"]; + * @return The verified. + */ + @java.lang.Override + public boolean getVerified() { + return verified_; + } + /** + *
+       * Whether this config was tested by executing the OIDC flow.
+       * Defaults to false.
+       * Optional.
+       * 
+ * + * bool verified = 10 [json_name = "verified"]; + * @param value The verified to set. + * @return This builder for chaining. + */ + public Builder setVerified(boolean value) { + + verified_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * Whether this config was tested by executing the OIDC flow.
+       * Defaults to false.
+       * Optional.
+       * 
+ * + * bool verified = 10 [json_name = "verified"]; + * @return This builder for chaining. + */ + public Builder clearVerified() { + bitField0_ = (bitField0_ & ~0x00000200); + verified_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.OIDCClientConfig) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.OIDCClientConfig) + private static final io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OIDCClientConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OIDCConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.OIDCConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * URL using the https scheme with no query or fragment component that the
+     * OIDC provider asserts as its Issuer Identifier.
+     * Required.
+     * 
+ * + * string issuer = 1 [json_name = "issuer"]; + * @return The issuer. + */ + java.lang.String getIssuer(); + /** + *
+     * URL using the https scheme with no query or fragment component that the
+     * OIDC provider asserts as its Issuer Identifier.
+     * Required.
+     * 
+ * + * string issuer = 1 [json_name = "issuer"]; + * @return The bytes for issuer. + */ + com.google.protobuf.ByteString + getIssuerBytes(); + + /** + *
+     * A KeySet that can validate the id_token (JSON web token)
+     * Either one is required.
+     * 
+ * + * string jwks = 2 [json_name = "jwks"]; + * @return The jwks. + */ + java.lang.String getJwks(); + /** + *
+     * A KeySet that can validate the id_token (JSON web token)
+     * Either one is required.
+     * 
+ * + * string jwks = 2 [json_name = "jwks"]; + * @return The bytes for jwks. + */ + com.google.protobuf.ByteString + getJwksBytes(); + + /** + * string jwks_url = 3 [json_name = "jwksUrl"]; + * @return The jwksUrl. + */ + java.lang.String getJwksUrl(); + /** + * string jwks_url = 3 [json_name = "jwksUrl"]; + * @return The bytes for jwksUrl. + */ + com.google.protobuf.ByteString + getJwksUrlBytes(); + + /** + *
+     * Provider specific parameters to control the behavior of the consent screen.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + * @return Whether the hints field is set. + */ + boolean hasHints(); + /** + *
+     * Provider specific parameters to control the behavior of the consent screen.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + * @return The hints. + */ + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints getHints(); + /** + *
+     * Provider specific parameters to control the behavior of the consent screen.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHintsOrBuilder getHintsOrBuilder(); + + /** + *
+     * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+     * Should only be set, if an override is required.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + * @return Whether the overrideClaimMapping field is set. + */ + boolean hasOverrideClaimMapping(); + /** + *
+     * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+     * Should only be set, if an override is required.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + * @return The overrideClaimMapping. + */ + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride getOverrideClaimMapping(); + /** + *
+     * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+     * Should only be set, if an override is required.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverrideOrBuilder getOverrideClaimMappingOrBuilder(); + } + /** + *
+   * The OIDC specific part of the client configuration.
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.OIDCConfig} + */ + public static final class OIDCConfig extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.OIDCConfig) + OIDCConfigOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OIDCConfig.class.getName()); + } + // Use OIDCConfig.newBuilder() to construct. + private OIDCConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private OIDCConfig() { + issuer_ = ""; + jwks_ = ""; + jwksUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.class, io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.Builder.class); + } + + private int bitField0_; + public static final int ISSUER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object issuer_ = ""; + /** + *
+     * URL using the https scheme with no query or fragment component that the
+     * OIDC provider asserts as its Issuer Identifier.
+     * Required.
+     * 
+ * + * string issuer = 1 [json_name = "issuer"]; + * @return The issuer. + */ + @java.lang.Override + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } + } + /** + *
+     * URL using the https scheme with no query or fragment component that the
+     * OIDC provider asserts as its Issuer Identifier.
+     * Required.
+     * 
+ * + * string issuer = 1 [json_name = "issuer"]; + * @return The bytes for issuer. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JWKS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object jwks_ = ""; + /** + *
+     * A KeySet that can validate the id_token (JSON web token)
+     * Either one is required.
+     * 
+ * + * string jwks = 2 [json_name = "jwks"]; + * @return The jwks. + */ + @java.lang.Override + public java.lang.String getJwks() { + java.lang.Object ref = jwks_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwks_ = s; + return s; + } + } + /** + *
+     * A KeySet that can validate the id_token (JSON web token)
+     * Either one is required.
+     * 
+ * + * string jwks = 2 [json_name = "jwks"]; + * @return The bytes for jwks. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJwksBytes() { + java.lang.Object ref = jwks_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwks_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JWKS_URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object jwksUrl_ = ""; + /** + * string jwks_url = 3 [json_name = "jwksUrl"]; + * @return The jwksUrl. + */ + @java.lang.Override + public java.lang.String getJwksUrl() { + java.lang.Object ref = jwksUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUrl_ = s; + return s; + } + } + /** + * string jwks_url = 3 [json_name = "jwksUrl"]; + * @return The bytes for jwksUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJwksUrlBytes() { + java.lang.Object ref = jwksUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwksUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HINTS_FIELD_NUMBER = 4; + private io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints hints_; + /** + *
+     * Provider specific parameters to control the behavior of the consent screen.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + * @return Whether the hints field is set. + */ + @java.lang.Override + public boolean hasHints() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Provider specific parameters to control the behavior of the consent screen.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + * @return The hints. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints getHints() { + return hints_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.getDefaultInstance() : hints_; + } + /** + *
+     * Provider specific parameters to control the behavior of the consent screen.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHintsOrBuilder getHintsOrBuilder() { + return hints_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.getDefaultInstance() : hints_; + } + + public static final int OVERRIDE_CLAIM_MAPPING_FIELD_NUMBER = 5; + private io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride overrideClaimMapping_; + /** + *
+     * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+     * Should only be set, if an override is required.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + * @return Whether the overrideClaimMapping field is set. + */ + @java.lang.Override + public boolean hasOverrideClaimMapping() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+     * Should only be set, if an override is required.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + * @return The overrideClaimMapping. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride getOverrideClaimMapping() { + return overrideClaimMapping_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.getDefaultInstance() : overrideClaimMapping_; + } + /** + *
+     * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+     * Should only be set, if an override is required.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverrideOrBuilder getOverrideClaimMappingOrBuilder() { + return overrideClaimMapping_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.getDefaultInstance() : overrideClaimMapping_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(issuer_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, issuer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jwks_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, jwks_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jwksUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, jwksUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getHints()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getOverrideClaimMapping()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(issuer_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, issuer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jwks_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, jwks_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jwksUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, jwksUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getHints()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOverrideClaimMapping()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig other = (io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig) obj; + + if (!getIssuer() + .equals(other.getIssuer())) return false; + if (!getJwks() + .equals(other.getJwks())) return false; + if (!getJwksUrl() + .equals(other.getJwksUrl())) return false; + if (hasHints() != other.hasHints()) return false; + if (hasHints()) { + if (!getHints() + .equals(other.getHints())) return false; + } + if (hasOverrideClaimMapping() != other.hasOverrideClaimMapping()) return false; + if (hasOverrideClaimMapping()) { + if (!getOverrideClaimMapping() + .equals(other.getOverrideClaimMapping())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISSUER_FIELD_NUMBER; + hash = (53 * hash) + getIssuer().hashCode(); + hash = (37 * hash) + JWKS_FIELD_NUMBER; + hash = (53 * hash) + getJwks().hashCode(); + hash = (37 * hash) + JWKS_URL_FIELD_NUMBER; + hash = (53 * hash) + getJwksUrl().hashCode(); + if (hasHints()) { + hash = (37 * hash) + HINTS_FIELD_NUMBER; + hash = (53 * hash) + getHints().hashCode(); + } + if (hasOverrideClaimMapping()) { + hash = (37 * hash) + OVERRIDE_CLAIM_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + getOverrideClaimMapping().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The OIDC specific part of the client configuration.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.OIDCConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.OIDCConfig) + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.class, io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getHintsFieldBuilder(); + getOverrideClaimMappingFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + issuer_ = ""; + jwks_ = ""; + jwksUrl_ = ""; + hints_ = null; + if (hintsBuilder_ != null) { + hintsBuilder_.dispose(); + hintsBuilder_ = null; + } + overrideClaimMapping_ = null; + if (overrideClaimMappingBuilder_ != null) { + overrideClaimMappingBuilder_.dispose(); + overrideClaimMappingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCConfig_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig build() { + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig result = new io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.issuer_ = issuer_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.jwks_ = jwks_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.jwksUrl_ = jwksUrl_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.hints_ = hintsBuilder_ == null + ? hints_ + : hintsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.overrideClaimMapping_ = overrideClaimMappingBuilder_ == null + ? overrideClaimMapping_ + : overrideClaimMappingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig.getDefaultInstance()) return this; + if (!other.getIssuer().isEmpty()) { + issuer_ = other.issuer_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getJwks().isEmpty()) { + jwks_ = other.jwks_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getJwksUrl().isEmpty()) { + jwksUrl_ = other.jwksUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasHints()) { + mergeHints(other.getHints()); + } + if (other.hasOverrideClaimMapping()) { + mergeOverrideClaimMapping(other.getOverrideClaimMapping()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + issuer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + jwks_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + jwksUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getHintsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getOverrideClaimMappingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object issuer_ = ""; + /** + *
+       * URL using the https scheme with no query or fragment component that the
+       * OIDC provider asserts as its Issuer Identifier.
+       * Required.
+       * 
+ * + * string issuer = 1 [json_name = "issuer"]; + * @return The issuer. + */ + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL using the https scheme with no query or fragment component that the
+       * OIDC provider asserts as its Issuer Identifier.
+       * Required.
+       * 
+ * + * string issuer = 1 [json_name = "issuer"]; + * @return The bytes for issuer. + */ + public com.google.protobuf.ByteString + getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL using the https scheme with no query or fragment component that the
+       * OIDC provider asserts as its Issuer Identifier.
+       * Required.
+       * 
+ * + * string issuer = 1 [json_name = "issuer"]; + * @param value The issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + issuer_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * URL using the https scheme with no query or fragment component that the
+       * OIDC provider asserts as its Issuer Identifier.
+       * Required.
+       * 
+ * + * string issuer = 1 [json_name = "issuer"]; + * @return This builder for chaining. + */ + public Builder clearIssuer() { + issuer_ = getDefaultInstance().getIssuer(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * URL using the https scheme with no query or fragment component that the
+       * OIDC provider asserts as its Issuer Identifier.
+       * Required.
+       * 
+ * + * string issuer = 1 [json_name = "issuer"]; + * @param value The bytes for issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + issuer_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object jwks_ = ""; + /** + *
+       * A KeySet that can validate the id_token (JSON web token)
+       * Either one is required.
+       * 
+ * + * string jwks = 2 [json_name = "jwks"]; + * @return The jwks. + */ + public java.lang.String getJwks() { + java.lang.Object ref = jwks_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwks_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A KeySet that can validate the id_token (JSON web token)
+       * Either one is required.
+       * 
+ * + * string jwks = 2 [json_name = "jwks"]; + * @return The bytes for jwks. + */ + public com.google.protobuf.ByteString + getJwksBytes() { + java.lang.Object ref = jwks_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwks_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A KeySet that can validate the id_token (JSON web token)
+       * Either one is required.
+       * 
+ * + * string jwks = 2 [json_name = "jwks"]; + * @param value The jwks to set. + * @return This builder for chaining. + */ + public Builder setJwks( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + jwks_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * A KeySet that can validate the id_token (JSON web token)
+       * Either one is required.
+       * 
+ * + * string jwks = 2 [json_name = "jwks"]; + * @return This builder for chaining. + */ + public Builder clearJwks() { + jwks_ = getDefaultInstance().getJwks(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * A KeySet that can validate the id_token (JSON web token)
+       * Either one is required.
+       * 
+ * + * string jwks = 2 [json_name = "jwks"]; + * @param value The bytes for jwks to set. + * @return This builder for chaining. + */ + public Builder setJwksBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + jwks_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object jwksUrl_ = ""; + /** + * string jwks_url = 3 [json_name = "jwksUrl"]; + * @return The jwksUrl. + */ + public java.lang.String getJwksUrl() { + java.lang.Object ref = jwksUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string jwks_url = 3 [json_name = "jwksUrl"]; + * @return The bytes for jwksUrl. + */ + public com.google.protobuf.ByteString + getJwksUrlBytes() { + java.lang.Object ref = jwksUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwksUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string jwks_url = 3 [json_name = "jwksUrl"]; + * @param value The jwksUrl to set. + * @return This builder for chaining. + */ + public Builder setJwksUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + jwksUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string jwks_url = 3 [json_name = "jwksUrl"]; + * @return This builder for chaining. + */ + public Builder clearJwksUrl() { + jwksUrl_ = getDefaultInstance().getJwksUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string jwks_url = 3 [json_name = "jwksUrl"]; + * @param value The bytes for jwksUrl to set. + * @return This builder for chaining. + */ + public Builder setJwksUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + jwksUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints hints_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints, io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.Builder, io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHintsOrBuilder> hintsBuilder_; + /** + *
+       * Provider specific parameters to control the behavior of the consent screen.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + * @return Whether the hints field is set. + */ + public boolean hasHints() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * Provider specific parameters to control the behavior of the consent screen.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + * @return The hints. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints getHints() { + if (hintsBuilder_ == null) { + return hints_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.getDefaultInstance() : hints_; + } else { + return hintsBuilder_.getMessage(); + } + } + /** + *
+       * Provider specific parameters to control the behavior of the consent screen.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + */ + public Builder setHints(io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints value) { + if (hintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hints_ = value; + } else { + hintsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Provider specific parameters to control the behavior of the consent screen.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + */ + public Builder setHints( + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.Builder builderForValue) { + if (hintsBuilder_ == null) { + hints_ = builderForValue.build(); + } else { + hintsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Provider specific parameters to control the behavior of the consent screen.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + */ + public Builder mergeHints(io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints value) { + if (hintsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + hints_ != null && + hints_ != io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.getDefaultInstance()) { + getHintsBuilder().mergeFrom(value); + } else { + hints_ = value; + } + } else { + hintsBuilder_.mergeFrom(value); + } + if (hints_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * Provider specific parameters to control the behavior of the consent screen.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + */ + public Builder clearHints() { + bitField0_ = (bitField0_ & ~0x00000008); + hints_ = null; + if (hintsBuilder_ != null) { + hintsBuilder_.dispose(); + hintsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Provider specific parameters to control the behavior of the consent screen.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.Builder getHintsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getHintsFieldBuilder().getBuilder(); + } + /** + *
+       * Provider specific parameters to control the behavior of the consent screen.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHintsOrBuilder getHintsOrBuilder() { + if (hintsBuilder_ != null) { + return hintsBuilder_.getMessageOrBuilder(); + } else { + return hints_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.getDefaultInstance() : hints_; + } + } + /** + *
+       * Provider specific parameters to control the behavior of the consent screen.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ConsentScreenHints hints = 4 [json_name = "hints"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints, io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.Builder, io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHintsOrBuilder> + getHintsFieldBuilder() { + if (hintsBuilder_ == null) { + hintsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints, io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.Builder, io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHintsOrBuilder>( + getHints(), + getParentForChildren(), + isClean()); + hints_ = null; + } + return hintsBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride overrideClaimMapping_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride, io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.Builder, io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverrideOrBuilder> overrideClaimMappingBuilder_; + /** + *
+       * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+       * Should only be set, if an override is required.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + * @return Whether the overrideClaimMapping field is set. + */ + public boolean hasOverrideClaimMapping() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+       * Should only be set, if an override is required.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + * @return The overrideClaimMapping. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride getOverrideClaimMapping() { + if (overrideClaimMappingBuilder_ == null) { + return overrideClaimMapping_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.getDefaultInstance() : overrideClaimMapping_; + } else { + return overrideClaimMappingBuilder_.getMessage(); + } + } + /** + *
+       * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+       * Should only be set, if an override is required.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + */ + public Builder setOverrideClaimMapping(io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride value) { + if (overrideClaimMappingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + overrideClaimMapping_ = value; + } else { + overrideClaimMappingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+       * Should only be set, if an override is required.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + */ + public Builder setOverrideClaimMapping( + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.Builder builderForValue) { + if (overrideClaimMappingBuilder_ == null) { + overrideClaimMapping_ = builderForValue.build(); + } else { + overrideClaimMappingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+       * Should only be set, if an override is required.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + */ + public Builder mergeOverrideClaimMapping(io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride value) { + if (overrideClaimMappingBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + overrideClaimMapping_ != null && + overrideClaimMapping_ != io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.getDefaultInstance()) { + getOverrideClaimMappingBuilder().mergeFrom(value); + } else { + overrideClaimMapping_ = value; + } + } else { + overrideClaimMappingBuilder_.mergeFrom(value); + } + if (overrideClaimMapping_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+       * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+       * Should only be set, if an override is required.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + */ + public Builder clearOverrideClaimMapping() { + bitField0_ = (bitField0_ & ~0x00000010); + overrideClaimMapping_ = null; + if (overrideClaimMappingBuilder_ != null) { + overrideClaimMappingBuilder_.dispose(); + overrideClaimMappingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+       * Should only be set, if an override is required.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.Builder getOverrideClaimMappingBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getOverrideClaimMappingFieldBuilder().getBuilder(); + } + /** + *
+       * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+       * Should only be set, if an override is required.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverrideOrBuilder getOverrideClaimMappingOrBuilder() { + if (overrideClaimMappingBuilder_ != null) { + return overrideClaimMappingBuilder_.getMessageOrBuilder(); + } else { + return overrideClaimMapping_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.getDefaultInstance() : overrideClaimMapping_; + } + } + /** + *
+       * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+       * Should only be set, if an override is required.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.ClaimMappingOverride override_claim_mapping = 5 [json_name = "overrideClaimMapping"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride, io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.Builder, io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverrideOrBuilder> + getOverrideClaimMappingFieldBuilder() { + if (overrideClaimMappingBuilder_ == null) { + overrideClaimMappingBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride, io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.Builder, io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverrideOrBuilder>( + getOverrideClaimMapping(), + getParentForChildren(), + isClean()); + overrideClaimMapping_ = null; + } + return overrideClaimMappingBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.OIDCConfig) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.OIDCConfig) + private static final io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OIDCConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConsentScreenHintsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ConsentScreenHints) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Control options for the consent screen.
+     * Optional.
+     * 
+ * + * string prompt = 1 [json_name = "prompt"]; + * @return The prompt. + */ + java.lang.String getPrompt(); + /** + *
+     * Control options for the consent screen.
+     * Optional.
+     * 
+ * + * string prompt = 1 [json_name = "prompt"]; + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString + getPromptBytes(); + + /** + *
+     * A hint to pre-select the tenant from an AD.
+     * Optional.
+     * 
+ * + * string domain_hint = 2 [json_name = "domainHint"]; + * @return The domainHint. + */ + java.lang.String getDomainHint(); + /** + *
+     * A hint to pre-select the tenant from an AD.
+     * Optional.
+     * 
+ * + * string domain_hint = 2 [json_name = "domainHint"]; + * @return The bytes for domainHint. + */ + com.google.protobuf.ByteString + getDomainHintBytes(); + + /** + *
+     * Optional.
+     * 
+ * + * string login_hint = 3 [json_name = "loginHint"]; + * @return The loginHint. + */ + java.lang.String getLoginHint(); + /** + *
+     * Optional.
+     * 
+ * + * string login_hint = 3 [json_name = "loginHint"]; + * @return The bytes for loginHint. + */ + com.google.protobuf.ByteString + getLoginHintBytes(); + } + /** + *
+   * Provider specific parameters to control the behavior of the consent screen.
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.ConsentScreenHints} + */ + public static final class ConsentScreenHints extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ConsentScreenHints) + ConsentScreenHintsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ConsentScreenHints.class.getName()); + } + // Use ConsentScreenHints.newBuilder() to construct. + private ConsentScreenHints(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ConsentScreenHints() { + prompt_ = ""; + domainHint_ = ""; + loginHint_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ConsentScreenHints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ConsentScreenHints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.class, io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.Builder.class); + } + + public static final int PROMPT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object prompt_ = ""; + /** + *
+     * Control options for the consent screen.
+     * Optional.
+     * 
+ * + * string prompt = 1 [json_name = "prompt"]; + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } + } + /** + *
+     * Control options for the consent screen.
+     * Optional.
+     * 
+ * + * string prompt = 1 [json_name = "prompt"]; + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_HINT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object domainHint_ = ""; + /** + *
+     * A hint to pre-select the tenant from an AD.
+     * Optional.
+     * 
+ * + * string domain_hint = 2 [json_name = "domainHint"]; + * @return The domainHint. + */ + @java.lang.Override + public java.lang.String getDomainHint() { + java.lang.Object ref = domainHint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domainHint_ = s; + return s; + } + } + /** + *
+     * A hint to pre-select the tenant from an AD.
+     * Optional.
+     * 
+ * + * string domain_hint = 2 [json_name = "domainHint"]; + * @return The bytes for domainHint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDomainHintBytes() { + java.lang.Object ref = domainHint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domainHint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGIN_HINT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object loginHint_ = ""; + /** + *
+     * Optional.
+     * 
+ * + * string login_hint = 3 [json_name = "loginHint"]; + * @return The loginHint. + */ + @java.lang.Override + public java.lang.String getLoginHint() { + java.lang.Object ref = loginHint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loginHint_ = s; + return s; + } + } + /** + *
+     * Optional.
+     * 
+ * + * string login_hint = 3 [json_name = "loginHint"]; + * @return The bytes for loginHint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLoginHintBytes() { + java.lang.Object ref = loginHint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loginHint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, prompt_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domainHint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, domainHint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(loginHint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, loginHint_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, prompt_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domainHint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, domainHint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(loginHint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, loginHint_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints other = (io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints) obj; + + if (!getPrompt() + .equals(other.getPrompt())) return false; + if (!getDomainHint() + .equals(other.getDomainHint())) return false; + if (!getLoginHint() + .equals(other.getLoginHint())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + hash = (37 * hash) + DOMAIN_HINT_FIELD_NUMBER; + hash = (53 * hash) + getDomainHint().hashCode(); + hash = (37 * hash) + LOGIN_HINT_FIELD_NUMBER; + hash = (53 * hash) + getLoginHint().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Provider specific parameters to control the behavior of the consent screen.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.ConsentScreenHints} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ConsentScreenHints) + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHintsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ConsentScreenHints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ConsentScreenHints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.class, io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prompt_ = ""; + domainHint_ = ""; + loginHint_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ConsentScreenHints_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints build() { + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints result = new io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prompt_ = prompt_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.domainHint_ = domainHint_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.loginHint_ = loginHint_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints.getDefaultInstance()) return this; + if (!other.getPrompt().isEmpty()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDomainHint().isEmpty()) { + domainHint_ = other.domainHint_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getLoginHint().isEmpty()) { + loginHint_ = other.loginHint_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + prompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + domainHint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + loginHint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object prompt_ = ""; + /** + *
+       * Control options for the consent screen.
+       * Optional.
+       * 
+ * + * string prompt = 1 [json_name = "prompt"]; + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Control options for the consent screen.
+       * Optional.
+       * 
+ * + * string prompt = 1 [json_name = "prompt"]; + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString + getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Control options for the consent screen.
+       * Optional.
+       * 
+ * + * string prompt = 1 [json_name = "prompt"]; + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Control options for the consent screen.
+       * Optional.
+       * 
+ * + * string prompt = 1 [json_name = "prompt"]; + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Control options for the consent screen.
+       * Optional.
+       * 
+ * + * string prompt = 1 [json_name = "prompt"]; + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object domainHint_ = ""; + /** + *
+       * A hint to pre-select the tenant from an AD.
+       * Optional.
+       * 
+ * + * string domain_hint = 2 [json_name = "domainHint"]; + * @return The domainHint. + */ + public java.lang.String getDomainHint() { + java.lang.Object ref = domainHint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domainHint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A hint to pre-select the tenant from an AD.
+       * Optional.
+       * 
+ * + * string domain_hint = 2 [json_name = "domainHint"]; + * @return The bytes for domainHint. + */ + public com.google.protobuf.ByteString + getDomainHintBytes() { + java.lang.Object ref = domainHint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domainHint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A hint to pre-select the tenant from an AD.
+       * Optional.
+       * 
+ * + * string domain_hint = 2 [json_name = "domainHint"]; + * @param value The domainHint to set. + * @return This builder for chaining. + */ + public Builder setDomainHint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + domainHint_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * A hint to pre-select the tenant from an AD.
+       * Optional.
+       * 
+ * + * string domain_hint = 2 [json_name = "domainHint"]; + * @return This builder for chaining. + */ + public Builder clearDomainHint() { + domainHint_ = getDefaultInstance().getDomainHint(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * A hint to pre-select the tenant from an AD.
+       * Optional.
+       * 
+ * + * string domain_hint = 2 [json_name = "domainHint"]; + * @param value The bytes for domainHint to set. + * @return This builder for chaining. + */ + public Builder setDomainHintBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + domainHint_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object loginHint_ = ""; + /** + *
+       * Optional.
+       * 
+ * + * string login_hint = 3 [json_name = "loginHint"]; + * @return The loginHint. + */ + public java.lang.String getLoginHint() { + java.lang.Object ref = loginHint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loginHint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string login_hint = 3 [json_name = "loginHint"]; + * @return The bytes for loginHint. + */ + public com.google.protobuf.ByteString + getLoginHintBytes() { + java.lang.Object ref = loginHint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loginHint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string login_hint = 3 [json_name = "loginHint"]; + * @param value The loginHint to set. + * @return This builder for chaining. + */ + public Builder setLoginHint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + loginHint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string login_hint = 3 [json_name = "loginHint"]; + * @return This builder for chaining. + */ + public Builder clearLoginHint() { + loginHint_ = getDefaultInstance().getLoginHint(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string login_hint = 3 [json_name = "loginHint"]; + * @param value The bytes for loginHint to set. + * @return This builder for chaining. + */ + public Builder setLoginHintBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + loginHint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ConsentScreenHints) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ConsentScreenHints) + private static final io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConsentScreenHints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ConsentScreenHints getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClaimMappingOverrideOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ClaimMappingOverride) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Optional.
+     * 
+ * + * string claim_email_key = 1 [json_name = "claimEmailKey"]; + * @return The claimEmailKey. + */ + java.lang.String getClaimEmailKey(); + /** + *
+     * Optional.
+     * 
+ * + * string claim_email_key = 1 [json_name = "claimEmailKey"]; + * @return The bytes for claimEmailKey. + */ + com.google.protobuf.ByteString + getClaimEmailKeyBytes(); + + /** + *
+     * Optional.
+     * 
+ * + * string claim_groups_key = 2 [json_name = "claimGroupsKey"]; + * @return The claimGroupsKey. + */ + java.lang.String getClaimGroupsKey(); + /** + *
+     * Optional.
+     * 
+ * + * string claim_groups_key = 2 [json_name = "claimGroupsKey"]; + * @return The bytes for claimGroupsKey. + */ + com.google.protobuf.ByteString + getClaimGroupsKeyBytes(); + + /** + *
+     * Optional.
+     * 
+ * + * string claim_username_key = 3 [json_name = "claimUsernameKey"]; + * @return The claimUsernameKey. + */ + java.lang.String getClaimUsernameKey(); + /** + *
+     * Optional.
+     * 
+ * + * string claim_username_key = 3 [json_name = "claimUsernameKey"]; + * @return The bytes for claimUsernameKey. + */ + com.google.protobuf.ByteString + getClaimUsernameKeyBytes(); + } + /** + *
+   * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.ClaimMappingOverride} + */ + public static final class ClaimMappingOverride extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ClaimMappingOverride) + ClaimMappingOverrideOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ClaimMappingOverride.class.getName()); + } + // Use ClaimMappingOverride.newBuilder() to construct. + private ClaimMappingOverride(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ClaimMappingOverride() { + claimEmailKey_ = ""; + claimGroupsKey_ = ""; + claimUsernameKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ClaimMappingOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ClaimMappingOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.class, io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.Builder.class); + } + + public static final int CLAIM_EMAIL_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object claimEmailKey_ = ""; + /** + *
+     * Optional.
+     * 
+ * + * string claim_email_key = 1 [json_name = "claimEmailKey"]; + * @return The claimEmailKey. + */ + @java.lang.Override + public java.lang.String getClaimEmailKey() { + java.lang.Object ref = claimEmailKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + claimEmailKey_ = s; + return s; + } + } + /** + *
+     * Optional.
+     * 
+ * + * string claim_email_key = 1 [json_name = "claimEmailKey"]; + * @return The bytes for claimEmailKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClaimEmailKeyBytes() { + java.lang.Object ref = claimEmailKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + claimEmailKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLAIM_GROUPS_KEY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object claimGroupsKey_ = ""; + /** + *
+     * Optional.
+     * 
+ * + * string claim_groups_key = 2 [json_name = "claimGroupsKey"]; + * @return The claimGroupsKey. + */ + @java.lang.Override + public java.lang.String getClaimGroupsKey() { + java.lang.Object ref = claimGroupsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + claimGroupsKey_ = s; + return s; + } + } + /** + *
+     * Optional.
+     * 
+ * + * string claim_groups_key = 2 [json_name = "claimGroupsKey"]; + * @return The bytes for claimGroupsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClaimGroupsKeyBytes() { + java.lang.Object ref = claimGroupsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + claimGroupsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLAIM_USERNAME_KEY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object claimUsernameKey_ = ""; + /** + *
+     * Optional.
+     * 
+ * + * string claim_username_key = 3 [json_name = "claimUsernameKey"]; + * @return The claimUsernameKey. + */ + @java.lang.Override + public java.lang.String getClaimUsernameKey() { + java.lang.Object ref = claimUsernameKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + claimUsernameKey_ = s; + return s; + } + } + /** + *
+     * Optional.
+     * 
+ * + * string claim_username_key = 3 [json_name = "claimUsernameKey"]; + * @return The bytes for claimUsernameKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClaimUsernameKeyBytes() { + java.lang.Object ref = claimUsernameKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + claimUsernameKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(claimEmailKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, claimEmailKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(claimGroupsKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, claimGroupsKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(claimUsernameKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, claimUsernameKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(claimEmailKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, claimEmailKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(claimGroupsKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, claimGroupsKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(claimUsernameKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, claimUsernameKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride other = (io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride) obj; + + if (!getClaimEmailKey() + .equals(other.getClaimEmailKey())) return false; + if (!getClaimGroupsKey() + .equals(other.getClaimGroupsKey())) return false; + if (!getClaimUsernameKey() + .equals(other.getClaimUsernameKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLAIM_EMAIL_KEY_FIELD_NUMBER; + hash = (53 * hash) + getClaimEmailKey().hashCode(); + hash = (37 * hash) + CLAIM_GROUPS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getClaimGroupsKey().hashCode(); + hash = (37 * hash) + CLAIM_USERNAME_KEY_FIELD_NUMBER; + hash = (53 * hash) + getClaimUsernameKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Optional overrides for key mapping to be applied when extracting claims from id_tokens.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.ClaimMappingOverride} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ClaimMappingOverride) + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ClaimMappingOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ClaimMappingOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.class, io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + claimEmailKey_ = ""; + claimGroupsKey_ = ""; + claimUsernameKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ClaimMappingOverride_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride build() { + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride result = new io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.claimEmailKey_ = claimEmailKey_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.claimGroupsKey_ = claimGroupsKey_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.claimUsernameKey_ = claimUsernameKey_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride.getDefaultInstance()) return this; + if (!other.getClaimEmailKey().isEmpty()) { + claimEmailKey_ = other.claimEmailKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClaimGroupsKey().isEmpty()) { + claimGroupsKey_ = other.claimGroupsKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClaimUsernameKey().isEmpty()) { + claimUsernameKey_ = other.claimUsernameKey_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + claimEmailKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + claimGroupsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + claimUsernameKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object claimEmailKey_ = ""; + /** + *
+       * Optional.
+       * 
+ * + * string claim_email_key = 1 [json_name = "claimEmailKey"]; + * @return The claimEmailKey. + */ + public java.lang.String getClaimEmailKey() { + java.lang.Object ref = claimEmailKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + claimEmailKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_email_key = 1 [json_name = "claimEmailKey"]; + * @return The bytes for claimEmailKey. + */ + public com.google.protobuf.ByteString + getClaimEmailKeyBytes() { + java.lang.Object ref = claimEmailKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + claimEmailKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_email_key = 1 [json_name = "claimEmailKey"]; + * @param value The claimEmailKey to set. + * @return This builder for chaining. + */ + public Builder setClaimEmailKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + claimEmailKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_email_key = 1 [json_name = "claimEmailKey"]; + * @return This builder for chaining. + */ + public Builder clearClaimEmailKey() { + claimEmailKey_ = getDefaultInstance().getClaimEmailKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_email_key = 1 [json_name = "claimEmailKey"]; + * @param value The bytes for claimEmailKey to set. + * @return This builder for chaining. + */ + public Builder setClaimEmailKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + claimEmailKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object claimGroupsKey_ = ""; + /** + *
+       * Optional.
+       * 
+ * + * string claim_groups_key = 2 [json_name = "claimGroupsKey"]; + * @return The claimGroupsKey. + */ + public java.lang.String getClaimGroupsKey() { + java.lang.Object ref = claimGroupsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + claimGroupsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_groups_key = 2 [json_name = "claimGroupsKey"]; + * @return The bytes for claimGroupsKey. + */ + public com.google.protobuf.ByteString + getClaimGroupsKeyBytes() { + java.lang.Object ref = claimGroupsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + claimGroupsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_groups_key = 2 [json_name = "claimGroupsKey"]; + * @param value The claimGroupsKey to set. + * @return This builder for chaining. + */ + public Builder setClaimGroupsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + claimGroupsKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_groups_key = 2 [json_name = "claimGroupsKey"]; + * @return This builder for chaining. + */ + public Builder clearClaimGroupsKey() { + claimGroupsKey_ = getDefaultInstance().getClaimGroupsKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_groups_key = 2 [json_name = "claimGroupsKey"]; + * @param value The bytes for claimGroupsKey to set. + * @return This builder for chaining. + */ + public Builder setClaimGroupsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + claimGroupsKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object claimUsernameKey_ = ""; + /** + *
+       * Optional.
+       * 
+ * + * string claim_username_key = 3 [json_name = "claimUsernameKey"]; + * @return The claimUsernameKey. + */ + public java.lang.String getClaimUsernameKey() { + java.lang.Object ref = claimUsernameKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + claimUsernameKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_username_key = 3 [json_name = "claimUsernameKey"]; + * @return The bytes for claimUsernameKey. + */ + public com.google.protobuf.ByteString + getClaimUsernameKeyBytes() { + java.lang.Object ref = claimUsernameKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + claimUsernameKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_username_key = 3 [json_name = "claimUsernameKey"]; + * @param value The claimUsernameKey to set. + * @return This builder for chaining. + */ + public Builder setClaimUsernameKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + claimUsernameKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_username_key = 3 [json_name = "claimUsernameKey"]; + * @return This builder for chaining. + */ + public Builder clearClaimUsernameKey() { + claimUsernameKey_ = getDefaultInstance().getClaimUsernameKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string claim_username_key = 3 [json_name = "claimUsernameKey"]; + * @param value The bytes for claimUsernameKey to set. + * @return This builder for chaining. + */ + public Builder setClaimUsernameKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + claimUsernameKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ClaimMappingOverride) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ClaimMappingOverride) + private static final io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClaimMappingOverride parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ClaimMappingOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OAuth2ConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.OAuth2Config) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Required.
+     * 
+ * + * string client_id = 1 [json_name = "clientId"]; + * @return The clientId. + */ + java.lang.String getClientId(); + /** + *
+     * Required.
+     * 
+ * + * string client_id = 1 [json_name = "clientId"]; + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString + getClientIdBytes(); + + /** + *
+     * Required for creation/updates.
+     * Empty on read.
+     * 
+ * + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + /** + *
+     * Required for creation/updates.
+     * Empty on read.
+     * 
+ * + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString + getClientSecretBytes(); + + /** + *
+     * Required.
+     * 
+ * + * string authorization_endpoint = 3 [json_name = "authorizationEndpoint"]; + * @return The authorizationEndpoint. + */ + java.lang.String getAuthorizationEndpoint(); + /** + *
+     * Required.
+     * 
+ * + * string authorization_endpoint = 3 [json_name = "authorizationEndpoint"]; + * @return The bytes for authorizationEndpoint. + */ + com.google.protobuf.ByteString + getAuthorizationEndpointBytes(); + + /** + *
+     * Required.
+     * 
+ * + * string token_endpoint = 4 [json_name = "tokenEndpoint"]; + * @return The tokenEndpoint. + */ + java.lang.String getTokenEndpoint(); + /** + *
+     * Required.
+     * 
+ * + * string token_endpoint = 4 [json_name = "tokenEndpoint"]; + * @return The bytes for tokenEndpoint. + */ + com.google.protobuf.ByteString + getTokenEndpointBytes(); + + /** + *
+     * Required.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + java.util.List + getScopesList(); + /** + *
+     * Required.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return The count of scopes. + */ + int getScopesCount(); + /** + *
+     * Required.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + *
+     * Required.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString + getScopesBytes(int index); + + /** + *
+     * Source for additional claims for the token.
+     * Additional keys may be used to control the extraction of a profile.
+     * Required.
+     * 
+ * + * string userinfo_endpoint = 6 [json_name = "userinfoEndpoint"]; + * @return The userinfoEndpoint. + */ + java.lang.String getUserinfoEndpoint(); + /** + *
+     * Source for additional claims for the token.
+     * Additional keys may be used to control the extraction of a profile.
+     * Required.
+     * 
+ * + * string userinfo_endpoint = 6 [json_name = "userinfoEndpoint"]; + * @return The bytes for userinfoEndpoint. + */ + com.google.protobuf.ByteString + getUserinfoEndpointBytes(); + + /** + *
+     * Keys of the userinfo result to extract a profile from.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + * @return Whether the userinfoKeys field is set. + */ + boolean hasUserinfoKeys(); + /** + *
+     * Keys of the userinfo result to extract a profile from.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + * @return The userinfoKeys. + */ + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys getUserinfoKeys(); + /** + *
+     * Keys of the userinfo result to extract a profile from.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeysOrBuilder getUserinfoKeysOrBuilder(); + } + /** + *
+   * The OAuth2 specific part of the client configuration.
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.OAuth2Config} + */ + public static final class OAuth2Config extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.OAuth2Config) + OAuth2ConfigOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OAuth2Config.class.getName()); + } + // Use OAuth2Config.newBuilder() to construct. + private OAuth2Config(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private OAuth2Config() { + clientId_ = ""; + clientSecret_ = ""; + authorizationEndpoint_ = ""; + tokenEndpoint_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + userinfoEndpoint_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OAuth2Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OAuth2Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.class, io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.Builder.class); + } + + private int bitField0_; + public static final int CLIENT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + /** + *
+     * Required.
+     * 
+ * + * string client_id = 1 [json_name = "clientId"]; + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + *
+     * Required.
+     * 
+ * + * string client_id = 1 [json_name = "clientId"]; + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + /** + *
+     * Required for creation/updates.
+     * Empty on read.
+     * 
+ * + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } + } + /** + *
+     * Required for creation/updates.
+     * Empty on read.
+     * 
+ * + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHORIZATION_ENDPOINT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object authorizationEndpoint_ = ""; + /** + *
+     * Required.
+     * 
+ * + * string authorization_endpoint = 3 [json_name = "authorizationEndpoint"]; + * @return The authorizationEndpoint. + */ + @java.lang.Override + public java.lang.String getAuthorizationEndpoint() { + java.lang.Object ref = authorizationEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationEndpoint_ = s; + return s; + } + } + /** + *
+     * Required.
+     * 
+ * + * string authorization_endpoint = 3 [json_name = "authorizationEndpoint"]; + * @return The bytes for authorizationEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthorizationEndpointBytes() { + java.lang.Object ref = authorizationEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorizationEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_ENDPOINT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object tokenEndpoint_ = ""; + /** + *
+     * Required.
+     * 
+ * + * string token_endpoint = 4 [json_name = "tokenEndpoint"]; + * @return The tokenEndpoint. + */ + @java.lang.Override + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } + } + /** + *
+     * Required.
+     * 
+ * + * string token_endpoint = 4 [json_name = "tokenEndpoint"]; + * @return The bytes for tokenEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * Required.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + *
+     * Required.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + *
+     * Required.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + *
+     * Required.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int USERINFO_ENDPOINT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object userinfoEndpoint_ = ""; + /** + *
+     * Source for additional claims for the token.
+     * Additional keys may be used to control the extraction of a profile.
+     * Required.
+     * 
+ * + * string userinfo_endpoint = 6 [json_name = "userinfoEndpoint"]; + * @return The userinfoEndpoint. + */ + @java.lang.Override + public java.lang.String getUserinfoEndpoint() { + java.lang.Object ref = userinfoEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userinfoEndpoint_ = s; + return s; + } + } + /** + *
+     * Source for additional claims for the token.
+     * Additional keys may be used to control the extraction of a profile.
+     * Required.
+     * 
+ * + * string userinfo_endpoint = 6 [json_name = "userinfoEndpoint"]; + * @return The bytes for userinfoEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserinfoEndpointBytes() { + java.lang.Object ref = userinfoEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userinfoEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USERINFO_KEYS_FIELD_NUMBER = 7; + private io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys userinfoKeys_; + /** + *
+     * Keys of the userinfo result to extract a profile from.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + * @return Whether the userinfoKeys field is set. + */ + @java.lang.Override + public boolean hasUserinfoKeys() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Keys of the userinfo result to extract a profile from.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + * @return The userinfoKeys. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys getUserinfoKeys() { + return userinfoKeys_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.getDefaultInstance() : userinfoKeys_; + } + /** + *
+     * Keys of the userinfo result to extract a profile from.
+     * Optional.
+     * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeysOrBuilder getUserinfoKeysOrBuilder() { + return userinfoKeys_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.getDefaultInstance() : userinfoKeys_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecret_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authorizationEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, tokenEndpoint_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, scopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userinfoEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, userinfoEndpoint_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getUserinfoKeys()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecret_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authorizationEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, tokenEndpoint_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userinfoEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, userinfoEndpoint_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUserinfoKeys()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config other = (io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config) obj; + + if (!getClientId() + .equals(other.getClientId())) return false; + if (!getClientSecret() + .equals(other.getClientSecret())) return false; + if (!getAuthorizationEndpoint() + .equals(other.getAuthorizationEndpoint())) return false; + if (!getTokenEndpoint() + .equals(other.getTokenEndpoint())) return false; + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (!getUserinfoEndpoint() + .equals(other.getUserinfoEndpoint())) return false; + if (hasUserinfoKeys() != other.hasUserinfoKeys()) return false; + if (hasUserinfoKeys()) { + if (!getUserinfoKeys() + .equals(other.getUserinfoKeys())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + hash = (37 * hash) + AUTHORIZATION_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationEndpoint().hashCode(); + hash = (37 * hash) + TOKEN_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getTokenEndpoint().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + USERINFO_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getUserinfoEndpoint().hashCode(); + if (hasUserinfoKeys()) { + hash = (37 * hash) + USERINFO_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getUserinfoKeys().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The OAuth2 specific part of the client configuration.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.OAuth2Config} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.OAuth2Config) + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2ConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OAuth2Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OAuth2Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.class, io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUserinfoKeysFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientId_ = ""; + clientSecret_ = ""; + authorizationEndpoint_ = ""; + tokenEndpoint_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + userinfoEndpoint_ = ""; + userinfoKeys_ = null; + if (userinfoKeysBuilder_ != null) { + userinfoKeysBuilder_.dispose(); + userinfoKeysBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OAuth2Config_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config build() { + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config result = new io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientSecret_ = clientSecret_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorizationEndpoint_ = authorizationEndpoint_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tokenEndpoint_ = tokenEndpoint_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.userinfoEndpoint_ = userinfoEndpoint_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.userinfoKeys_ = userinfoKeysBuilder_ == null + ? userinfoKeys_ + : userinfoKeysBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config.getDefaultInstance()) return this; + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientSecret().isEmpty()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAuthorizationEndpoint().isEmpty()) { + authorizationEndpoint_ = other.authorizationEndpoint_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTokenEndpoint().isEmpty()) { + tokenEndpoint_ = other.tokenEndpoint_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000010; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (!other.getUserinfoEndpoint().isEmpty()) { + userinfoEndpoint_ = other.userinfoEndpoint_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasUserinfoKeys()) { + mergeUserinfoKeys(other.getUserinfoKeys()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + authorizationEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + tokenEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 42 + case 50: { + userinfoEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getUserinfoKeysFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object clientId_ = ""; + /** + *
+       * Required.
+       * 
+ * + * string client_id = 1 [json_name = "clientId"]; + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required.
+       * 
+ * + * string client_id = 1 [json_name = "clientId"]; + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required.
+       * 
+ * + * string client_id = 1 [json_name = "clientId"]; + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + clientId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * string client_id = 1 [json_name = "clientId"]; + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * string client_id = 1 [json_name = "clientId"]; + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clientSecret_ = ""; + /** + *
+       * Required for creation/updates.
+       * Empty on read.
+       * 
+ * + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required for creation/updates.
+       * Empty on read.
+       * 
+ * + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString + getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required for creation/updates.
+       * Empty on read.
+       * 
+ * + * string client_secret = 2 [json_name = "clientSecret"]; + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + clientSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Required for creation/updates.
+       * Empty on read.
+       * 
+ * + * string client_secret = 2 [json_name = "clientSecret"]; + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Required for creation/updates.
+       * Empty on read.
+       * 
+ * + * string client_secret = 2 [json_name = "clientSecret"]; + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clientSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object authorizationEndpoint_ = ""; + /** + *
+       * Required.
+       * 
+ * + * string authorization_endpoint = 3 [json_name = "authorizationEndpoint"]; + * @return The authorizationEndpoint. + */ + public java.lang.String getAuthorizationEndpoint() { + java.lang.Object ref = authorizationEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required.
+       * 
+ * + * string authorization_endpoint = 3 [json_name = "authorizationEndpoint"]; + * @return The bytes for authorizationEndpoint. + */ + public com.google.protobuf.ByteString + getAuthorizationEndpointBytes() { + java.lang.Object ref = authorizationEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorizationEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required.
+       * 
+ * + * string authorization_endpoint = 3 [json_name = "authorizationEndpoint"]; + * @param value The authorizationEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationEndpoint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authorizationEndpoint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * string authorization_endpoint = 3 [json_name = "authorizationEndpoint"]; + * @return This builder for chaining. + */ + public Builder clearAuthorizationEndpoint() { + authorizationEndpoint_ = getDefaultInstance().getAuthorizationEndpoint(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * string authorization_endpoint = 3 [json_name = "authorizationEndpoint"]; + * @param value The bytes for authorizationEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authorizationEndpoint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object tokenEndpoint_ = ""; + /** + *
+       * Required.
+       * 
+ * + * string token_endpoint = 4 [json_name = "tokenEndpoint"]; + * @return The tokenEndpoint. + */ + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required.
+       * 
+ * + * string token_endpoint = 4 [json_name = "tokenEndpoint"]; + * @return The bytes for tokenEndpoint. + */ + public com.google.protobuf.ByteString + getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required.
+       * 
+ * + * string token_endpoint = 4 [json_name = "tokenEndpoint"]; + * @param value The tokenEndpoint to set. + * @return This builder for chaining. + */ + public Builder setTokenEndpoint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + tokenEndpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * string token_endpoint = 4 [json_name = "tokenEndpoint"]; + * @return This builder for chaining. + */ + public Builder clearTokenEndpoint() { + tokenEndpoint_ = getDefaultInstance().getTokenEndpoint(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * string token_endpoint = 4 [json_name = "tokenEndpoint"]; + * @param value The bytes for tokenEndpoint to set. + * @return This builder for chaining. + */ + public Builder setTokenEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + tokenEndpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000010; + } + /** + *
+       * Required.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + *
+       * Required.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + *
+       * Required.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + *
+       * Required.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + /** + *
+       * Required.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes( + java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scopes_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + *
+       * Required.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object userinfoEndpoint_ = ""; + /** + *
+       * Source for additional claims for the token.
+       * Additional keys may be used to control the extraction of a profile.
+       * Required.
+       * 
+ * + * string userinfo_endpoint = 6 [json_name = "userinfoEndpoint"]; + * @return The userinfoEndpoint. + */ + public java.lang.String getUserinfoEndpoint() { + java.lang.Object ref = userinfoEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userinfoEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Source for additional claims for the token.
+       * Additional keys may be used to control the extraction of a profile.
+       * Required.
+       * 
+ * + * string userinfo_endpoint = 6 [json_name = "userinfoEndpoint"]; + * @return The bytes for userinfoEndpoint. + */ + public com.google.protobuf.ByteString + getUserinfoEndpointBytes() { + java.lang.Object ref = userinfoEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userinfoEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Source for additional claims for the token.
+       * Additional keys may be used to control the extraction of a profile.
+       * Required.
+       * 
+ * + * string userinfo_endpoint = 6 [json_name = "userinfoEndpoint"]; + * @param value The userinfoEndpoint to set. + * @return This builder for chaining. + */ + public Builder setUserinfoEndpoint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userinfoEndpoint_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * Source for additional claims for the token.
+       * Additional keys may be used to control the extraction of a profile.
+       * Required.
+       * 
+ * + * string userinfo_endpoint = 6 [json_name = "userinfoEndpoint"]; + * @return This builder for chaining. + */ + public Builder clearUserinfoEndpoint() { + userinfoEndpoint_ = getDefaultInstance().getUserinfoEndpoint(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+       * Source for additional claims for the token.
+       * Additional keys may be used to control the extraction of a profile.
+       * Required.
+       * 
+ * + * string userinfo_endpoint = 6 [json_name = "userinfoEndpoint"]; + * @param value The bytes for userinfoEndpoint to set. + * @return This builder for chaining. + */ + public Builder setUserinfoEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userinfoEndpoint_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys userinfoKeys_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys, io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.Builder, io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeysOrBuilder> userinfoKeysBuilder_; + /** + *
+       * Keys of the userinfo result to extract a profile from.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + * @return Whether the userinfoKeys field is set. + */ + public boolean hasUserinfoKeys() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+       * Keys of the userinfo result to extract a profile from.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + * @return The userinfoKeys. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys getUserinfoKeys() { + if (userinfoKeysBuilder_ == null) { + return userinfoKeys_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.getDefaultInstance() : userinfoKeys_; + } else { + return userinfoKeysBuilder_.getMessage(); + } + } + /** + *
+       * Keys of the userinfo result to extract a profile from.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + */ + public Builder setUserinfoKeys(io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys value) { + if (userinfoKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userinfoKeys_ = value; + } else { + userinfoKeysBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * Keys of the userinfo result to extract a profile from.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + */ + public Builder setUserinfoKeys( + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.Builder builderForValue) { + if (userinfoKeysBuilder_ == null) { + userinfoKeys_ = builderForValue.build(); + } else { + userinfoKeysBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * Keys of the userinfo result to extract a profile from.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + */ + public Builder mergeUserinfoKeys(io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys value) { + if (userinfoKeysBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + userinfoKeys_ != null && + userinfoKeys_ != io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.getDefaultInstance()) { + getUserinfoKeysBuilder().mergeFrom(value); + } else { + userinfoKeys_ = value; + } + } else { + userinfoKeysBuilder_.mergeFrom(value); + } + if (userinfoKeys_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+       * Keys of the userinfo result to extract a profile from.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + */ + public Builder clearUserinfoKeys() { + bitField0_ = (bitField0_ & ~0x00000040); + userinfoKeys_ = null; + if (userinfoKeysBuilder_ != null) { + userinfoKeysBuilder_.dispose(); + userinfoKeysBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Keys of the userinfo result to extract a profile from.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.Builder getUserinfoKeysBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getUserinfoKeysFieldBuilder().getBuilder(); + } + /** + *
+       * Keys of the userinfo result to extract a profile from.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeysOrBuilder getUserinfoKeysOrBuilder() { + if (userinfoKeysBuilder_ != null) { + return userinfoKeysBuilder_.getMessageOrBuilder(); + } else { + return userinfoKeys_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.getDefaultInstance() : userinfoKeys_; + } + } + /** + *
+       * Keys of the userinfo result to extract a profile from.
+       * Optional.
+       * 
+ * + * .gitpod.experimental.v1.UserInfoKeys userinfo_keys = 7 [json_name = "userinfoKeys"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys, io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.Builder, io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeysOrBuilder> + getUserinfoKeysFieldBuilder() { + if (userinfoKeysBuilder_ == null) { + userinfoKeysBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys, io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.Builder, io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeysOrBuilder>( + getUserinfoKeys(), + getParentForChildren(), + isClean()); + userinfoKeys_ = null; + } + return userinfoKeysBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.OAuth2Config) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.OAuth2Config) + private static final io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuth2Config parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OAuth2Config getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserInfoKeysOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UserInfoKeys) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Optional.
+     * 
+ * + * string userinfo_id_key = 1 [json_name = "userinfoIdKey"]; + * @return The userinfoIdKey. + */ + java.lang.String getUserinfoIdKey(); + /** + *
+     * Optional.
+     * 
+ * + * string userinfo_id_key = 1 [json_name = "userinfoIdKey"]; + * @return The bytes for userinfoIdKey. + */ + com.google.protobuf.ByteString + getUserinfoIdKeyBytes(); + + /** + *
+     * Optional.
+     * 
+ * + * string userinfo_name_key = 2 [json_name = "userinfoNameKey"]; + * @return The userinfoNameKey. + */ + java.lang.String getUserinfoNameKey(); + /** + *
+     * Optional.
+     * 
+ * + * string userinfo_name_key = 2 [json_name = "userinfoNameKey"]; + * @return The bytes for userinfoNameKey. + */ + com.google.protobuf.ByteString + getUserinfoNameKeyBytes(); + } + /** + *
+   * Description of keys of a userinfo result.
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.UserInfoKeys} + */ + public static final class UserInfoKeys extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UserInfoKeys) + UserInfoKeysOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UserInfoKeys.class.getName()); + } + // Use UserInfoKeys.newBuilder() to construct. + private UserInfoKeys(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UserInfoKeys() { + userinfoIdKey_ = ""; + userinfoNameKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UserInfoKeys_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UserInfoKeys_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.class, io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.Builder.class); + } + + public static final int USERINFO_ID_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userinfoIdKey_ = ""; + /** + *
+     * Optional.
+     * 
+ * + * string userinfo_id_key = 1 [json_name = "userinfoIdKey"]; + * @return The userinfoIdKey. + */ + @java.lang.Override + public java.lang.String getUserinfoIdKey() { + java.lang.Object ref = userinfoIdKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userinfoIdKey_ = s; + return s; + } + } + /** + *
+     * Optional.
+     * 
+ * + * string userinfo_id_key = 1 [json_name = "userinfoIdKey"]; + * @return The bytes for userinfoIdKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserinfoIdKeyBytes() { + java.lang.Object ref = userinfoIdKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userinfoIdKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USERINFO_NAME_KEY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object userinfoNameKey_ = ""; + /** + *
+     * Optional.
+     * 
+ * + * string userinfo_name_key = 2 [json_name = "userinfoNameKey"]; + * @return The userinfoNameKey. + */ + @java.lang.Override + public java.lang.String getUserinfoNameKey() { + java.lang.Object ref = userinfoNameKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userinfoNameKey_ = s; + return s; + } + } + /** + *
+     * Optional.
+     * 
+ * + * string userinfo_name_key = 2 [json_name = "userinfoNameKey"]; + * @return The bytes for userinfoNameKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserinfoNameKeyBytes() { + java.lang.Object ref = userinfoNameKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userinfoNameKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userinfoIdKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userinfoIdKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userinfoNameKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, userinfoNameKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userinfoIdKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userinfoIdKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userinfoNameKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, userinfoNameKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys other = (io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys) obj; + + if (!getUserinfoIdKey() + .equals(other.getUserinfoIdKey())) return false; + if (!getUserinfoNameKey() + .equals(other.getUserinfoNameKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERINFO_ID_KEY_FIELD_NUMBER; + hash = (53 * hash) + getUserinfoIdKey().hashCode(); + hash = (37 * hash) + USERINFO_NAME_KEY_FIELD_NUMBER; + hash = (53 * hash) + getUserinfoNameKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Description of keys of a userinfo result.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.UserInfoKeys} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UserInfoKeys) + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeysOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UserInfoKeys_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UserInfoKeys_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.class, io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userinfoIdKey_ = ""; + userinfoNameKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UserInfoKeys_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys build() { + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys result = new io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userinfoIdKey_ = userinfoIdKey_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userinfoNameKey_ = userinfoNameKey_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys.getDefaultInstance()) return this; + if (!other.getUserinfoIdKey().isEmpty()) { + userinfoIdKey_ = other.userinfoIdKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUserinfoNameKey().isEmpty()) { + userinfoNameKey_ = other.userinfoNameKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userinfoIdKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userinfoNameKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userinfoIdKey_ = ""; + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_id_key = 1 [json_name = "userinfoIdKey"]; + * @return The userinfoIdKey. + */ + public java.lang.String getUserinfoIdKey() { + java.lang.Object ref = userinfoIdKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userinfoIdKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_id_key = 1 [json_name = "userinfoIdKey"]; + * @return The bytes for userinfoIdKey. + */ + public com.google.protobuf.ByteString + getUserinfoIdKeyBytes() { + java.lang.Object ref = userinfoIdKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userinfoIdKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_id_key = 1 [json_name = "userinfoIdKey"]; + * @param value The userinfoIdKey to set. + * @return This builder for chaining. + */ + public Builder setUserinfoIdKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userinfoIdKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_id_key = 1 [json_name = "userinfoIdKey"]; + * @return This builder for chaining. + */ + public Builder clearUserinfoIdKey() { + userinfoIdKey_ = getDefaultInstance().getUserinfoIdKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_id_key = 1 [json_name = "userinfoIdKey"]; + * @param value The bytes for userinfoIdKey to set. + * @return This builder for chaining. + */ + public Builder setUserinfoIdKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userinfoIdKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object userinfoNameKey_ = ""; + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_name_key = 2 [json_name = "userinfoNameKey"]; + * @return The userinfoNameKey. + */ + public java.lang.String getUserinfoNameKey() { + java.lang.Object ref = userinfoNameKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userinfoNameKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_name_key = 2 [json_name = "userinfoNameKey"]; + * @return The bytes for userinfoNameKey. + */ + public com.google.protobuf.ByteString + getUserinfoNameKeyBytes() { + java.lang.Object ref = userinfoNameKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userinfoNameKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_name_key = 2 [json_name = "userinfoNameKey"]; + * @param value The userinfoNameKey to set. + * @return This builder for chaining. + */ + public Builder setUserinfoNameKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userinfoNameKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_name_key = 2 [json_name = "userinfoNameKey"]; + * @return This builder for chaining. + */ + public Builder clearUserinfoNameKey() { + userinfoNameKey_ = getDefaultInstance().getUserinfoNameKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * string userinfo_name_key = 2 [json_name = "userinfoNameKey"]; + * @param value The bytes for userinfoNameKey to set. + * @return This builder for chaining. + */ + public Builder setUserinfoNameKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userinfoNameKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UserInfoKeys) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UserInfoKeys) + private static final io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfoKeys parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UserInfoKeys getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OIDCClientConfigStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.OIDCClientConfigStatus) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * The status of an OIDC client configuration.
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.OIDCClientConfigStatus} + */ + public static final class OIDCClientConfigStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.OIDCClientConfigStatus) + OIDCClientConfigStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OIDCClientConfigStatus.class.getName()); + } + // Use OIDCClientConfigStatus.newBuilder() to construct. + private OIDCClientConfigStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private OIDCClientConfigStatus() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.class, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus other = (io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The status of an OIDC client configuration.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.OIDCClientConfigStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.OIDCClientConfigStatus) + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.class, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus build() { + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus result = new io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.OIDCClientConfigStatus) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.OIDCClientConfigStatus) + private static final io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OIDCClientConfigStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateClientConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateClientConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig(); + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder(); + + /** + *
+     * Optional.
+     * 
+ * + * bool use_discovery = 2 [json_name = "useDiscovery"]; + * @return The useDiscovery. + */ + boolean getUseDiscovery(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateClientConfigRequest} + */ + public static final class CreateClientConfigRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateClientConfigRequest) + CreateClientConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateClientConfigRequest.class.getName()); + } + // Use CreateClientConfigRequest.newBuilder() to construct. + private CreateClientConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateClientConfigRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int CONFIG_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig config_; + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig() { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder() { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + + public static final int USE_DISCOVERY_FIELD_NUMBER = 2; + private boolean useDiscovery_ = false; + /** + *
+     * Optional.
+     * 
+ * + * bool use_discovery = 2 [json_name = "useDiscovery"]; + * @return The useDiscovery. + */ + @java.lang.Override + public boolean getUseDiscovery() { + return useDiscovery_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfig()); + } + if (useDiscovery_ != false) { + output.writeBool(2, useDiscovery_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); + } + if (useDiscovery_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, useDiscovery_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest other = (io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest) obj; + + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig() + .equals(other.getConfig())) return false; + } + if (getUseDiscovery() + != other.getUseDiscovery()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (37 * hash) + USE_DISCOVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseDiscovery()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateClientConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateClientConfigRequest) + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + useDiscovery_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest build() { + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest result = new io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useDiscovery_ = useDiscovery_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest.getDefaultInstance()) return this; + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.getUseDiscovery() != false) { + setUseDiscovery(other.getUseDiscovery()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + useDiscovery_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig config_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> configBuilder_; + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder setConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder setConfig( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder mergeConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + private boolean useDiscovery_ ; + /** + *
+       * Optional.
+       * 
+ * + * bool use_discovery = 2 [json_name = "useDiscovery"]; + * @return The useDiscovery. + */ + @java.lang.Override + public boolean getUseDiscovery() { + return useDiscovery_; + } + /** + *
+       * Optional.
+       * 
+ * + * bool use_discovery = 2 [json_name = "useDiscovery"]; + * @param value The useDiscovery to set. + * @return This builder for chaining. + */ + public Builder setUseDiscovery(boolean value) { + + useDiscovery_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Optional.
+       * 
+ * + * bool use_discovery = 2 [json_name = "useDiscovery"]; + * @return This builder for chaining. + */ + public Builder clearUseDiscovery() { + bitField0_ = (bitField0_ & ~0x00000002); + useDiscovery_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateClientConfigRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateClientConfigRequest) + private static final io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClientConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateClientConfigResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateClientConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig(); + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateClientConfigResponse} + */ + public static final class CreateClientConfigResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateClientConfigResponse) + CreateClientConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateClientConfigResponse.class.getName()); + } + // Use CreateClientConfigResponse.newBuilder() to construct. + private CreateClientConfigResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateClientConfigResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int CONFIG_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig config_; + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig() { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder() { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse other = (io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse) obj; + + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig() + .equals(other.getConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateClientConfigResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateClientConfigResponse) + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_CreateClientConfigResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse build() { + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse result = new io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse.getDefaultInstance()) return this; + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig config_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> configBuilder_; + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder setConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder setConfig( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder mergeConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateClientConfigResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateClientConfigResponse) + private static final io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClientConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.CreateClientConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetClientConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetClientConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetClientConfigRequest} + */ + public static final class GetClientConfigRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetClientConfigRequest) + GetClientConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetClientConfigRequest.class.getName()); + } + // Use GetClientConfigRequest.newBuilder() to construct. + private GetClientConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetClientConfigRequest() { + id_ = ""; + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest other = (io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetClientConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetClientConfigRequest) + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest build() { + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest result = new io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetClientConfigRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetClientConfigRequest) + private static final io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClientConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetClientConfigResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetClientConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig(); + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetClientConfigResponse} + */ + public static final class GetClientConfigResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetClientConfigResponse) + GetClientConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetClientConfigResponse.class.getName()); + } + // Use GetClientConfigResponse.newBuilder() to construct. + private GetClientConfigResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetClientConfigResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int CONFIG_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig config_; + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig() { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder() { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse other = (io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse) obj; + + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig() + .equals(other.getConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetClientConfigResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetClientConfigResponse) + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_GetClientConfigResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse build() { + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse result = new io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse.getDefaultInstance()) return this; + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig config_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> configBuilder_; + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder setConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder setConfig( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder mergeConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetClientConfigResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetClientConfigResponse) + private static final io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClientConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.GetClientConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListClientConfigsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListClientConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination(); + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListClientConfigsRequest} + */ + public static final class ListClientConfigsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListClientConfigsRequest) + ListClientConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListClientConfigsRequest.class.getName()); + } + // Use ListClientConfigsRequest.newBuilder() to construct. + private ListClientConfigsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListClientConfigsRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination pagination_; + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination() { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest other = (io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListClientConfigsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListClientConfigsRequest) + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest build() { + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest result = new io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder> paginationBuilder_; + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListClientConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListClientConfigsRequest) + private static final io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClientConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListClientConfigsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListClientConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + java.util.List + getClientConfigsList(); + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getClientConfigs(int index); + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + int getClientConfigsCount(); + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + java.util.List + getClientConfigsOrBuilderList(); + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getClientConfigsOrBuilder( + int index); + + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @return The totalResults. + */ + long getTotalResults(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListClientConfigsResponse} + */ + public static final class ListClientConfigsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListClientConfigsResponse) + ListClientConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListClientConfigsResponse.class.getName()); + } + // Use ListClientConfigsResponse.newBuilder() to construct. + private ListClientConfigsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListClientConfigsResponse() { + clientConfigs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse.Builder.class); + } + + public static final int CLIENT_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List clientConfigs_; + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + @java.lang.Override + public java.util.List getClientConfigsList() { + return clientConfigs_; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + @java.lang.Override + public java.util.List + getClientConfigsOrBuilderList() { + return clientConfigs_; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + @java.lang.Override + public int getClientConfigsCount() { + return clientConfigs_.size(); + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getClientConfigs(int index) { + return clientConfigs_.get(index); + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getClientConfigsOrBuilder( + int index) { + return clientConfigs_.get(index); + } + + public static final int TOTAL_RESULTS_FIELD_NUMBER = 2; + private long totalResults_ = 0L; + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @return The totalResults. + */ + @java.lang.Override + public long getTotalResults() { + return totalResults_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < clientConfigs_.size(); i++) { + output.writeMessage(1, clientConfigs_.get(i)); + } + if (totalResults_ != 0L) { + output.writeInt64(2, totalResults_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < clientConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, clientConfigs_.get(i)); + } + if (totalResults_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalResults_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse other = (io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse) obj; + + if (!getClientConfigsList() + .equals(other.getClientConfigsList())) return false; + if (getTotalResults() + != other.getTotalResults()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getClientConfigsCount() > 0) { + hash = (37 * hash) + CLIENT_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getClientConfigsList().hashCode(); + } + hash = (37 * hash) + TOTAL_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalResults()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListClientConfigsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListClientConfigsResponse) + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (clientConfigsBuilder_ == null) { + clientConfigs_ = java.util.Collections.emptyList(); + } else { + clientConfigs_ = null; + clientConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + totalResults_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_ListClientConfigsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse build() { + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse result = new io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse result) { + if (clientConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clientConfigs_ = java.util.Collections.unmodifiableList(clientConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clientConfigs_ = clientConfigs_; + } else { + result.clientConfigs_ = clientConfigsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalResults_ = totalResults_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse.getDefaultInstance()) return this; + if (clientConfigsBuilder_ == null) { + if (!other.clientConfigs_.isEmpty()) { + if (clientConfigs_.isEmpty()) { + clientConfigs_ = other.clientConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClientConfigsIsMutable(); + clientConfigs_.addAll(other.clientConfigs_); + } + onChanged(); + } + } else { + if (!other.clientConfigs_.isEmpty()) { + if (clientConfigsBuilder_.isEmpty()) { + clientConfigsBuilder_.dispose(); + clientConfigsBuilder_ = null; + clientConfigs_ = other.clientConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + clientConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getClientConfigsFieldBuilder() : null; + } else { + clientConfigsBuilder_.addAllMessages(other.clientConfigs_); + } + } + } + if (other.getTotalResults() != 0L) { + setTotalResults(other.getTotalResults()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.parser(), + extensionRegistry); + if (clientConfigsBuilder_ == null) { + ensureClientConfigsIsMutable(); + clientConfigs_.add(m); + } else { + clientConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + totalResults_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List clientConfigs_ = + java.util.Collections.emptyList(); + private void ensureClientConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + clientConfigs_ = new java.util.ArrayList(clientConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> clientConfigsBuilder_; + + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public java.util.List getClientConfigsList() { + if (clientConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clientConfigs_); + } else { + return clientConfigsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public int getClientConfigsCount() { + if (clientConfigsBuilder_ == null) { + return clientConfigs_.size(); + } else { + return clientConfigsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getClientConfigs(int index) { + if (clientConfigsBuilder_ == null) { + return clientConfigs_.get(index); + } else { + return clientConfigsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public Builder setClientConfigs( + int index, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (clientConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClientConfigsIsMutable(); + clientConfigs_.set(index, value); + onChanged(); + } else { + clientConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public Builder setClientConfigs( + int index, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder builderForValue) { + if (clientConfigsBuilder_ == null) { + ensureClientConfigsIsMutable(); + clientConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + clientConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public Builder addClientConfigs(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (clientConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClientConfigsIsMutable(); + clientConfigs_.add(value); + onChanged(); + } else { + clientConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public Builder addClientConfigs( + int index, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (clientConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClientConfigsIsMutable(); + clientConfigs_.add(index, value); + onChanged(); + } else { + clientConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public Builder addClientConfigs( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder builderForValue) { + if (clientConfigsBuilder_ == null) { + ensureClientConfigsIsMutable(); + clientConfigs_.add(builderForValue.build()); + onChanged(); + } else { + clientConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public Builder addClientConfigs( + int index, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder builderForValue) { + if (clientConfigsBuilder_ == null) { + ensureClientConfigsIsMutable(); + clientConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + clientConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public Builder addAllClientConfigs( + java.lang.Iterable values) { + if (clientConfigsBuilder_ == null) { + ensureClientConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clientConfigs_); + onChanged(); + } else { + clientConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public Builder clearClientConfigs() { + if (clientConfigsBuilder_ == null) { + clientConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + clientConfigsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public Builder removeClientConfigs(int index) { + if (clientConfigsBuilder_ == null) { + ensureClientConfigsIsMutable(); + clientConfigs_.remove(index); + onChanged(); + } else { + clientConfigsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder getClientConfigsBuilder( + int index) { + return getClientConfigsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getClientConfigsOrBuilder( + int index) { + if (clientConfigsBuilder_ == null) { + return clientConfigs_.get(index); } else { + return clientConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public java.util.List + getClientConfigsOrBuilderList() { + if (clientConfigsBuilder_ != null) { + return clientConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clientConfigs_); + } + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder addClientConfigsBuilder() { + return getClientConfigsFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder addClientConfigsBuilder( + int index) { + return getClientConfigsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.OIDCClientConfig client_configs = 1 [json_name = "clientConfigs"]; + */ + public java.util.List + getClientConfigsBuilderList() { + return getClientConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> + getClientConfigsFieldBuilder() { + if (clientConfigsBuilder_ == null) { + clientConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder>( + clientConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + clientConfigs_ = null; + } + return clientConfigsBuilder_; + } + + private long totalResults_ ; + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @return The totalResults. + */ + @java.lang.Override + public long getTotalResults() { + return totalResults_; + } + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @param value The totalResults to set. + * @return This builder for chaining. + */ + public Builder setTotalResults(long value) { + + totalResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @return This builder for chaining. + */ + public Builder clearTotalResults() { + bitField0_ = (bitField0_ & ~0x00000002); + totalResults_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListClientConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListClientConfigsResponse) + private static final io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClientConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.ListClientConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateClientConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdateClientConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig(); + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateClientConfigRequest} + */ + public static final class UpdateClientConfigRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdateClientConfigRequest) + UpdateClientConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateClientConfigRequest.class.getName()); + } + // Use UpdateClientConfigRequest.newBuilder() to construct. + private UpdateClientConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateClientConfigRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int CONFIG_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig config_; + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig() { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder() { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest other = (io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest) obj; + + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig() + .equals(other.getConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateClientConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdateClientConfigRequest) + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest build() { + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest result = new io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest.getDefaultInstance()) return this; + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig config_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> configBuilder_; + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + * @return The config. + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null ? io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder setConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder setConfig( + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder mergeConfig(io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + public io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null ? + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.getDefaultInstance() : config_; + } + } + /** + * .gitpod.experimental.v1.OIDCClientConfig config = 1 [json_name = "config"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfig.Builder, io.gitpod.publicapi.experimental.v1.Oidc.OIDCClientConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdateClientConfigRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdateClientConfigRequest) + private static final io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClientConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateClientConfigResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdateClientConfigResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateClientConfigResponse} + */ + public static final class UpdateClientConfigResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdateClientConfigResponse) + UpdateClientConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateClientConfigResponse.class.getName()); + } + // Use UpdateClientConfigResponse.newBuilder() to construct. + private UpdateClientConfigResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateClientConfigResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse other = (io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateClientConfigResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdateClientConfigResponse) + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse build() { + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse result = new io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdateClientConfigResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdateClientConfigResponse) + private static final io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClientConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.UpdateClientConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteClientConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteClientConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteClientConfigRequest} + */ + public static final class DeleteClientConfigRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteClientConfigRequest) + DeleteClientConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteClientConfigRequest.class.getName()); + } + // Use DeleteClientConfigRequest.newBuilder() to construct. + private DeleteClientConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteClientConfigRequest() { + id_ = ""; + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest other = (io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteClientConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteClientConfigRequest) + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest build() { + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest result = new io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteClientConfigRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteClientConfigRequest) + private static final io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClientConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteClientConfigResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteClientConfigResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteClientConfigResponse} + */ + public static final class DeleteClientConfigResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteClientConfigResponse) + DeleteClientConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteClientConfigResponse.class.getName()); + } + // Use DeleteClientConfigResponse.newBuilder() to construct. + private DeleteClientConfigResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteClientConfigResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse other = (io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteClientConfigResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteClientConfigResponse) + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse build() { + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse result = new io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteClientConfigResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteClientConfigResponse) + private static final io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClientConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.DeleteClientConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetClientConfigActivationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.SetClientConfigActivationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * bool activate = 3 [json_name = "activate"]; + * @return The activate. + */ + boolean getActivate(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.SetClientConfigActivationRequest} + */ + public static final class SetClientConfigActivationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.SetClientConfigActivationRequest) + SetClientConfigActivationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SetClientConfigActivationRequest.class.getName()); + } + // Use SetClientConfigActivationRequest.newBuilder() to construct. + private SetClientConfigActivationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetClientConfigActivationRequest() { + id_ = ""; + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIVATE_FIELD_NUMBER = 3; + private boolean activate_ = false; + /** + * bool activate = 3 [json_name = "activate"]; + * @return The activate. + */ + @java.lang.Override + public boolean getActivate() { + return activate_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (activate_ != false) { + output.writeBool(3, activate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (activate_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, activate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest other = (io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (getActivate() + != other.getActivate()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + ACTIVATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getActivate()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.SetClientConfigActivationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.SetClientConfigActivationRequest) + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest.class, io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + organizationId_ = ""; + activate_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest build() { + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest result = new io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.activate_ = activate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getActivate() != false) { + setActivate(other.getActivate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + activate_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean activate_ ; + /** + * bool activate = 3 [json_name = "activate"]; + * @return The activate. + */ + @java.lang.Override + public boolean getActivate() { + return activate_; + } + /** + * bool activate = 3 [json_name = "activate"]; + * @param value The activate to set. + * @return This builder for chaining. + */ + public Builder setActivate(boolean value) { + + activate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * bool activate = 3 [json_name = "activate"]; + * @return This builder for chaining. + */ + public Builder clearActivate() { + bitField0_ = (bitField0_ & ~0x00000004); + activate_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.SetClientConfigActivationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.SetClientConfigActivationRequest) + private static final io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetClientConfigActivationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetClientConfigActivationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.SetClientConfigActivationResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.SetClientConfigActivationResponse} + */ + public static final class SetClientConfigActivationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.SetClientConfigActivationResponse) + SetClientConfigActivationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SetClientConfigActivationResponse.class.getName()); + } + // Use SetClientConfigActivationResponse.newBuilder() to construct. + private SetClientConfigActivationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetClientConfigActivationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse other = (io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.SetClientConfigActivationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.SetClientConfigActivationResponse) + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse.class, io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse build() { + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse result = new io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.SetClientConfigActivationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.SetClientConfigActivationResponse) + private static final io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetClientConfigActivationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Oidc.SetClientConfigActivationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_OIDCClientConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_OIDCClientConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_OIDCConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_OIDCConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ConsentScreenHints_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ConsentScreenHints_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ClaimMappingOverride_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ClaimMappingOverride_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_OAuth2Config_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_OAuth2Config_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UserInfoKeys_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UserInfoKeys_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateClientConfigRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateClientConfigRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateClientConfigResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateClientConfigResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetClientConfigRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetClientConfigRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetClientConfigResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetClientConfigResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListClientConfigsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListClientConfigsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListClientConfigsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListClientConfigsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!gitpod/experimental/v1/oidc.proto\022\026git" + + "pod.experimental.v1\032\'gitpod/experimental" + + "/v1/pagination.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\210\004\n\020OIDCClientConfig\022\016\n\002id" + + "\030\001 \001(\tR\002id\022\'\n\017organization_id\030\002 \001(\tR\016org" + + "anizationId\022C\n\013oidc_config\030\003 \001(\0132\".gitpo" + + "d.experimental.v1.OIDCConfigR\noidcConfig" + + "\022I\n\roauth2_config\030\004 \001(\0132$.gitpod.experim" + + "ental.v1.OAuth2ConfigR\014oauth2Config\022\035\n\no" + + "auth_only\030\005 \001(\010R\toauthOnly\022O\n%id_token_s" + + "igning_alg_values_supported\030\006 \003(\tR idTok" + + "enSigningAlgValuesSupported\022?\n\rcreation_" + + "time\030\007 \001(\0132\032.google.protobuf.TimestampR\014" + + "creationTime\022F\n\006status\030\010 \001(\0132..gitpod.ex" + + "perimental.v1.OIDCClientConfigStatusR\006st" + + "atus\022\026\n\006active\030\t \001(\010R\006active\022\032\n\010verified" + + "\030\n \001(\010R\010verified\"\371\001\n\nOIDCConfig\022\026\n\006issue" + + "r\030\001 \001(\tR\006issuer\022\022\n\004jwks\030\002 \001(\tR\004jwks\022\031\n\010j" + + "wks_url\030\003 \001(\tR\007jwksUrl\022@\n\005hints\030\004 \001(\0132*." + + "gitpod.experimental.v1.ConsentScreenHint" + + "sR\005hints\022b\n\026override_claim_mapping\030\005 \001(\013" + + "2,.gitpod.experimental.v1.ClaimMappingOv" + + "errideR\024overrideClaimMapping\"l\n\022ConsentS" + + "creenHints\022\026\n\006prompt\030\001 \001(\tR\006prompt\022\037\n\013do" + + "main_hint\030\002 \001(\tR\ndomainHint\022\035\n\nlogin_hin" + + "t\030\003 \001(\tR\tloginHint\"\226\001\n\024ClaimMappingOverr" + + "ide\022&\n\017claim_email_key\030\001 \001(\tR\rclaimEmail" + + "Key\022(\n\020claim_groups_key\030\002 \001(\tR\016claimGrou" + + "psKey\022,\n\022claim_username_key\030\003 \001(\tR\020claim" + + "UsernameKey\"\276\002\n\014OAuth2Config\022\033\n\tclient_i" + + "d\030\001 \001(\tR\010clientId\022#\n\rclient_secret\030\002 \001(\t" + + "R\014clientSecret\0225\n\026authorization_endpoint" + + "\030\003 \001(\tR\025authorizationEndpoint\022%\n\016token_e" + + "ndpoint\030\004 \001(\tR\rtokenEndpoint\022\026\n\006scopes\030\005" + + " \003(\tR\006scopes\022+\n\021userinfo_endpoint\030\006 \001(\tR" + + "\020userinfoEndpoint\022I\n\ruserinfo_keys\030\007 \001(\013" + + "2$.gitpod.experimental.v1.UserInfoKeysR\014" + + "userinfoKeys\"b\n\014UserInfoKeys\022&\n\017userinfo" + + "_id_key\030\001 \001(\tR\ruserinfoIdKey\022*\n\021userinfo" + + "_name_key\030\002 \001(\tR\017userinfoNameKey\"\030\n\026OIDC" + + "ClientConfigStatus\"\202\001\n\031CreateClientConfi" + + "gRequest\022@\n\006config\030\001 \001(\0132(.gitpod.experi" + + "mental.v1.OIDCClientConfigR\006config\022#\n\rus" + + "e_discovery\030\002 \001(\010R\014useDiscovery\"^\n\032Creat" + + "eClientConfigResponse\022@\n\006config\030\001 \001(\0132(." + + "gitpod.experimental.v1.OIDCClientConfigR" + + "\006config\"Q\n\026GetClientConfigRequest\022\016\n\002id\030" + + "\001 \001(\tR\002id\022\'\n\017organization_id\030\002 \001(\tR\016orga" + + "nizationId\"[\n\027GetClientConfigResponse\022@\n" + + "\006config\030\001 \001(\0132(.gitpod.experimental.v1.O" + + "IDCClientConfigR\006config\"\207\001\n\030ListClientCo" + + "nfigsRequest\022\'\n\017organization_id\030\001 \001(\tR\016o" + + "rganizationId\022B\n\npagination\030\002 \001(\0132\".gitp" + + "od.experimental.v1.PaginationR\npaginatio" + + "n\"\221\001\n\031ListClientConfigsResponse\022O\n\016clien" + + "t_configs\030\001 \003(\0132(.gitpod.experimental.v1" + + ".OIDCClientConfigR\rclientConfigs\022#\n\rtota" + + "l_results\030\002 \001(\003R\014totalResults\"]\n\031UpdateC" + + "lientConfigRequest\022@\n\006config\030\001 \001(\0132(.git" + + "pod.experimental.v1.OIDCClientConfigR\006co" + + "nfig\"\034\n\032UpdateClientConfigResponse\"T\n\031De" + + "leteClientConfigRequest\022\016\n\002id\030\001 \001(\tR\002id\022" + + "\'\n\017organization_id\030\002 \001(\tR\016organizationId" + + "\"\034\n\032DeleteClientConfigResponse\"w\n SetCli" + + "entConfigActivationRequest\022\016\n\002id\030\001 \001(\tR\002" + + "id\022\'\n\017organization_id\030\002 \001(\tR\016organizatio" + + "nId\022\032\n\010activate\030\003 \001(\010R\010activate\"#\n!SetCl" + + "ientConfigActivationResponse2\221\006\n\013OIDCSer" + + "vice\022}\n\022CreateClientConfig\0221.gitpod.expe" + + "rimental.v1.CreateClientConfigRequest\0322." + + "gitpod.experimental.v1.CreateClientConfi" + + "gResponse\"\000\022t\n\017GetClientConfig\022..gitpod." + + "experimental.v1.GetClientConfigRequest\032/" + + ".gitpod.experimental.v1.GetClientConfigR" + + "esponse\"\000\022z\n\021ListClientConfigs\0220.gitpod." + + "experimental.v1.ListClientConfigsRequest" + + "\0321.gitpod.experimental.v1.ListClientConf" + + "igsResponse\"\000\022}\n\022UpdateClientConfig\0221.gi" + + "tpod.experimental.v1.UpdateClientConfigR" + + "equest\0322.gitpod.experimental.v1.UpdateCl" + + "ientConfigResponse\"\000\022}\n\022DeleteClientConf" + + "ig\0221.gitpod.experimental.v1.DeleteClient" + + "ConfigRequest\0322.gitpod.experimental.v1.D" + + "eleteClientConfigResponse\"\000\022\222\001\n\031SetClien" + + "tConfigActivation\0228.gitpod.experimental." + + "v1.SetClientConfigActivationRequest\0329.gi" + + "tpod.experimental.v1.SetClientConfigActi" + + "vationResponse\"\000Bk\n#io.gitpod.publicapi." + + "experimental.v1ZDgithub.com/gitpod-io/gi" + + "tpod/components/public-api/go/experiment" + + "al/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_experimental_v1_OIDCClientConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_OIDCClientConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_OIDCClientConfig_descriptor, + new java.lang.String[] { "Id", "OrganizationId", "OidcConfig", "Oauth2Config", "OauthOnly", "IdTokenSigningAlgValuesSupported", "CreationTime", "Status", "Active", "Verified", }); + internal_static_gitpod_experimental_v1_OIDCConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_OIDCConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_OIDCConfig_descriptor, + new java.lang.String[] { "Issuer", "Jwks", "JwksUrl", "Hints", "OverrideClaimMapping", }); + internal_static_gitpod_experimental_v1_ConsentScreenHints_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_experimental_v1_ConsentScreenHints_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ConsentScreenHints_descriptor, + new java.lang.String[] { "Prompt", "DomainHint", "LoginHint", }); + internal_static_gitpod_experimental_v1_ClaimMappingOverride_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_experimental_v1_ClaimMappingOverride_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ClaimMappingOverride_descriptor, + new java.lang.String[] { "ClaimEmailKey", "ClaimGroupsKey", "ClaimUsernameKey", }); + internal_static_gitpod_experimental_v1_OAuth2Config_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_experimental_v1_OAuth2Config_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_OAuth2Config_descriptor, + new java.lang.String[] { "ClientId", "ClientSecret", "AuthorizationEndpoint", "TokenEndpoint", "Scopes", "UserinfoEndpoint", "UserinfoKeys", }); + internal_static_gitpod_experimental_v1_UserInfoKeys_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_experimental_v1_UserInfoKeys_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UserInfoKeys_descriptor, + new java.lang.String[] { "UserinfoIdKey", "UserinfoNameKey", }); + internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_OIDCClientConfigStatus_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_CreateClientConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_experimental_v1_CreateClientConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateClientConfigRequest_descriptor, + new java.lang.String[] { "Config", "UseDiscovery", }); + internal_static_gitpod_experimental_v1_CreateClientConfigResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_experimental_v1_CreateClientConfigResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateClientConfigResponse_descriptor, + new java.lang.String[] { "Config", }); + internal_static_gitpod_experimental_v1_GetClientConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_experimental_v1_GetClientConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetClientConfigRequest_descriptor, + new java.lang.String[] { "Id", "OrganizationId", }); + internal_static_gitpod_experimental_v1_GetClientConfigResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_experimental_v1_GetClientConfigResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetClientConfigResponse_descriptor, + new java.lang.String[] { "Config", }); + internal_static_gitpod_experimental_v1_ListClientConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_experimental_v1_ListClientConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListClientConfigsRequest_descriptor, + new java.lang.String[] { "OrganizationId", "Pagination", }); + internal_static_gitpod_experimental_v1_ListClientConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_experimental_v1_ListClientConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListClientConfigsResponse_descriptor, + new java.lang.String[] { "ClientConfigs", "TotalResults", }); + internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdateClientConfigRequest_descriptor, + new java.lang.String[] { "Config", }); + internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdateClientConfigResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteClientConfigRequest_descriptor, + new java.lang.String[] { "Id", "OrganizationId", }); + internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteClientConfigResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_SetClientConfigActivationRequest_descriptor, + new java.lang.String[] { "Id", "OrganizationId", "Activate", }); + internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_SetClientConfigActivationResponse_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/PaginationOuterClass.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/PaginationOuterClass.java new file mode 100644 index 00000000000000..0544a0f6b48151 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/PaginationOuterClass.java @@ -0,0 +1,629 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/pagination.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class PaginationOuterClass { + private PaginationOuterClass() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PaginationOuterClass.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PaginationOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.Pagination) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Page size is the maximum number of results to retrieve per page.
+     * Defaults to 25. Maximum 100.
+     * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+     * Page is the page number of results to retrieve.
+     * The first page starts at 1.
+     * Defaults to 1.
+     * 
+ * + * int32 page = 2 [json_name = "page"]; + * @return The page. + */ + int getPage(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.Pagination} + */ + public static final class Pagination extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.Pagination) + PaginationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Pagination.class.getName()); + } + // Use Pagination.newBuilder() to construct. + private Pagination(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Pagination() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.PaginationOuterClass.internal_static_gitpod_experimental_v1_Pagination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.PaginationOuterClass.internal_static_gitpod_experimental_v1_Pagination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.class, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_ = 0; + /** + *
+     * Page size is the maximum number of results to retrieve per page.
+     * Defaults to 25. Maximum 100.
+     * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_FIELD_NUMBER = 2; + private int page_ = 0; + /** + *
+     * Page is the page number of results to retrieve.
+     * The first page starts at 1.
+     * Defaults to 1.
+     * 
+ * + * int32 page = 2 [json_name = "page"]; + * @return The page. + */ + @java.lang.Override + public int getPage() { + return page_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (page_ != 0) { + output.writeInt32(2, page_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); + } + if (page_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, page_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination other = (io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (getPage() + != other.getPage()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_FIELD_NUMBER; + hash = (53 * hash) + getPage(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.Pagination} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.Pagination) + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.PaginationOuterClass.internal_static_gitpod_experimental_v1_Pagination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.PaginationOuterClass.internal_static_gitpod_experimental_v1_Pagination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.class, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = 0; + page_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.PaginationOuterClass.internal_static_gitpod_experimental_v1_Pagination_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination build() { + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination buildPartial() { + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination result = new io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.page_ = page_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination other) { + if (other == io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.getPage() != 0) { + setPage(other.getPage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + page_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int pageSize_ ; + /** + *
+       * Page size is the maximum number of results to retrieve per page.
+       * Defaults to 25. Maximum 100.
+       * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+       * Page size is the maximum number of results to retrieve per page.
+       * Defaults to 25. Maximum 100.
+       * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Page size is the maximum number of results to retrieve per page.
+       * Defaults to 25. Maximum 100.
+       * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private int page_ ; + /** + *
+       * Page is the page number of results to retrieve.
+       * The first page starts at 1.
+       * Defaults to 1.
+       * 
+ * + * int32 page = 2 [json_name = "page"]; + * @return The page. + */ + @java.lang.Override + public int getPage() { + return page_; + } + /** + *
+       * Page is the page number of results to retrieve.
+       * The first page starts at 1.
+       * Defaults to 1.
+       * 
+ * + * int32 page = 2 [json_name = "page"]; + * @param value The page to set. + * @return This builder for chaining. + */ + public Builder setPage(int value) { + + page_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Page is the page number of results to retrieve.
+       * The first page starts at 1.
+       * Defaults to 1.
+       * 
+ * + * int32 page = 2 [json_name = "page"]; + * @return This builder for chaining. + */ + public Builder clearPage() { + bitField0_ = (bitField0_ & ~0x00000002); + page_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.Pagination) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.Pagination) + private static final io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination(); + } + + public static io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Pagination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_Pagination_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_Pagination_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'gitpod/experimental/v1/pagination.prot" + + "o\022\026gitpod.experimental.v1\"=\n\nPagination\022" + + "\033\n\tpage_size\030\001 \001(\005R\010pageSize\022\022\n\004page\030\002 \001" + + "(\005R\004pageBk\n#io.gitpod.publicapi.experime" + + "ntal.v1ZDgithub.com/gitpod-io/gitpod/com" + + "ponents/public-api/go/experimental/v1b\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_experimental_v1_Pagination_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_Pagination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_Pagination_descriptor, + new java.lang.String[] { "PageSize", "Page", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Projects.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Projects.java new file mode 100644 index 00000000000000..a4aafde4dd21ba --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Projects.java @@ -0,0 +1,10234 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/projects.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class Projects { + private Projects() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Projects.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ProjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.Project) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID is the unique identifier for the project.
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * ID is the unique identifier for the project.
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Team ID is the Team this Project belongs to.
+     * team_id will be empty if the Project belongs to a User, in which case user_id will be set.
+     * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The teamId. + */ + java.lang.String getTeamId(); + /** + *
+     * Team ID is the Team this Project belongs to.
+     * team_id will be empty if the Project belongs to a User, in which case user_id will be set.
+     * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + com.google.protobuf.ByteString + getTeamIdBytes(); + + /** + *
+     * Name is the name of the Project.
+     * Required.
+     * 
+ * + * string name = 4 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name is the name of the Project.
+     * Required.
+     * 
+ * + * string name = 4 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Clone URL is the clone URL on which this Project is based.
+     * Required.
+     * 
+ * + * string clone_url = 6 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + java.lang.String getCloneUrl(); + /** + *
+     * Clone URL is the clone URL on which this Project is based.
+     * Required.
+     * 
+ * + * string clone_url = 6 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + com.google.protobuf.ByteString + getCloneUrlBytes(); + + /** + *
+     * Time when the Project was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + boolean hasCreationTime(); + /** + *
+     * Time when the Project was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return The creationTime. + */ + com.google.protobuf.Timestamp getCreationTime(); + /** + *
+     * Time when the Project was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder(); + + /** + *
+     * Settings are configuration options for a Project.
+     * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + * @return Whether the settings field is set. + */ + boolean hasSettings(); + /** + *
+     * Settings are configuration options for a Project.
+     * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + * @return The settings. + */ + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings getSettings(); + /** + *
+     * Settings are configuration options for a Project.
+     * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + */ + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettingsOrBuilder getSettingsOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.Project} + */ + public static final class Project extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.Project) + ProjectOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Project.class.getName()); + } + // Use Project.newBuilder() to construct. + private Project(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Project() { + id_ = ""; + teamId_ = ""; + name_ = ""; + cloneUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.Project.class, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * ID is the unique identifier for the project.
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * ID is the unique identifier for the project.
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object teamId_ = ""; + /** + *
+     * Team ID is the Team this Project belongs to.
+     * team_id will be empty if the Project belongs to a User, in which case user_id will be set.
+     * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The teamId. + */ + @java.lang.Override + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } + } + /** + *
+     * Team ID is the Team this Project belongs to.
+     * team_id will be empty if the Project belongs to a User, in which case user_id will be set.
+     * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * Name is the name of the Project.
+     * Required.
+     * 
+ * + * string name = 4 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * Name is the name of the Project.
+     * Required.
+     * 
+ * + * string name = 4 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLONE_URL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object cloneUrl_ = ""; + /** + *
+     * Clone URL is the clone URL on which this Project is based.
+     * Required.
+     * 
+ * + * string clone_url = 6 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + @java.lang.Override + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } + } + /** + *
+     * Clone URL is the clone URL on which this Project is based.
+     * Required.
+     * 
+ * + * string clone_url = 6 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATION_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp creationTime_; + /** + *
+     * Time when the Project was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + @java.lang.Override + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Time when the Project was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return The creationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreationTime() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + /** + *
+     * Time when the Project was created.
+     * Read-only.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + + public static final int SETTINGS_FIELD_NUMBER = 8; + private io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings settings_; + /** + *
+     * Settings are configuration options for a Project.
+     * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + * @return Whether the settings field is set. + */ + @java.lang.Override + public boolean hasSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Settings are configuration options for a Project.
+     * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + * @return The settings. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings getSettings() { + return settings_ == null ? io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.getDefaultInstance() : settings_; + } + /** + *
+     * Settings are configuration options for a Project.
+     * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectSettingsOrBuilder getSettingsOrBuilder() { + return settings_ == null ? io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.getDefaultInstance() : settings_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, teamId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, cloneUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCreationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, teamId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, cloneUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.Project)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.Project other = (io.gitpod.publicapi.experimental.v1.Projects.Project) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getTeamId() + .equals(other.getTeamId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCloneUrl() + .equals(other.getCloneUrl())) return false; + if (hasCreationTime() != other.hasCreationTime()) return false; + if (hasCreationTime()) { + if (!getCreationTime() + .equals(other.getCreationTime())) return false; + } + if (hasSettings() != other.hasSettings()) return false; + if (hasSettings()) { + if (!getSettings() + .equals(other.getSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CLONE_URL_FIELD_NUMBER; + hash = (53 * hash) + getCloneUrl().hashCode(); + if (hasCreationTime()) { + hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreationTime().hashCode(); + } + if (hasSettings()) { + hash = (37 * hash) + SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.Project parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.Project prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.Project} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.Project) + io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.Project.class, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.Project.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreationTimeFieldBuilder(); + getSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + teamId_ = ""; + name_ = ""; + cloneUrl_ = ""; + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_Project_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.Project getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.Project build() { + io.gitpod.publicapi.experimental.v1.Projects.Project result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.Project buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.Project result = new io.gitpod.publicapi.experimental.v1.Projects.Project(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.Project result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.teamId_ = teamId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cloneUrl_ = cloneUrl_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.creationTime_ = creationTimeBuilder_ == null + ? creationTime_ + : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.settings_ = settingsBuilder_ == null + ? settings_ + : settingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.Project) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.Project)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.Project other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTeamId().isEmpty()) { + teamId_ = other.teamId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getCloneUrl().isEmpty()) { + cloneUrl_ = other.cloneUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); + } + if (other.hasSettings()) { + mergeSettings(other.getSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 50: { + cloneUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: { + input.readMessage( + getCreationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: { + input.readMessage( + getSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * ID is the unique identifier for the project.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ID is the unique identifier for the project.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ID is the unique identifier for the project.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * ID is the unique identifier for the project.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * ID is the unique identifier for the project.
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object teamId_ = ""; + /** + *
+       * Team ID is the Team this Project belongs to.
+       * team_id will be empty if the Project belongs to a User, in which case user_id will be set.
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The teamId. + */ + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Team ID is the Team this Project belongs to.
+       * team_id will be empty if the Project belongs to a User, in which case user_id will be set.
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Team ID is the Team this Project belongs to.
+       * team_id will be empty if the Project belongs to a User, in which case user_id will be set.
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Team ID is the Team this Project belongs to.
+       * team_id will be empty if the Project belongs to a User, in which case user_id will be set.
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + teamId_ = getDefaultInstance().getTeamId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Team ID is the Team this Project belongs to.
+       * team_id will be empty if the Project belongs to a User, in which case user_id will be set.
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @param value The bytes for teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Name is the name of the Project.
+       * Required.
+       * 
+ * + * string name = 4 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name is the name of the Project.
+       * Required.
+       * 
+ * + * string name = 4 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name is the name of the Project.
+       * Required.
+       * 
+ * + * string name = 4 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Name is the name of the Project.
+       * Required.
+       * 
+ * + * string name = 4 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Name is the name of the Project.
+       * Required.
+       * 
+ * + * string name = 4 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object cloneUrl_ = ""; + /** + *
+       * Clone URL is the clone URL on which this Project is based.
+       * Required.
+       * 
+ * + * string clone_url = 6 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Clone URL is the clone URL on which this Project is based.
+       * Required.
+       * 
+ * + * string clone_url = 6 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Clone URL is the clone URL on which this Project is based.
+       * Required.
+       * 
+ * + * string clone_url = 6 [json_name = "cloneUrl"]; + * @param value The cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cloneUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Clone URL is the clone URL on which this Project is based.
+       * Required.
+       * 
+ * + * string clone_url = 6 [json_name = "cloneUrl"]; + * @return This builder for chaining. + */ + public Builder clearCloneUrl() { + cloneUrl_ = getDefaultInstance().getCloneUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * Clone URL is the clone URL on which this Project is based.
+       * Required.
+       * 
+ * + * string clone_url = 6 [json_name = "cloneUrl"]; + * @param value The bytes for cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cloneUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_; + /** + *
+       * Time when the Project was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * Time when the Project was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + * @return The creationTime. + */ + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } + } + /** + *
+       * Time when the Project was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Time when the Project was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public Builder setCreationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Time when the Project was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + creationTime_ != null && + creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+       * Time when the Project was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x00000010); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Time when the Project was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Time when the Project was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + } + /** + *
+       * Time when the Project was created.
+       * Read-only.
+       * 
+ * + * .google.protobuf.Timestamp creation_time = 7 [json_name = "creationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), + getParentForChildren(), + isClean()); + creationTime_ = null; + } + return creationTimeBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings settings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings, io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectSettingsOrBuilder> settingsBuilder_; + /** + *
+       * Settings are configuration options for a Project.
+       * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + * @return Whether the settings field is set. + */ + public boolean hasSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+       * Settings are configuration options for a Project.
+       * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + * @return The settings. + */ + public io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings getSettings() { + if (settingsBuilder_ == null) { + return settings_ == null ? io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.getDefaultInstance() : settings_; + } else { + return settingsBuilder_.getMessage(); + } + } + /** + *
+       * Settings are configuration options for a Project.
+       * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + */ + public Builder setSettings(io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + settings_ = value; + } else { + settingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * Settings are configuration options for a Project.
+       * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + */ + public Builder setSettings( + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.Builder builderForValue) { + if (settingsBuilder_ == null) { + settings_ = builderForValue.build(); + } else { + settingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * Settings are configuration options for a Project.
+       * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + */ + public Builder mergeSettings(io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings value) { + if (settingsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + settings_ != null && + settings_ != io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.getDefaultInstance()) { + getSettingsBuilder().mergeFrom(value); + } else { + settings_ = value; + } + } else { + settingsBuilder_.mergeFrom(value); + } + if (settings_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+       * Settings are configuration options for a Project.
+       * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + */ + public Builder clearSettings() { + bitField0_ = (bitField0_ & ~0x00000020); + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Settings are configuration options for a Project.
+       * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.Builder getSettingsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getSettingsFieldBuilder().getBuilder(); + } + /** + *
+       * Settings are configuration options for a Project.
+       * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.ProjectSettingsOrBuilder getSettingsOrBuilder() { + if (settingsBuilder_ != null) { + return settingsBuilder_.getMessageOrBuilder(); + } else { + return settings_ == null ? + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.getDefaultInstance() : settings_; + } + } + /** + *
+       * Settings are configuration options for a Project.
+       * 
+ * + * .gitpod.experimental.v1.ProjectSettings settings = 8 [json_name = "settings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings, io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectSettingsOrBuilder> + getSettingsFieldBuilder() { + if (settingsBuilder_ == null) { + settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings, io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectSettingsOrBuilder>( + getSettings(), + getParentForChildren(), + isClean()); + settings_ = null; + } + return settingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.Project) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.Project) + private static final io.gitpod.publicapi.experimental.v1.Projects.Project DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.Project(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.Project getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Project parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.Project getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ProjectSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + boolean hasPrebuild(); + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + * @return The prebuild. + */ + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings getPrebuild(); + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + */ + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettingsOrBuilder getPrebuildOrBuilder(); + + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + boolean hasWorkspace(); + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + * @return The workspace. + */ + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings getWorkspace(); + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + */ + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettingsOrBuilder getWorkspaceOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ProjectSettings} + */ + public static final class ProjectSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ProjectSettings) + ProjectSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ProjectSettings.class.getName()); + } + // Use ProjectSettings.newBuilder() to construct. + private ProjectSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ProjectSettings() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ProjectSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ProjectSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.class, io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.Builder.class); + } + + private int bitField0_; + public static final int PREBUILD_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings prebuild_; + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + @java.lang.Override + public boolean hasPrebuild() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings getPrebuild() { + return prebuild_ == null ? io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.getDefaultInstance() : prebuild_; + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettingsOrBuilder getPrebuildOrBuilder() { + return prebuild_ == null ? io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.getDefaultInstance() : prebuild_; + } + + public static final int WORKSPACE_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings workspace_; + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + @java.lang.Override + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + * @return The workspace. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings getWorkspace() { + return workspace_ == null ? io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.getDefaultInstance() : workspace_; + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettingsOrBuilder getWorkspaceOrBuilder() { + return workspace_ == null ? io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.getDefaultInstance() : workspace_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPrebuild()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getWorkspace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPrebuild()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkspace()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings other = (io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings) obj; + + if (hasPrebuild() != other.hasPrebuild()) return false; + if (hasPrebuild()) { + if (!getPrebuild() + .equals(other.getPrebuild())) return false; + } + if (hasWorkspace() != other.hasWorkspace()) return false; + if (hasWorkspace()) { + if (!getWorkspace() + .equals(other.getWorkspace())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrebuild()) { + hash = (37 * hash) + PREBUILD_FIELD_NUMBER; + hash = (53 * hash) + getPrebuild().hashCode(); + } + if (hasWorkspace()) { + hash = (37 * hash) + WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getWorkspace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ProjectSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ProjectSettings) + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ProjectSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ProjectSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.class, io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPrebuildFieldBuilder(); + getWorkspaceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prebuild_ = null; + if (prebuildBuilder_ != null) { + prebuildBuilder_.dispose(); + prebuildBuilder_ = null; + } + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ProjectSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings build() { + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings result = new io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prebuild_ = prebuildBuilder_ == null + ? prebuild_ + : prebuildBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspace_ = workspaceBuilder_ == null + ? workspace_ + : workspaceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings.getDefaultInstance()) return this; + if (other.hasPrebuild()) { + mergePrebuild(other.getPrebuild()); + } + if (other.hasWorkspace()) { + mergeWorkspace(other.getWorkspace()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPrebuildFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getWorkspaceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings prebuild_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings, io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettingsOrBuilder> prebuildBuilder_; + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + public boolean hasPrebuild() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + * @return The prebuild. + */ + public io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings getPrebuild() { + if (prebuildBuilder_ == null) { + return prebuild_ == null ? io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.getDefaultInstance() : prebuild_; + } else { + return prebuildBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + */ + public Builder setPrebuild(io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings value) { + if (prebuildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prebuild_ = value; + } else { + prebuildBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + */ + public Builder setPrebuild( + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.Builder builderForValue) { + if (prebuildBuilder_ == null) { + prebuild_ = builderForValue.build(); + } else { + prebuildBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + */ + public Builder mergePrebuild(io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings value) { + if (prebuildBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + prebuild_ != null && + prebuild_ != io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.getDefaultInstance()) { + getPrebuildBuilder().mergeFrom(value); + } else { + prebuild_ = value; + } + } else { + prebuildBuilder_.mergeFrom(value); + } + if (prebuild_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + */ + public Builder clearPrebuild() { + bitField0_ = (bitField0_ & ~0x00000001); + prebuild_ = null; + if (prebuildBuilder_ != null) { + prebuildBuilder_.dispose(); + prebuildBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.Builder getPrebuildBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPrebuildFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettingsOrBuilder getPrebuildOrBuilder() { + if (prebuildBuilder_ != null) { + return prebuildBuilder_.getMessageOrBuilder(); + } else { + return prebuild_ == null ? + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.getDefaultInstance() : prebuild_; + } + } + /** + * .gitpod.experimental.v1.PrebuildSettings prebuild = 1 [json_name = "prebuild"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings, io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettingsOrBuilder> + getPrebuildFieldBuilder() { + if (prebuildBuilder_ == null) { + prebuildBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings, io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettingsOrBuilder>( + getPrebuild(), + getParentForChildren(), + isClean()); + prebuild_ = null; + } + return prebuildBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings workspace_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettingsOrBuilder> workspaceBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + * @return The workspace. + */ + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings getWorkspace() { + if (workspaceBuilder_ == null) { + return workspace_ == null ? io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.getDefaultInstance() : workspace_; + } else { + return workspaceBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + */ + public Builder setWorkspace(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings value) { + if (workspaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspace_ = value; + } else { + workspaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + */ + public Builder setWorkspace( + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.Builder builderForValue) { + if (workspaceBuilder_ == null) { + workspace_ = builderForValue.build(); + } else { + workspaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + */ + public Builder mergeWorkspace(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings value) { + if (workspaceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + workspace_ != null && + workspace_ != io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.getDefaultInstance()) { + getWorkspaceBuilder().mergeFrom(value); + } else { + workspace_ = value; + } + } else { + workspaceBuilder_.mergeFrom(value); + } + if (workspace_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + */ + public Builder clearWorkspace() { + bitField0_ = (bitField0_ & ~0x00000002); + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.Builder getWorkspaceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWorkspaceFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettingsOrBuilder getWorkspaceOrBuilder() { + if (workspaceBuilder_ != null) { + return workspaceBuilder_.getMessageOrBuilder(); + } else { + return workspace_ == null ? + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.getDefaultInstance() : workspace_; + } + } + /** + * .gitpod.experimental.v1.WorkspaceSettings workspace = 2 [json_name = "workspace"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettingsOrBuilder> + getWorkspaceFieldBuilder() { + if (workspaceBuilder_ == null) { + workspaceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettingsOrBuilder>( + getWorkspace(), + getParentForChildren(), + isClean()); + workspace_ = null; + } + return workspaceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ProjectSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ProjectSettings) + private static final io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrebuildSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.PrebuildSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * optional bool enable_prebuilds = 5 [json_name = "enablePrebuilds"]; + * @return Whether the enablePrebuilds field is set. + */ + boolean hasEnablePrebuilds(); + /** + * optional bool enable_prebuilds = 5 [json_name = "enablePrebuilds"]; + * @return The enablePrebuilds. + */ + boolean getEnablePrebuilds(); + + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return Whether the branchMatchingPattern field is set. + */ + boolean hasBranchMatchingPattern(); + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return The branchMatchingPattern. + */ + java.lang.String getBranchMatchingPattern(); + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return The bytes for branchMatchingPattern. + */ + com.google.protobuf.ByteString + getBranchMatchingPatternBytes(); + + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return Whether the branchStrategy field is set. + */ + boolean hasBranchStrategy(); + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return The branchStrategy. + */ + java.lang.String getBranchStrategy(); + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return The bytes for branchStrategy. + */ + com.google.protobuf.ByteString + getBranchStrategyBytes(); + + /** + * optional int32 prebuild_interval = 9 [json_name = "prebuildInterval"]; + * @return Whether the prebuildInterval field is set. + */ + boolean hasPrebuildInterval(); + /** + * optional int32 prebuild_interval = 9 [json_name = "prebuildInterval"]; + * @return The prebuildInterval. + */ + int getPrebuildInterval(); + + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + boolean hasWorkspaceClass(); + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.PrebuildSettings} + */ + public static final class PrebuildSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.PrebuildSettings) + PrebuildSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PrebuildSettings.class.getName()); + } + // Use PrebuildSettings.newBuilder() to construct. + private PrebuildSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrebuildSettings() { + branchMatchingPattern_ = ""; + branchStrategy_ = ""; + workspaceClass_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_PrebuildSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_PrebuildSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.class, io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_PREBUILDS_FIELD_NUMBER = 5; + private boolean enablePrebuilds_ = false; + /** + * optional bool enable_prebuilds = 5 [json_name = "enablePrebuilds"]; + * @return Whether the enablePrebuilds field is set. + */ + @java.lang.Override + public boolean hasEnablePrebuilds() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional bool enable_prebuilds = 5 [json_name = "enablePrebuilds"]; + * @return The enablePrebuilds. + */ + @java.lang.Override + public boolean getEnablePrebuilds() { + return enablePrebuilds_; + } + + public static final int BRANCH_MATCHING_PATTERN_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object branchMatchingPattern_ = ""; + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return Whether the branchMatchingPattern field is set. + */ + @java.lang.Override + public boolean hasBranchMatchingPattern() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return The branchMatchingPattern. + */ + @java.lang.Override + public java.lang.String getBranchMatchingPattern() { + java.lang.Object ref = branchMatchingPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branchMatchingPattern_ = s; + return s; + } + } + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return The bytes for branchMatchingPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchMatchingPatternBytes() { + java.lang.Object ref = branchMatchingPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branchMatchingPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_STRATEGY_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object branchStrategy_ = ""; + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return Whether the branchStrategy field is set. + */ + @java.lang.Override + public boolean hasBranchStrategy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return The branchStrategy. + */ + @java.lang.Override + public java.lang.String getBranchStrategy() { + java.lang.Object ref = branchStrategy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branchStrategy_ = s; + return s; + } + } + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return The bytes for branchStrategy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchStrategyBytes() { + java.lang.Object ref = branchStrategy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branchStrategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREBUILD_INTERVAL_FIELD_NUMBER = 9; + private int prebuildInterval_ = 0; + /** + * optional int32 prebuild_interval = 9 [json_name = "prebuildInterval"]; + * @return Whether the prebuildInterval field is set. + */ + @java.lang.Override + public boolean hasPrebuildInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int32 prebuild_interval = 9 [json_name = "prebuildInterval"]; + * @return The prebuildInterval. + */ + @java.lang.Override + public int getPrebuildInterval() { + return prebuildInterval_; + } + + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + @java.lang.Override + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(5, enablePrebuilds_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, branchMatchingPattern_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, branchStrategy_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt32(9, prebuildInterval_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, workspaceClass_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, enablePrebuilds_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, branchMatchingPattern_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, branchStrategy_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, prebuildInterval_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, workspaceClass_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings other = (io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings) obj; + + if (hasEnablePrebuilds() != other.hasEnablePrebuilds()) return false; + if (hasEnablePrebuilds()) { + if (getEnablePrebuilds() + != other.getEnablePrebuilds()) return false; + } + if (hasBranchMatchingPattern() != other.hasBranchMatchingPattern()) return false; + if (hasBranchMatchingPattern()) { + if (!getBranchMatchingPattern() + .equals(other.getBranchMatchingPattern())) return false; + } + if (hasBranchStrategy() != other.hasBranchStrategy()) return false; + if (hasBranchStrategy()) { + if (!getBranchStrategy() + .equals(other.getBranchStrategy())) return false; + } + if (hasPrebuildInterval() != other.hasPrebuildInterval()) return false; + if (hasPrebuildInterval()) { + if (getPrebuildInterval() + != other.getPrebuildInterval()) return false; + } + if (hasWorkspaceClass() != other.hasWorkspaceClass()) return false; + if (hasWorkspaceClass()) { + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnablePrebuilds()) { + hash = (37 * hash) + ENABLE_PREBUILDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrebuilds()); + } + if (hasBranchMatchingPattern()) { + hash = (37 * hash) + BRANCH_MATCHING_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getBranchMatchingPattern().hashCode(); + } + if (hasBranchStrategy()) { + hash = (37 * hash) + BRANCH_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getBranchStrategy().hashCode(); + } + if (hasPrebuildInterval()) { + hash = (37 * hash) + PREBUILD_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildInterval(); + } + if (hasWorkspaceClass()) { + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.PrebuildSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.PrebuildSettings) + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_PrebuildSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_PrebuildSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.class, io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enablePrebuilds_ = false; + branchMatchingPattern_ = ""; + branchStrategy_ = ""; + prebuildInterval_ = 0; + workspaceClass_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_PrebuildSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings build() { + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings result = new io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePrebuilds_ = enablePrebuilds_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branchMatchingPattern_ = branchMatchingPattern_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.branchStrategy_ = branchStrategy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.prebuildInterval_ = prebuildInterval_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.workspaceClass_ = workspaceClass_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings.getDefaultInstance()) return this; + if (other.hasEnablePrebuilds()) { + setEnablePrebuilds(other.getEnablePrebuilds()); + } + if (other.hasBranchMatchingPattern()) { + branchMatchingPattern_ = other.branchMatchingPattern_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBranchStrategy()) { + branchStrategy_ = other.branchStrategy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPrebuildInterval()) { + setPrebuildInterval(other.getPrebuildInterval()); + } + if (other.hasWorkspaceClass()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 40: { + enablePrebuilds_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 40 + case 58: { + branchMatchingPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 58 + case 66: { + branchStrategy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 66 + case 72: { + prebuildInterval_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 72 + case 82: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enablePrebuilds_ ; + /** + * optional bool enable_prebuilds = 5 [json_name = "enablePrebuilds"]; + * @return Whether the enablePrebuilds field is set. + */ + @java.lang.Override + public boolean hasEnablePrebuilds() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional bool enable_prebuilds = 5 [json_name = "enablePrebuilds"]; + * @return The enablePrebuilds. + */ + @java.lang.Override + public boolean getEnablePrebuilds() { + return enablePrebuilds_; + } + /** + * optional bool enable_prebuilds = 5 [json_name = "enablePrebuilds"]; + * @param value The enablePrebuilds to set. + * @return This builder for chaining. + */ + public Builder setEnablePrebuilds(boolean value) { + + enablePrebuilds_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional bool enable_prebuilds = 5 [json_name = "enablePrebuilds"]; + * @return This builder for chaining. + */ + public Builder clearEnablePrebuilds() { + bitField0_ = (bitField0_ & ~0x00000001); + enablePrebuilds_ = false; + onChanged(); + return this; + } + + private java.lang.Object branchMatchingPattern_ = ""; + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return Whether the branchMatchingPattern field is set. + */ + public boolean hasBranchMatchingPattern() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return The branchMatchingPattern. + */ + public java.lang.String getBranchMatchingPattern() { + java.lang.Object ref = branchMatchingPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branchMatchingPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return The bytes for branchMatchingPattern. + */ + public com.google.protobuf.ByteString + getBranchMatchingPatternBytes() { + java.lang.Object ref = branchMatchingPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branchMatchingPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @param value The branchMatchingPattern to set. + * @return This builder for chaining. + */ + public Builder setBranchMatchingPattern( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + branchMatchingPattern_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @return This builder for chaining. + */ + public Builder clearBranchMatchingPattern() { + branchMatchingPattern_ = getDefaultInstance().getBranchMatchingPattern(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string branch_matching_pattern = 7 [json_name = "branchMatchingPattern"]; + * @param value The bytes for branchMatchingPattern to set. + * @return This builder for chaining. + */ + public Builder setBranchMatchingPatternBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + branchMatchingPattern_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object branchStrategy_ = ""; + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return Whether the branchStrategy field is set. + */ + public boolean hasBranchStrategy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return The branchStrategy. + */ + public java.lang.String getBranchStrategy() { + java.lang.Object ref = branchStrategy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branchStrategy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return The bytes for branchStrategy. + */ + public com.google.protobuf.ByteString + getBranchStrategyBytes() { + java.lang.Object ref = branchStrategy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branchStrategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @param value The branchStrategy to set. + * @return This builder for chaining. + */ + public Builder setBranchStrategy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + branchStrategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @return This builder for chaining. + */ + public Builder clearBranchStrategy() { + branchStrategy_ = getDefaultInstance().getBranchStrategy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string branch_strategy = 8 [json_name = "branchStrategy"]; + * @param value The bytes for branchStrategy to set. + * @return This builder for chaining. + */ + public Builder setBranchStrategyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + branchStrategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int prebuildInterval_ ; + /** + * optional int32 prebuild_interval = 9 [json_name = "prebuildInterval"]; + * @return Whether the prebuildInterval field is set. + */ + @java.lang.Override + public boolean hasPrebuildInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int32 prebuild_interval = 9 [json_name = "prebuildInterval"]; + * @return The prebuildInterval. + */ + @java.lang.Override + public int getPrebuildInterval() { + return prebuildInterval_; + } + /** + * optional int32 prebuild_interval = 9 [json_name = "prebuildInterval"]; + * @param value The prebuildInterval to set. + * @return This builder for chaining. + */ + public Builder setPrebuildInterval(int value) { + + prebuildInterval_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional int32 prebuild_interval = 9 [json_name = "prebuildInterval"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildInterval() { + bitField0_ = (bitField0_ & ~0x00000008); + prebuildInterval_ = 0; + onChanged(); + return this; + } + + private java.lang.Object workspaceClass_ = ""; + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string workspace_class = 10 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.PrebuildSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.PrebuildSettings) + private static final io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuildSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.PrebuildSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * bool enable_persistent_volume_claim = 1 [json_name = "enablePersistentVolumeClaim"]; + * @return The enablePersistentVolumeClaim. + */ + boolean getEnablePersistentVolumeClaim(); + + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + boolean hasWorkspaceClass(); + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings getWorkspaceClass(); + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + */ + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettingsOrBuilder getWorkspaceClassOrBuilder(); + + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @return A list containing the restrictedWorkspaceClasses. + */ + java.util.List + getRestrictedWorkspaceClassesList(); + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @return The count of restrictedWorkspaceClasses. + */ + int getRestrictedWorkspaceClassesCount(); + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The restrictedWorkspaceClasses at the given index. + */ + java.lang.String getRestrictedWorkspaceClasses(int index); + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedWorkspaceClasses at the given index. + */ + com.google.protobuf.ByteString + getRestrictedWorkspaceClassesBytes(int index); + + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + java.util.List + getRestrictedEditorNamesList(); + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + int getRestrictedEditorNamesCount(); + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + java.lang.String getRestrictedEditorNames(int index); + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index); + } + /** + * Protobuf type {@code gitpod.experimental.v1.WorkspaceSettings} + */ + public static final class WorkspaceSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceSettings) + WorkspaceSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceSettings.class.getName()); + } + // Use WorkspaceSettings.newBuilder() to construct. + private WorkspaceSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceSettings() { + restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.class, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_PERSISTENT_VOLUME_CLAIM_FIELD_NUMBER = 1; + private boolean enablePersistentVolumeClaim_ = false; + /** + * bool enable_persistent_volume_claim = 1 [json_name = "enablePersistentVolumeClaim"]; + * @return The enablePersistentVolumeClaim. + */ + @java.lang.Override + public boolean getEnablePersistentVolumeClaim() { + return enablePersistentVolumeClaim_; + } + + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings workspaceClass_; + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + @java.lang.Override + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings getWorkspaceClass() { + return workspaceClass_ == null ? io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.getDefaultInstance() : workspaceClass_; + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettingsOrBuilder getWorkspaceClassOrBuilder() { + return workspaceClass_ == null ? io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.getDefaultInstance() : workspaceClass_; + } + + public static final int RESTRICTED_WORKSPACE_CLASSES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @return A list containing the restrictedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedWorkspaceClassesList() { + return restrictedWorkspaceClasses_; + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @return The count of restrictedWorkspaceClasses. + */ + public int getRestrictedWorkspaceClassesCount() { + return restrictedWorkspaceClasses_.size(); + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The restrictedWorkspaceClasses at the given index. + */ + public java.lang.String getRestrictedWorkspaceClasses(int index) { + return restrictedWorkspaceClasses_.get(index); + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedWorkspaceClassesBytes(int index) { + return restrictedWorkspaceClasses_.getByteString(index); + } + + public static final int RESTRICTED_EDITOR_NAMES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + return restrictedEditorNames_; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enablePersistentVolumeClaim_ != false) { + output.writeBool(1, enablePersistentVolumeClaim_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getWorkspaceClass()); + } + for (int i = 0; i < restrictedWorkspaceClasses_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, restrictedWorkspaceClasses_.getRaw(i)); + } + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, restrictedEditorNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enablePersistentVolumeClaim_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enablePersistentVolumeClaim_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkspaceClass()); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedWorkspaceClasses_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedWorkspaceClasses_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedWorkspaceClassesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedEditorNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedEditorNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings other = (io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings) obj; + + if (getEnablePersistentVolumeClaim() + != other.getEnablePersistentVolumeClaim()) return false; + if (hasWorkspaceClass() != other.hasWorkspaceClass()) return false; + if (hasWorkspaceClass()) { + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + } + if (!getRestrictedWorkspaceClassesList() + .equals(other.getRestrictedWorkspaceClassesList())) return false; + if (!getRestrictedEditorNamesList() + .equals(other.getRestrictedEditorNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_PERSISTENT_VOLUME_CLAIM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePersistentVolumeClaim()); + if (hasWorkspaceClass()) { + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + } + if (getRestrictedWorkspaceClassesCount() > 0) { + hash = (37 * hash) + RESTRICTED_WORKSPACE_CLASSES_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedWorkspaceClassesList().hashCode(); + } + if (getRestrictedEditorNamesCount() > 0) { + hash = (37 * hash) + RESTRICTED_EDITOR_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedEditorNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.WorkspaceSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceSettings) + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.class, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getWorkspaceClassFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enablePersistentVolumeClaim_ = false; + workspaceClass_ = null; + if (workspaceClassBuilder_ != null) { + workspaceClassBuilder_.dispose(); + workspaceClassBuilder_ = null; + } + restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings build() { + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings result = new io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePersistentVolumeClaim_ = enablePersistentVolumeClaim_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspaceClass_ = workspaceClassBuilder_ == null + ? workspaceClass_ + : workspaceClassBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + restrictedWorkspaceClasses_.makeImmutable(); + result.restrictedWorkspaceClasses_ = restrictedWorkspaceClasses_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + restrictedEditorNames_.makeImmutable(); + result.restrictedEditorNames_ = restrictedEditorNames_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings.getDefaultInstance()) return this; + if (other.getEnablePersistentVolumeClaim() != false) { + setEnablePersistentVolumeClaim(other.getEnablePersistentVolumeClaim()); + } + if (other.hasWorkspaceClass()) { + mergeWorkspaceClass(other.getWorkspaceClass()); + } + if (!other.restrictedWorkspaceClasses_.isEmpty()) { + if (restrictedWorkspaceClasses_.isEmpty()) { + restrictedWorkspaceClasses_ = other.restrictedWorkspaceClasses_; + bitField0_ |= 0x00000004; + } else { + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.addAll(other.restrictedWorkspaceClasses_); + } + onChanged(); + } + if (!other.restrictedEditorNames_.isEmpty()) { + if (restrictedEditorNames_.isEmpty()) { + restrictedEditorNames_ = other.restrictedEditorNames_; + bitField0_ |= 0x00000008; + } else { + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.addAll(other.restrictedEditorNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enablePersistentVolumeClaim_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getWorkspaceClassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(s); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enablePersistentVolumeClaim_ ; + /** + * bool enable_persistent_volume_claim = 1 [json_name = "enablePersistentVolumeClaim"]; + * @return The enablePersistentVolumeClaim. + */ + @java.lang.Override + public boolean getEnablePersistentVolumeClaim() { + return enablePersistentVolumeClaim_; + } + /** + * bool enable_persistent_volume_claim = 1 [json_name = "enablePersistentVolumeClaim"]; + * @param value The enablePersistentVolumeClaim to set. + * @return This builder for chaining. + */ + public Builder setEnablePersistentVolumeClaim(boolean value) { + + enablePersistentVolumeClaim_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool enable_persistent_volume_claim = 1 [json_name = "enablePersistentVolumeClaim"]; + * @return This builder for chaining. + */ + public Builder clearEnablePersistentVolumeClaim() { + bitField0_ = (bitField0_ & ~0x00000001); + enablePersistentVolumeClaim_ = false; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings workspaceClass_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettingsOrBuilder> workspaceClassBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings getWorkspaceClass() { + if (workspaceClassBuilder_ == null) { + return workspaceClass_ == null ? io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.getDefaultInstance() : workspaceClass_; + } else { + return workspaceClassBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + */ + public Builder setWorkspaceClass(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings value) { + if (workspaceClassBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspaceClass_ = value; + } else { + workspaceClassBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + */ + public Builder setWorkspaceClass( + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.Builder builderForValue) { + if (workspaceClassBuilder_ == null) { + workspaceClass_ = builderForValue.build(); + } else { + workspaceClassBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + */ + public Builder mergeWorkspaceClass(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings value) { + if (workspaceClassBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + workspaceClass_ != null && + workspaceClass_ != io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.getDefaultInstance()) { + getWorkspaceClassBuilder().mergeFrom(value); + } else { + workspaceClass_ = value; + } + } else { + workspaceClassBuilder_.mergeFrom(value); + } + if (workspaceClass_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + */ + public Builder clearWorkspaceClass() { + bitField0_ = (bitField0_ & ~0x00000002); + workspaceClass_ = null; + if (workspaceClassBuilder_ != null) { + workspaceClassBuilder_.dispose(); + workspaceClassBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.Builder getWorkspaceClassBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWorkspaceClassFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettingsOrBuilder getWorkspaceClassOrBuilder() { + if (workspaceClassBuilder_ != null) { + return workspaceClassBuilder_.getMessageOrBuilder(); + } else { + return workspaceClass_ == null ? + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.getDefaultInstance() : workspaceClass_; + } + } + /** + * .gitpod.experimental.v1.WorkspaceClassSettings workspace_class = 2 [json_name = "workspaceClass"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettingsOrBuilder> + getWorkspaceClassFieldBuilder() { + if (workspaceClassBuilder_ == null) { + workspaceClassBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.Builder, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettingsOrBuilder>( + getWorkspaceClass(), + getParentForChildren(), + isClean()); + workspaceClass_ = null; + } + return workspaceClassBuilder_; + } + + private com.google.protobuf.LazyStringArrayList restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedWorkspaceClassesIsMutable() { + if (!restrictedWorkspaceClasses_.isModifiable()) { + restrictedWorkspaceClasses_ = new com.google.protobuf.LazyStringArrayList(restrictedWorkspaceClasses_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @return A list containing the restrictedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedWorkspaceClassesList() { + restrictedWorkspaceClasses_.makeImmutable(); + return restrictedWorkspaceClasses_; + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @return The count of restrictedWorkspaceClasses. + */ + public int getRestrictedWorkspaceClassesCount() { + return restrictedWorkspaceClasses_.size(); + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The restrictedWorkspaceClasses at the given index. + */ + public java.lang.String getRestrictedWorkspaceClasses(int index) { + return restrictedWorkspaceClasses_.get(index); + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedWorkspaceClassesBytes(int index) { + return restrictedWorkspaceClasses_.getByteString(index); + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index to set the value at. + * @param value The restrictedWorkspaceClasses to set. + * @return This builder for chaining. + */ + public Builder setRestrictedWorkspaceClasses( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param value The restrictedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addRestrictedWorkspaceClasses( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param values The restrictedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedWorkspaceClasses( + java.lang.Iterable values) { + ensureRestrictedWorkspaceClassesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedWorkspaceClasses_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @return This builder for chaining. + */ + public Builder clearRestrictedWorkspaceClasses() { + restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string restricted_workspace_classes = 3 [json_name = "restrictedWorkspaceClasses"]; + * @param value The bytes of the restrictedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addRestrictedWorkspaceClassesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedEditorNamesIsMutable() { + if (!restrictedEditorNames_.isModifiable()) { + restrictedEditorNames_ = new com.google.protobuf.LazyStringArrayList(restrictedEditorNames_); + } + bitField0_ |= 0x00000008; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + restrictedEditorNames_.makeImmutable(); + return restrictedEditorNames_; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index to set the value at. + * @param value The restrictedEditorNames to set. + * @return This builder for chaining. + */ + public Builder setRestrictedEditorNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param value The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param values The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedEditorNames( + java.lang.Iterable values) { + ensureRestrictedEditorNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedEditorNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return This builder for chaining. + */ + public Builder clearRestrictedEditorNames() { + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param value The bytes of the restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceSettings) + private static final io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceClassSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceClassSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * string regular = 1 [json_name = "regular"]; + * @return The regular. + */ + java.lang.String getRegular(); + /** + * string regular = 1 [json_name = "regular"]; + * @return The bytes for regular. + */ + com.google.protobuf.ByteString + getRegularBytes(); + + /** + * string prebuild = 2 [json_name = "prebuild"]; + * @return The prebuild. + */ + java.lang.String getPrebuild(); + /** + * string prebuild = 2 [json_name = "prebuild"]; + * @return The bytes for prebuild. + */ + com.google.protobuf.ByteString + getPrebuildBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.WorkspaceClassSettings} + */ + public static final class WorkspaceClassSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceClassSettings) + WorkspaceClassSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceClassSettings.class.getName()); + } + // Use WorkspaceClassSettings.newBuilder() to construct. + private WorkspaceClassSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceClassSettings() { + regular_ = ""; + prebuild_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceClassSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceClassSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.class, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.Builder.class); + } + + public static final int REGULAR_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object regular_ = ""; + /** + * string regular = 1 [json_name = "regular"]; + * @return The regular. + */ + @java.lang.Override + public java.lang.String getRegular() { + java.lang.Object ref = regular_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regular_ = s; + return s; + } + } + /** + * string regular = 1 [json_name = "regular"]; + * @return The bytes for regular. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegularBytes() { + java.lang.Object ref = regular_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regular_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREBUILD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object prebuild_ = ""; + /** + * string prebuild = 2 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public java.lang.String getPrebuild() { + java.lang.Object ref = prebuild_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuild_ = s; + return s; + } + } + /** + * string prebuild = 2 [json_name = "prebuild"]; + * @return The bytes for prebuild. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrebuildBytes() { + java.lang.Object ref = prebuild_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuild_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regular_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, regular_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuild_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, prebuild_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regular_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, regular_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuild_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, prebuild_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings other = (io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings) obj; + + if (!getRegular() + .equals(other.getRegular())) return false; + if (!getPrebuild() + .equals(other.getPrebuild())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGULAR_FIELD_NUMBER; + hash = (53 * hash) + getRegular().hashCode(); + hash = (37 * hash) + PREBUILD_FIELD_NUMBER; + hash = (53 * hash) + getPrebuild().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.WorkspaceClassSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceClassSettings) + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceClassSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceClassSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.class, io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + regular_ = ""; + prebuild_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_WorkspaceClassSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings build() { + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings result = new io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.regular_ = regular_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.prebuild_ = prebuild_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings.getDefaultInstance()) return this; + if (!other.getRegular().isEmpty()) { + regular_ = other.regular_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPrebuild().isEmpty()) { + prebuild_ = other.prebuild_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + regular_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + prebuild_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object regular_ = ""; + /** + * string regular = 1 [json_name = "regular"]; + * @return The regular. + */ + public java.lang.String getRegular() { + java.lang.Object ref = regular_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regular_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string regular = 1 [json_name = "regular"]; + * @return The bytes for regular. + */ + public com.google.protobuf.ByteString + getRegularBytes() { + java.lang.Object ref = regular_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regular_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string regular = 1 [json_name = "regular"]; + * @param value The regular to set. + * @return This builder for chaining. + */ + public Builder setRegular( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + regular_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string regular = 1 [json_name = "regular"]; + * @return This builder for chaining. + */ + public Builder clearRegular() { + regular_ = getDefaultInstance().getRegular(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string regular = 1 [json_name = "regular"]; + * @param value The bytes for regular to set. + * @return This builder for chaining. + */ + public Builder setRegularBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + regular_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object prebuild_ = ""; + /** + * string prebuild = 2 [json_name = "prebuild"]; + * @return The prebuild. + */ + public java.lang.String getPrebuild() { + java.lang.Object ref = prebuild_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuild_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prebuild = 2 [json_name = "prebuild"]; + * @return The bytes for prebuild. + */ + public com.google.protobuf.ByteString + getPrebuildBytes() { + java.lang.Object ref = prebuild_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuild_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prebuild = 2 [json_name = "prebuild"]; + * @param value The prebuild to set. + * @return This builder for chaining. + */ + public Builder setPrebuild( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prebuild_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string prebuild = 2 [json_name = "prebuild"]; + * @return This builder for chaining. + */ + public Builder clearPrebuild() { + prebuild_ = getDefaultInstance().getPrebuild(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string prebuild = 2 [json_name = "prebuild"]; + * @param value The bytes for prebuild to set. + * @return This builder for chaining. + */ + public Builder setPrebuildBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prebuild_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceClassSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceClassSettings) + private static final io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceClassSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.WorkspaceClassSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateProjectRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateProjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return Whether the project field is set. + */ + boolean hasProject(); + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return The project. + */ + io.gitpod.publicapi.experimental.v1.Projects.Project getProject(); + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateProjectRequest} + */ + public static final class CreateProjectRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateProjectRequest) + CreateProjectRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateProjectRequest.class.getName()); + } + // Use CreateProjectRequest.newBuilder() to construct. + private CreateProjectRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateProjectRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest.class, io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Projects.Project project_; + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return Whether the project field is set. + */ + @java.lang.Override + public boolean hasProject() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return The project. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.Project getProject() { + return project_ == null ? io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectOrBuilder() { + return project_ == null ? io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getProject()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProject()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest other = (io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest) obj; + + if (hasProject() != other.hasProject()) return false; + if (hasProject()) { + if (!getProject() + .equals(other.getProject())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProject()) { + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateProjectRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateProjectRequest) + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest.class, io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getProjectFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = null; + if (projectBuilder_ != null) { + projectBuilder_.dispose(); + projectBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest build() { + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest result = new io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = projectBuilder_ == null + ? project_ + : projectBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest.getDefaultInstance()) return this; + if (other.hasProject()) { + mergeProject(other.getProject()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getProjectFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Projects.Project project_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder> projectBuilder_; + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return Whether the project field is set. + */ + public boolean hasProject() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return The project. + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project getProject() { + if (projectBuilder_ == null) { + return project_ == null ? io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } else { + return projectBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder setProject(io.gitpod.publicapi.experimental.v1.Projects.Project value) { + if (projectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + } else { + projectBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder setProject( + io.gitpod.publicapi.experimental.v1.Projects.Project.Builder builderForValue) { + if (projectBuilder_ == null) { + project_ = builderForValue.build(); + } else { + projectBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder mergeProject(io.gitpod.publicapi.experimental.v1.Projects.Project value) { + if (projectBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + project_ != null && + project_ != io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance()) { + getProjectBuilder().mergeFrom(value); + } else { + project_ = value; + } + } else { + projectBuilder_.mergeFrom(value); + } + if (project_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder clearProject() { + bitField0_ = (bitField0_ & ~0x00000001); + project_ = null; + if (projectBuilder_ != null) { + projectBuilder_.dispose(); + projectBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project.Builder getProjectBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProjectFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectOrBuilder() { + if (projectBuilder_ != null) { + return projectBuilder_.getMessageOrBuilder(); + } else { + return project_ == null ? + io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder> + getProjectFieldBuilder() { + if (projectBuilder_ == null) { + projectBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder>( + getProject(), + getParentForChildren(), + isClean()); + project_ = null; + } + return projectBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateProjectRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateProjectRequest) + private static final io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateProjectResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateProjectResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return Whether the project field is set. + */ + boolean hasProject(); + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return The project. + */ + io.gitpod.publicapi.experimental.v1.Projects.Project getProject(); + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateProjectResponse} + */ + public static final class CreateProjectResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateProjectResponse) + CreateProjectResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateProjectResponse.class.getName()); + } + // Use CreateProjectResponse.newBuilder() to construct. + private CreateProjectResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateProjectResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse.class, io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Projects.Project project_; + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return Whether the project field is set. + */ + @java.lang.Override + public boolean hasProject() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return The project. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.Project getProject() { + return project_ == null ? io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectOrBuilder() { + return project_ == null ? io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getProject()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProject()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse other = (io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse) obj; + + if (hasProject() != other.hasProject()) return false; + if (hasProject()) { + if (!getProject() + .equals(other.getProject())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProject()) { + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateProjectResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateProjectResponse) + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse.class, io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getProjectFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = null; + if (projectBuilder_ != null) { + projectBuilder_.dispose(); + projectBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_CreateProjectResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse build() { + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse result = new io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = projectBuilder_ == null + ? project_ + : projectBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse.getDefaultInstance()) return this; + if (other.hasProject()) { + mergeProject(other.getProject()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getProjectFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Projects.Project project_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder> projectBuilder_; + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return Whether the project field is set. + */ + public boolean hasProject() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return The project. + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project getProject() { + if (projectBuilder_ == null) { + return project_ == null ? io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } else { + return projectBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder setProject(io.gitpod.publicapi.experimental.v1.Projects.Project value) { + if (projectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + } else { + projectBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder setProject( + io.gitpod.publicapi.experimental.v1.Projects.Project.Builder builderForValue) { + if (projectBuilder_ == null) { + project_ = builderForValue.build(); + } else { + projectBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder mergeProject(io.gitpod.publicapi.experimental.v1.Projects.Project value) { + if (projectBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + project_ != null && + project_ != io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance()) { + getProjectBuilder().mergeFrom(value); + } else { + project_ = value; + } + } else { + projectBuilder_.mergeFrom(value); + } + if (project_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder clearProject() { + bitField0_ = (bitField0_ & ~0x00000001); + project_ = null; + if (projectBuilder_ != null) { + projectBuilder_.dispose(); + projectBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project.Builder getProjectBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProjectFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectOrBuilder() { + if (projectBuilder_ != null) { + return projectBuilder_.getMessageOrBuilder(); + } else { + return project_ == null ? + io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder> + getProjectFieldBuilder() { + if (projectBuilder_ == null) { + projectBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder>( + getProject(), + getParentForChildren(), + isClean()); + project_ = null; + } + return projectBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateProjectResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateProjectResponse) + private static final io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProjectResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetProjectRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetProjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetProjectRequest} + */ + public static final class GetProjectRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetProjectRequest) + GetProjectRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetProjectRequest.class.getName()); + } + // Use GetProjectRequest.newBuilder() to construct. + private GetProjectRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetProjectRequest() { + projectId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest.class, io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, projectId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, projectId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest other = (io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetProjectRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetProjectRequest) + io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest.class, io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest build() { + io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest result = new io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetProjectRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetProjectRequest) + private static final io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetProjectResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetProjectResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return Whether the project field is set. + */ + boolean hasProject(); + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return The project. + */ + io.gitpod.publicapi.experimental.v1.Projects.Project getProject(); + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetProjectResponse} + */ + public static final class GetProjectResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetProjectResponse) + GetProjectResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetProjectResponse.class.getName()); + } + // Use GetProjectResponse.newBuilder() to construct. + private GetProjectResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetProjectResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse.class, io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Projects.Project project_; + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return Whether the project field is set. + */ + @java.lang.Override + public boolean hasProject() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return The project. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.Project getProject() { + return project_ == null ? io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectOrBuilder() { + return project_ == null ? io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getProject()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProject()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse other = (io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse) obj; + + if (hasProject() != other.hasProject()) return false; + if (hasProject()) { + if (!getProject() + .equals(other.getProject())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProject()) { + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetProjectResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetProjectResponse) + io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse.class, io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getProjectFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = null; + if (projectBuilder_ != null) { + projectBuilder_.dispose(); + projectBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_GetProjectResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse build() { + io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse result = new io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = projectBuilder_ == null + ? project_ + : projectBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse.getDefaultInstance()) return this; + if (other.hasProject()) { + mergeProject(other.getProject()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getProjectFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Projects.Project project_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder> projectBuilder_; + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return Whether the project field is set. + */ + public boolean hasProject() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + * @return The project. + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project getProject() { + if (projectBuilder_ == null) { + return project_ == null ? io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } else { + return projectBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder setProject(io.gitpod.publicapi.experimental.v1.Projects.Project value) { + if (projectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + } else { + projectBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder setProject( + io.gitpod.publicapi.experimental.v1.Projects.Project.Builder builderForValue) { + if (projectBuilder_ == null) { + project_ = builderForValue.build(); + } else { + projectBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder mergeProject(io.gitpod.publicapi.experimental.v1.Projects.Project value) { + if (projectBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + project_ != null && + project_ != io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance()) { + getProjectBuilder().mergeFrom(value); + } else { + project_ = value; + } + } else { + projectBuilder_.mergeFrom(value); + } + if (project_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public Builder clearProject() { + bitField0_ = (bitField0_ & ~0x00000001); + project_ = null; + if (projectBuilder_ != null) { + projectBuilder_.dispose(); + projectBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project.Builder getProjectBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProjectFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectOrBuilder() { + if (projectBuilder_ != null) { + return projectBuilder_.getMessageOrBuilder(); + } else { + return project_ == null ? + io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance() : project_; + } + } + /** + * .gitpod.experimental.v1.Project project = 1 [json_name = "project"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder> + getProjectFieldBuilder() { + if (projectBuilder_ == null) { + projectBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder>( + getProject(), + getParentForChildren(), + isClean()); + project_ = null; + } + return projectBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetProjectResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetProjectResponse) + private static final io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProjectResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListProjectsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListProjectsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Team ID filters Projects owned by team_id
+     * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The teamId. + */ + java.lang.String getTeamId(); + /** + *
+     * Team ID filters Projects owned by team_id
+     * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + com.google.protobuf.ByteString + getTeamIdBytes(); + + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination(); + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + */ + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListProjectsRequest} + */ + public static final class ListProjectsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListProjectsRequest) + ListProjectsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListProjectsRequest.class.getName()); + } + // Use ListProjectsRequest.newBuilder() to construct. + private ListProjectsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListProjectsRequest() { + teamId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest.class, io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest.Builder.class); + } + + private int bitField0_; + public static final int TEAM_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object teamId_ = ""; + /** + *
+     * Team ID filters Projects owned by team_id
+     * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The teamId. + */ + @java.lang.Override + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } + } + /** + *
+     * Team ID filters Projects owned by team_id
+     * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGINATION_FIELD_NUMBER = 3; + private io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination pagination_; + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination() { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, teamId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, teamId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest other = (io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest) obj; + + if (!getTeamId() + .equals(other.getTeamId())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamId().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListProjectsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListProjectsRequest) + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest.class, io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamId_ = ""; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest build() { + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest result = new io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamId_ = teamId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest.getDefaultInstance()) return this; + if (!other.getTeamId().isEmpty()) { + teamId_ = other.teamId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object teamId_ = ""; + /** + *
+       * Team ID filters Projects owned by team_id
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The teamId. + */ + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Team ID filters Projects owned by team_id
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Team ID filters Projects owned by team_id
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Team ID filters Projects owned by team_id
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + teamId_ = getDefaultInstance().getTeamId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Team ID filters Projects owned by team_id
+       * 
+ * + * string team_id = 2 [json_name = "teamId"]; + * @param value The bytes for teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder> paginationBuilder_; + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 3 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListProjectsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListProjectsRequest) + private static final io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProjectsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListProjectsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListProjectsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + java.util.List + getProjectsList(); + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + io.gitpod.publicapi.experimental.v1.Projects.Project getProjects(int index); + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + int getProjectsCount(); + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + java.util.List + getProjectsOrBuilderList(); + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectsOrBuilder( + int index); + + /** + * int32 total_results = 2 [json_name = "totalResults"]; + * @return The totalResults. + */ + int getTotalResults(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListProjectsResponse} + */ + public static final class ListProjectsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListProjectsResponse) + ListProjectsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListProjectsResponse.class.getName()); + } + // Use ListProjectsResponse.newBuilder() to construct. + private ListProjectsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListProjectsResponse() { + projects_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse.class, io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse.Builder.class); + } + + public static final int PROJECTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List projects_; + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + @java.lang.Override + public java.util.List getProjectsList() { + return projects_; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + @java.lang.Override + public java.util.List + getProjectsOrBuilderList() { + return projects_; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + @java.lang.Override + public int getProjectsCount() { + return projects_.size(); + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.Project getProjects(int index) { + return projects_.get(index); + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectsOrBuilder( + int index) { + return projects_.get(index); + } + + public static final int TOTAL_RESULTS_FIELD_NUMBER = 2; + private int totalResults_ = 0; + /** + * int32 total_results = 2 [json_name = "totalResults"]; + * @return The totalResults. + */ + @java.lang.Override + public int getTotalResults() { + return totalResults_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < projects_.size(); i++) { + output.writeMessage(1, projects_.get(i)); + } + if (totalResults_ != 0) { + output.writeInt32(2, totalResults_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < projects_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, projects_.get(i)); + } + if (totalResults_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, totalResults_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse other = (io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse) obj; + + if (!getProjectsList() + .equals(other.getProjectsList())) return false; + if (getTotalResults() + != other.getTotalResults()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProjectsCount() > 0) { + hash = (37 * hash) + PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getProjectsList().hashCode(); + } + hash = (37 * hash) + TOTAL_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTotalResults(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListProjectsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListProjectsResponse) + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse.class, io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + } else { + projects_ = null; + projectsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + totalResults_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_ListProjectsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse build() { + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse result = new io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse result) { + if (projectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + projects_ = java.util.Collections.unmodifiableList(projects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.projects_ = projects_; + } else { + result.projects_ = projectsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalResults_ = totalResults_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse.getDefaultInstance()) return this; + if (projectsBuilder_ == null) { + if (!other.projects_.isEmpty()) { + if (projects_.isEmpty()) { + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProjectsIsMutable(); + projects_.addAll(other.projects_); + } + onChanged(); + } + } else { + if (!other.projects_.isEmpty()) { + if (projectsBuilder_.isEmpty()) { + projectsBuilder_.dispose(); + projectsBuilder_ = null; + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + projectsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getProjectsFieldBuilder() : null; + } else { + projectsBuilder_.addAllMessages(other.projects_); + } + } + } + if (other.getTotalResults() != 0) { + setTotalResults(other.getTotalResults()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.experimental.v1.Projects.Project m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.Projects.Project.parser(), + extensionRegistry); + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(m); + } else { + projectsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + totalResults_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List projects_ = + java.util.Collections.emptyList(); + private void ensureProjectsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + projects_ = new java.util.ArrayList(projects_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder> projectsBuilder_; + + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public java.util.List getProjectsList() { + if (projectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(projects_); + } else { + return projectsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public int getProjectsCount() { + if (projectsBuilder_ == null) { + return projects_.size(); + } else { + return projectsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project getProjects(int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); + } else { + return projectsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public Builder setProjects( + int index, io.gitpod.publicapi.experimental.v1.Projects.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.set(index, value); + onChanged(); + } else { + projectsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public Builder setProjects( + int index, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.set(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public Builder addProjects(io.gitpod.publicapi.experimental.v1.Projects.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(value); + onChanged(); + } else { + projectsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public Builder addProjects( + int index, io.gitpod.publicapi.experimental.v1.Projects.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(index, value); + onChanged(); + } else { + projectsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public Builder addProjects( + io.gitpod.publicapi.experimental.v1.Projects.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public Builder addProjects( + int index, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public Builder addAllProjects( + java.lang.Iterable values) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projects_); + onChanged(); + } else { + projectsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public Builder clearProjects() { + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + projectsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public Builder removeProjects(int index) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.remove(index); + onChanged(); + } else { + projectsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project.Builder getProjectsBuilder( + int index) { + return getProjectsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder getProjectsOrBuilder( + int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); } else { + return projectsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public java.util.List + getProjectsOrBuilderList() { + if (projectsBuilder_ != null) { + return projectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(projects_); + } + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project.Builder addProjectsBuilder() { + return getProjectsFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public io.gitpod.publicapi.experimental.v1.Projects.Project.Builder addProjectsBuilder( + int index) { + return getProjectsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.Projects.Project.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.Project projects = 1 [json_name = "projects"]; + */ + public java.util.List + getProjectsBuilderList() { + return getProjectsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder> + getProjectsFieldBuilder() { + if (projectsBuilder_ == null) { + projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Projects.Project, io.gitpod.publicapi.experimental.v1.Projects.Project.Builder, io.gitpod.publicapi.experimental.v1.Projects.ProjectOrBuilder>( + projects_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + projects_ = null; + } + return projectsBuilder_; + } + + private int totalResults_ ; + /** + * int32 total_results = 2 [json_name = "totalResults"]; + * @return The totalResults. + */ + @java.lang.Override + public int getTotalResults() { + return totalResults_; + } + /** + * int32 total_results = 2 [json_name = "totalResults"]; + * @param value The totalResults to set. + * @return This builder for chaining. + */ + public Builder setTotalResults(int value) { + + totalResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 total_results = 2 [json_name = "totalResults"]; + * @return This builder for chaining. + */ + public Builder clearTotalResults() { + bitField0_ = (bitField0_ & ~0x00000002); + totalResults_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListProjectsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListProjectsResponse) + private static final io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProjectsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteProjectRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteProjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteProjectRequest} + */ + public static final class DeleteProjectRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteProjectRequest) + DeleteProjectRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteProjectRequest.class.getName()); + } + // Use DeleteProjectRequest.newBuilder() to construct. + private DeleteProjectRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteProjectRequest() { + projectId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest.class, io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, projectId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, projectId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest other = (io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteProjectRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteProjectRequest) + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest.class, io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest build() { + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest result = new io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string project_id = 1 [json_name = "projectId"]; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteProjectRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteProjectRequest) + private static final io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteProjectResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteProjectResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteProjectResponse} + */ + public static final class DeleteProjectResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteProjectResponse) + DeleteProjectResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteProjectResponse.class.getName()); + } + // Use DeleteProjectResponse.newBuilder() to construct. + private DeleteProjectResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteProjectResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse.class, io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse other = (io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteProjectResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteProjectResponse) + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse.class, io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Projects.internal_static_gitpod_experimental_v1_DeleteProjectResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse build() { + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse result = new io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteProjectResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteProjectResponse) + private static final io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProjectResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_Project_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_Project_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ProjectSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ProjectSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_PrebuildSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_PrebuildSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceClassSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceClassSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateProjectRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateProjectRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateProjectResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateProjectResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetProjectRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetProjectRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetProjectResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetProjectResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListProjectsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListProjectsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListProjectsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListProjectsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteProjectRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteProjectRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteProjectResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteProjectResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%gitpod/experimental/v1/projects.proto\022" + + "\026gitpod.experimental.v1\032\'gitpod/experime" + + "ntal/v1/pagination.proto\032\037google/protobu" + + "f/timestamp.proto\"\365\001\n\007Project\022\016\n\002id\030\001 \001(" + + "\tR\002id\022\027\n\007team_id\030\002 \001(\tR\006teamId\022\022\n\004name\030\004" + + " \001(\tR\004name\022\033\n\tclone_url\030\006 \001(\tR\010cloneUrl\022" + + "?\n\rcreation_time\030\007 \001(\0132\032.google.protobuf" + + ".TimestampR\014creationTime\022C\n\010settings\030\010 \001" + + "(\0132\'.gitpod.experimental.v1.ProjectSetti" + + "ngsR\010settingsJ\004\010\003\020\004J\004\010\005\020\006\"\240\001\n\017ProjectSet" + + "tings\022D\n\010prebuild\030\001 \001(\0132(.gitpod.experim" + + "ental.v1.PrebuildSettingsR\010prebuild\022G\n\tw" + + "orkspace\030\002 \001(\0132).gitpod.experimental.v1." + + "WorkspaceSettingsR\tworkspace\"\232\003\n\020Prebuil" + + "dSettings\022.\n\020enable_prebuilds\030\005 \001(\010H\000R\017e" + + "nablePrebuilds\210\001\001\022;\n\027branch_matching_pat" + + "tern\030\007 \001(\tH\001R\025branchMatchingPattern\210\001\001\022," + + "\n\017branch_strategy\030\010 \001(\tH\002R\016branchStrateg" + + "y\210\001\001\0220\n\021prebuild_interval\030\t \001(\005H\003R\020prebu" + + "ildInterval\210\001\001\022,\n\017workspace_class\030\n \001(\tH" + + "\004R\016workspaceClass\210\001\001B\023\n\021_enable_prebuild" + + "sB\032\n\030_branch_matching_patternB\022\n\020_branch" + + "_strategyB\024\n\022_prebuild_intervalB\022\n\020_work" + + "space_classJ\004\010\001\020\002J\004\010\002\020\003J\004\010\003\020\004J\004\010\004\020\005J\004\010\006\020" + + "\007\"\253\002\n\021WorkspaceSettings\022C\n\036enable_persis" + + "tent_volume_claim\030\001 \001(\010R\033enablePersisten" + + "tVolumeClaim\022W\n\017workspace_class\030\002 \001(\0132.." + + "gitpod.experimental.v1.WorkspaceClassSet" + + "tingsR\016workspaceClass\022@\n\034restricted_work" + + "space_classes\030\003 \003(\tR\032restrictedWorkspace" + + "Classes\0226\n\027restricted_editor_names\030\004 \003(\t" + + "R\025restrictedEditorNames\"N\n\026WorkspaceClas" + + "sSettings\022\030\n\007regular\030\001 \001(\tR\007regular\022\032\n\010p" + + "rebuild\030\002 \001(\tR\010prebuild\"Q\n\024CreateProject" + + "Request\0229\n\007project\030\001 \001(\0132\037.gitpod.experi" + + "mental.v1.ProjectR\007project\"R\n\025CreateProj" + + "ectResponse\0229\n\007project\030\001 \001(\0132\037.gitpod.ex" + + "perimental.v1.ProjectR\007project\"2\n\021GetPro" + + "jectRequest\022\035\n\nproject_id\030\001 \001(\tR\tproject" + + "Id\"O\n\022GetProjectResponse\0229\n\007project\030\001 \001(" + + "\0132\037.gitpod.experimental.v1.ProjectR\007proj" + + "ect\"x\n\023ListProjectsRequest\022\027\n\007team_id\030\002 " + + "\001(\tR\006teamId\022B\n\npagination\030\003 \001(\0132\".gitpod" + + ".experimental.v1.PaginationR\npaginationJ" + + "\004\010\001\020\002\"x\n\024ListProjectsResponse\022;\n\010project" + + "s\030\001 \003(\0132\037.gitpod.experimental.v1.Project" + + "R\010projects\022#\n\rtotal_results\030\002 \001(\005R\014total" + + "Results\"5\n\024DeleteProjectRequest\022\035\n\nproje" + + "ct_id\030\001 \001(\tR\tprojectId\"\027\n\025DeleteProjectR" + + "esponse2\305\003\n\017ProjectsService\022n\n\rCreatePro" + + "ject\022,.gitpod.experimental.v1.CreateProj" + + "ectRequest\032-.gitpod.experimental.v1.Crea" + + "teProjectResponse\"\000\022e\n\nGetProject\022).gitp" + + "od.experimental.v1.GetProjectRequest\032*.g" + + "itpod.experimental.v1.GetProjectResponse" + + "\"\000\022k\n\014ListProjects\022+.gitpod.experimental" + + ".v1.ListProjectsRequest\032,.gitpod.experim" + + "ental.v1.ListProjectsResponse\"\000\022n\n\rDelet" + + "eProject\022,.gitpod.experimental.v1.Delete" + + "ProjectRequest\032-.gitpod.experimental.v1." + + "DeleteProjectResponse\"\000Bk\n#io.gitpod.pub" + + "licapi.experimental.v1ZDgithub.com/gitpo" + + "d-io/gitpod/components/public-api/go/exp" + + "erimental/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_experimental_v1_Project_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_Project_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_Project_descriptor, + new java.lang.String[] { "Id", "TeamId", "Name", "CloneUrl", "CreationTime", "Settings", }); + internal_static_gitpod_experimental_v1_ProjectSettings_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_ProjectSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ProjectSettings_descriptor, + new java.lang.String[] { "Prebuild", "Workspace", }); + internal_static_gitpod_experimental_v1_PrebuildSettings_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_experimental_v1_PrebuildSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_PrebuildSettings_descriptor, + new java.lang.String[] { "EnablePrebuilds", "BranchMatchingPattern", "BranchStrategy", "PrebuildInterval", "WorkspaceClass", }); + internal_static_gitpod_experimental_v1_WorkspaceSettings_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_experimental_v1_WorkspaceSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceSettings_descriptor, + new java.lang.String[] { "EnablePersistentVolumeClaim", "WorkspaceClass", "RestrictedWorkspaceClasses", "RestrictedEditorNames", }); + internal_static_gitpod_experimental_v1_WorkspaceClassSettings_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_experimental_v1_WorkspaceClassSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceClassSettings_descriptor, + new java.lang.String[] { "Regular", "Prebuild", }); + internal_static_gitpod_experimental_v1_CreateProjectRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_experimental_v1_CreateProjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateProjectRequest_descriptor, + new java.lang.String[] { "Project", }); + internal_static_gitpod_experimental_v1_CreateProjectResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_experimental_v1_CreateProjectResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateProjectResponse_descriptor, + new java.lang.String[] { "Project", }); + internal_static_gitpod_experimental_v1_GetProjectRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_experimental_v1_GetProjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetProjectRequest_descriptor, + new java.lang.String[] { "ProjectId", }); + internal_static_gitpod_experimental_v1_GetProjectResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_experimental_v1_GetProjectResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetProjectResponse_descriptor, + new java.lang.String[] { "Project", }); + internal_static_gitpod_experimental_v1_ListProjectsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_experimental_v1_ListProjectsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListProjectsRequest_descriptor, + new java.lang.String[] { "TeamId", "Pagination", }); + internal_static_gitpod_experimental_v1_ListProjectsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_experimental_v1_ListProjectsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListProjectsResponse_descriptor, + new java.lang.String[] { "Projects", "TotalResults", }); + internal_static_gitpod_experimental_v1_DeleteProjectRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_experimental_v1_DeleteProjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteProjectRequest_descriptor, + new java.lang.String[] { "ProjectId", }); + internal_static_gitpod_experimental_v1_DeleteProjectResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_experimental_v1_DeleteProjectResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteProjectResponse_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/ProjectsServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/ProjectsServiceClient.kt new file mode 100644 index 00000000000000..bb8d7d606bd613 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/ProjectsServiceClient.kt @@ -0,0 +1,83 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/projects.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class ProjectsServiceClient( + private val client: ProtocolClientInterface, +) : ProjectsServiceClientInterface { + /** + * Creates a new project. + */ + override suspend fun createProject(request: Projects.CreateProjectRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.ProjectsService/CreateProject", + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectRequest::class, + io.gitpod.publicapi.experimental.v1.Projects.CreateProjectResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Retrieves a project. + */ + override suspend fun getProject(request: Projects.GetProjectRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.ProjectsService/GetProject", + io.gitpod.publicapi.experimental.v1.Projects.GetProjectRequest::class, + io.gitpod.publicapi.experimental.v1.Projects.GetProjectResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Lists projects. + */ + override suspend fun listProjects(request: Projects.ListProjectsRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.ProjectsService/ListProjects", + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsRequest::class, + io.gitpod.publicapi.experimental.v1.Projects.ListProjectsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Deletes a project. + */ + override suspend fun deleteProject(request: Projects.DeleteProjectRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.ProjectsService/DeleteProject", + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectRequest::class, + io.gitpod.publicapi.experimental.v1.Projects.DeleteProjectResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/ProjectsServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/ProjectsServiceClientInterface.kt new file mode 100644 index 00000000000000..5fb8b516c57d28 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/ProjectsServiceClientInterface.kt @@ -0,0 +1,38 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/projects.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface ProjectsServiceClientInterface { + /** + * Creates a new project. + */ + public suspend fun createProject(request: Projects.CreateProjectRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * Retrieves a project. + */ + public suspend fun getProject(request: Projects.GetProjectRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * Lists projects. + */ + public suspend fun listProjects(request: Projects.ListProjectsRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * Deletes a project. + */ + public suspend fun deleteProject(request: Projects.DeleteProjectRequest, headers: Headers = + emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/SCMServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/SCMServiceClient.kt new file mode 100644 index 00000000000000..a1593626035fc4 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/SCMServiceClient.kt @@ -0,0 +1,36 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/scm.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class SCMServiceClient( + private val client: ProtocolClientInterface, +) : SCMServiceClientInterface { + /** + * GetSuggestedRepoURLs returns a list of suggested repositories to open for + * the user. + */ + override suspend fun getSuggestedRepoURLs(request: Scm.GetSuggestedRepoURLsRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.SCMService/GetSuggestedRepoURLs", + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest::class, + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/SCMServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/SCMServiceClientInterface.kt new file mode 100644 index 00000000000000..f03c18d48d1b5d --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/SCMServiceClientInterface.kt @@ -0,0 +1,21 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/scm.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface SCMServiceClientInterface { + /** + * GetSuggestedRepoURLs returns a list of suggested repositories to open for + * the user. + */ + public suspend fun getSuggestedRepoURLs(request: Scm.GetSuggestedRepoURLsRequest, headers: Headers + = emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Scm.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Scm.java new file mode 100644 index 00000000000000..d9369a7055e40c --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Scm.java @@ -0,0 +1,1014 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/scm.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class Scm { + private Scm() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Scm.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GetSuggestedRepoURLsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetSuggestedRepoURLsRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetSuggestedRepoURLsRequest} + */ + public static final class GetSuggestedRepoURLsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetSuggestedRepoURLsRequest) + GetSuggestedRepoURLsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetSuggestedRepoURLsRequest.class.getName()); + } + // Use GetSuggestedRepoURLsRequest.newBuilder() to construct. + private GetSuggestedRepoURLsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetSuggestedRepoURLsRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest.class, io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest other = (io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetSuggestedRepoURLsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetSuggestedRepoURLsRequest) + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest.class, io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest build() { + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest result = new io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetSuggestedRepoURLsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetSuggestedRepoURLsRequest) + private static final io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSuggestedRepoURLsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetSuggestedRepoURLsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetSuggestedRepoURLsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string repos = 1 [json_name = "repos"]; + * @return A list containing the repos. + */ + java.util.List + getReposList(); + /** + * repeated string repos = 1 [json_name = "repos"]; + * @return The count of repos. + */ + int getReposCount(); + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param index The index of the element to return. + * @return The repos at the given index. + */ + java.lang.String getRepos(int index); + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param index The index of the value to return. + * @return The bytes of the repos at the given index. + */ + com.google.protobuf.ByteString + getReposBytes(int index); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetSuggestedRepoURLsResponse} + */ + public static final class GetSuggestedRepoURLsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetSuggestedRepoURLsResponse) + GetSuggestedRepoURLsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetSuggestedRepoURLsResponse.class.getName()); + } + // Use GetSuggestedRepoURLsResponse.newBuilder() to construct. + private GetSuggestedRepoURLsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetSuggestedRepoURLsResponse() { + repos_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse.class, io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse.Builder.class); + } + + public static final int REPOS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList repos_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string repos = 1 [json_name = "repos"]; + * @return A list containing the repos. + */ + public com.google.protobuf.ProtocolStringList + getReposList() { + return repos_; + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @return The count of repos. + */ + public int getReposCount() { + return repos_.size(); + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param index The index of the element to return. + * @return The repos at the given index. + */ + public java.lang.String getRepos(int index) { + return repos_.get(index); + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param index The index of the value to return. + * @return The bytes of the repos at the given index. + */ + public com.google.protobuf.ByteString + getReposBytes(int index) { + return repos_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < repos_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, repos_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < repos_.size(); i++) { + dataSize += computeStringSizeNoTag(repos_.getRaw(i)); + } + size += dataSize; + size += 1 * getReposList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse other = (io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse) obj; + + if (!getReposList() + .equals(other.getReposList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReposCount() > 0) { + hash = (37 * hash) + REPOS_FIELD_NUMBER; + hash = (53 * hash) + getReposList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetSuggestedRepoURLsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetSuggestedRepoURLsResponse) + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse.class, io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + repos_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Scm.internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse build() { + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse result = new io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + repos_.makeImmutable(); + result.repos_ = repos_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse.getDefaultInstance()) return this; + if (!other.repos_.isEmpty()) { + if (repos_.isEmpty()) { + repos_ = other.repos_; + bitField0_ |= 0x00000001; + } else { + ensureReposIsMutable(); + repos_.addAll(other.repos_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureReposIsMutable(); + repos_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList repos_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureReposIsMutable() { + if (!repos_.isModifiable()) { + repos_ = new com.google.protobuf.LazyStringArrayList(repos_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @return A list containing the repos. + */ + public com.google.protobuf.ProtocolStringList + getReposList() { + repos_.makeImmutable(); + return repos_; + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @return The count of repos. + */ + public int getReposCount() { + return repos_.size(); + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param index The index of the element to return. + * @return The repos at the given index. + */ + public java.lang.String getRepos(int index) { + return repos_.get(index); + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param index The index of the value to return. + * @return The bytes of the repos at the given index. + */ + public com.google.protobuf.ByteString + getReposBytes(int index) { + return repos_.getByteString(index); + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param index The index to set the value at. + * @param value The repos to set. + * @return This builder for chaining. + */ + public Builder setRepos( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureReposIsMutable(); + repos_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param value The repos to add. + * @return This builder for chaining. + */ + public Builder addRepos( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureReposIsMutable(); + repos_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param values The repos to add. + * @return This builder for chaining. + */ + public Builder addAllRepos( + java.lang.Iterable values) { + ensureReposIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, repos_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @return This builder for chaining. + */ + public Builder clearRepos() { + repos_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string repos = 1 [json_name = "repos"]; + * @param value The bytes of the repos to add. + * @return This builder for chaining. + */ + public Builder addReposBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureReposIsMutable(); + repos_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetSuggestedRepoURLsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetSuggestedRepoURLsResponse) + private static final io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSuggestedRepoURLsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Scm.GetSuggestedRepoURLsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n gitpod/experimental/v1/scm.proto\022\026gitp" + + "od.experimental.v1\"\035\n\033GetSuggestedRepoUR" + + "LsRequest\"4\n\034GetSuggestedRepoURLsRespons" + + "e\022\024\n\005repos\030\001 \003(\tR\005repos2\222\001\n\nSCMService\022\203" + + "\001\n\024GetSuggestedRepoURLs\0223.gitpod.experim" + + "ental.v1.GetSuggestedRepoURLsRequest\0324.g" + + "itpod.experimental.v1.GetSuggestedRepoUR" + + "LsResponse\"\000Bk\n#io.gitpod.publicapi.expe" + + "rimental.v1ZDgithub.com/gitpod-io/gitpod" + + "/components/public-api/go/experimental/v" + + "1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetSuggestedRepoURLsResponse_descriptor, + new java.lang.String[] { "Repos", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Stats.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Stats.java new file mode 100644 index 00000000000000..76a3e569ddf2e0 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Stats.java @@ -0,0 +1,891 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/stats.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class Stats { + private Stats() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Stats.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GetUserStatsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetUserStatsRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetUserStatsRequest} + */ + public static final class GetUserStatsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetUserStatsRequest) + GetUserStatsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetUserStatsRequest.class.getName()); + } + // Use GetUserStatsRequest.newBuilder() to construct. + private GetUserStatsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetUserStatsRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest.class, io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest other = (io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetUserStatsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetUserStatsRequest) + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest.class, io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest build() { + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest result = new io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetUserStatsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetUserStatsRequest) + private static final io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetUserStatsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetUserStatsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * All users that have an active Gitpod (not deleted) account at the time of asking.
+     * 
+ * + * uint32 registered_users = 1 [json_name = "registeredUsers"]; + * @return The registeredUsers. + */ + int getRegisteredUsers(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetUserStatsResponse} + */ + public static final class GetUserStatsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetUserStatsResponse) + GetUserStatsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetUserStatsResponse.class.getName()); + } + // Use GetUserStatsResponse.newBuilder() to construct. + private GetUserStatsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetUserStatsResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse.class, io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse.Builder.class); + } + + public static final int REGISTERED_USERS_FIELD_NUMBER = 1; + private int registeredUsers_ = 0; + /** + *
+     * All users that have an active Gitpod (not deleted) account at the time of asking.
+     * 
+ * + * uint32 registered_users = 1 [json_name = "registeredUsers"]; + * @return The registeredUsers. + */ + @java.lang.Override + public int getRegisteredUsers() { + return registeredUsers_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (registeredUsers_ != 0) { + output.writeUInt32(1, registeredUsers_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (registeredUsers_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, registeredUsers_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse other = (io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse) obj; + + if (getRegisteredUsers() + != other.getRegisteredUsers()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGISTERED_USERS_FIELD_NUMBER; + hash = (53 * hash) + getRegisteredUsers(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetUserStatsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetUserStatsResponse) + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse.class, io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + registeredUsers_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Stats.internal_static_gitpod_experimental_v1_GetUserStatsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse build() { + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse result = new io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.registeredUsers_ = registeredUsers_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse.getDefaultInstance()) return this; + if (other.getRegisteredUsers() != 0) { + setRegisteredUsers(other.getRegisteredUsers()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + registeredUsers_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int registeredUsers_ ; + /** + *
+       * All users that have an active Gitpod (not deleted) account at the time of asking.
+       * 
+ * + * uint32 registered_users = 1 [json_name = "registeredUsers"]; + * @return The registeredUsers. + */ + @java.lang.Override + public int getRegisteredUsers() { + return registeredUsers_; + } + /** + *
+       * All users that have an active Gitpod (not deleted) account at the time of asking.
+       * 
+ * + * uint32 registered_users = 1 [json_name = "registeredUsers"]; + * @param value The registeredUsers to set. + * @return This builder for chaining. + */ + public Builder setRegisteredUsers(int value) { + + registeredUsers_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * All users that have an active Gitpod (not deleted) account at the time of asking.
+       * 
+ * + * uint32 registered_users = 1 [json_name = "registeredUsers"]; + * @return This builder for chaining. + */ + public Builder clearRegisteredUsers() { + bitField0_ = (bitField0_ & ~0x00000001); + registeredUsers_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetUserStatsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetUserStatsResponse) + private static final io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetUserStatsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetUserStatsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetUserStatsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetUserStatsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\"gitpod/experimental/v1/stats.proto\022\026gi" + + "tpod.experimental.v1\"\025\n\023GetUserStatsRequ" + + "est\"A\n\024GetUserStatsResponse\022)\n\020registere" + + "d_users\030\001 \001(\rR\017registeredUsers2{\n\014StatsS" + + "ervice\022k\n\014GetUserStats\022+.gitpod.experime" + + "ntal.v1.GetUserStatsRequest\032,.gitpod.exp" + + "erimental.v1.GetUserStatsResponse\"\000Bk\n#i" + + "o.gitpod.publicapi.experimental.v1ZDgith" + + "ub.com/gitpod-io/gitpod/components/publi" + + "c-api/go/experimental/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_experimental_v1_GetUserStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_GetUserStatsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetUserStatsRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_GetUserStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_GetUserStatsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetUserStatsResponse_descriptor, + new java.lang.String[] { "RegisteredUsers", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/StatsServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/StatsServiceClient.kt new file mode 100644 index 00000000000000..6052f443fa7e00 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/StatsServiceClient.kt @@ -0,0 +1,35 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/stats.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class StatsServiceClient( + private val client: ProtocolClientInterface, +) : StatsServiceClientInterface { + /** + * Retrieves the current user stats + */ + override suspend fun getUserStats(request: Stats.GetUserStatsRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.StatsService/GetUserStats", + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsRequest::class, + io.gitpod.publicapi.experimental.v1.Stats.GetUserStatsResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/StatsServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/StatsServiceClientInterface.kt new file mode 100644 index 00000000000000..2fb6d677f92c65 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/StatsServiceClientInterface.kt @@ -0,0 +1,20 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/stats.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface StatsServiceClientInterface { + /** + * Retrieves the current user stats + */ + public suspend fun getUserStats(request: Stats.GetUserStatsRequest, headers: Headers = + emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Teams.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Teams.java new file mode 100644 index 00000000000000..0b91e36f695350 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Teams.java @@ -0,0 +1,15918 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/teams.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class Teams { + private Teams() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Teams.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code gitpod.experimental.v1.TeamRole} + */ + public enum TeamRole + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * TEAM_ROLE_UNKNOWN is the unkwnon state.
+     * 
+ * + * TEAM_ROLE_UNSPECIFIED = 0; + */ + TEAM_ROLE_UNSPECIFIED(0), + /** + *
+     * TEAM_ROLE_OWNER is the owner of the team.
+     * A team can have multiple owners, but there must always be at least one owner.
+     * 
+ * + * TEAM_ROLE_OWNER = 1; + */ + TEAM_ROLE_OWNER(1), + /** + *
+     * TEAM_ROLE_MEMBER is a regular member of a team.
+     * 
+ * + * TEAM_ROLE_MEMBER = 2; + */ + TEAM_ROLE_MEMBER(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + TeamRole.class.getName()); + } + /** + *
+     * TEAM_ROLE_UNKNOWN is the unkwnon state.
+     * 
+ * + * TEAM_ROLE_UNSPECIFIED = 0; + */ + public static final int TEAM_ROLE_UNSPECIFIED_VALUE = 0; + /** + *
+     * TEAM_ROLE_OWNER is the owner of the team.
+     * A team can have multiple owners, but there must always be at least one owner.
+     * 
+ * + * TEAM_ROLE_OWNER = 1; + */ + public static final int TEAM_ROLE_OWNER_VALUE = 1; + /** + *
+     * TEAM_ROLE_MEMBER is a regular member of a team.
+     * 
+ * + * TEAM_ROLE_MEMBER = 2; + */ + public static final int TEAM_ROLE_MEMBER_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TeamRole valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TeamRole forNumber(int value) { + switch (value) { + case 0: return TEAM_ROLE_UNSPECIFIED; + case 1: return TEAM_ROLE_OWNER; + case 2: return TEAM_ROLE_MEMBER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TeamRole> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TeamRole findValueByNumber(int number) { + return TeamRole.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.getDescriptor().getEnumTypes().get(0); + } + + private static final TeamRole[] VALUES = values(); + + public static TeamRole valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TeamRole(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.experimental.v1.TeamRole) + } + + public interface TeamOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.Team) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is a UUID of the Team
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is a UUID of the Team
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * name is the name of the Team
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the name of the Team
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * slug is the slug of the Team
+     * 
+ * + * string slug = 3 [json_name = "slug"]; + * @return The slug. + */ + java.lang.String getSlug(); + /** + *
+     * slug is the slug of the Team
+     * 
+ * + * string slug = 3 [json_name = "slug"]; + * @return The bytes for slug. + */ + com.google.protobuf.ByteString + getSlugBytes(); + + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + java.util.List + getMembersList(); + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamMember getMembers(int index); + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + int getMembersCount(); + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + java.util.List + getMembersOrBuilderList(); + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getMembersOrBuilder( + int index); + + /** + *
+     * team_invitation is the team invitation.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + * @return Whether the teamInvitation field is set. + */ + boolean hasTeamInvitation(); + /** + *
+     * team_invitation is the team invitation.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + * @return The teamInvitation. + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getTeamInvitation(); + /** + *
+     * team_invitation is the team invitation.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder getTeamInvitationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.Team} + */ + public static final class Team extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.Team) + TeamOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Team.class.getName()); + } + // Use Team.newBuilder() to construct. + private Team(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Team() { + id_ = ""; + name_ = ""; + slug_ = ""; + members_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_Team_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_Team_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.Team.class, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is a UUID of the Team
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is a UUID of the Team
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the name of the Team
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the name of the Team
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SLUG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object slug_ = ""; + /** + *
+     * slug is the slug of the Team
+     * 
+ * + * string slug = 3 [json_name = "slug"]; + * @return The slug. + */ + @java.lang.Override + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + slug_ = s; + return s; + } + } + /** + *
+     * slug is the slug of the Team
+     * 
+ * + * string slug = 3 [json_name = "slug"]; + * @return The bytes for slug. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMBERS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List members_; + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + @java.lang.Override + public java.util.List getMembersList() { + return members_; + } + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + @java.lang.Override + public java.util.List + getMembersOrBuilderList() { + return members_; + } + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + @java.lang.Override + public int getMembersCount() { + return members_.size(); + } + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getMembers(int index) { + return members_.get(index); + } + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getMembersOrBuilder( + int index) { + return members_.get(index); + } + + public static final int TEAM_INVITATION_FIELD_NUMBER = 5; + private io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation teamInvitation_; + /** + *
+     * team_invitation is the team invitation.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + * @return Whether the teamInvitation field is set. + */ + @java.lang.Override + public boolean hasTeamInvitation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * team_invitation is the team invitation.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + * @return The teamInvitation. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getTeamInvitation() { + return teamInvitation_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } + /** + *
+     * team_invitation is the team invitation.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder getTeamInvitationOrBuilder() { + return teamInvitation_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(slug_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, slug_); + } + for (int i = 0; i < members_.size(); i++) { + output.writeMessage(4, members_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getTeamInvitation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(slug_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, slug_); + } + for (int i = 0; i < members_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, members_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTeamInvitation()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.Team)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.Team other = (io.gitpod.publicapi.experimental.v1.Teams.Team) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getSlug() + .equals(other.getSlug())) return false; + if (!getMembersList() + .equals(other.getMembersList())) return false; + if (hasTeamInvitation() != other.hasTeamInvitation()) return false; + if (hasTeamInvitation()) { + if (!getTeamInvitation() + .equals(other.getTeamInvitation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SLUG_FIELD_NUMBER; + hash = (53 * hash) + getSlug().hashCode(); + if (getMembersCount() > 0) { + hash = (37 * hash) + MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getMembersList().hashCode(); + } + if (hasTeamInvitation()) { + hash = (37 * hash) + TEAM_INVITATION_FIELD_NUMBER; + hash = (53 * hash) + getTeamInvitation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.Team parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.Team prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.Team} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.Team) + io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_Team_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_Team_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.Team.class, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.Team.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getMembersFieldBuilder(); + getTeamInvitationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + name_ = ""; + slug_ = ""; + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + } else { + members_ = null; + membersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + teamInvitation_ = null; + if (teamInvitationBuilder_ != null) { + teamInvitationBuilder_.dispose(); + teamInvitationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_Team_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.Team getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.Team build() { + io.gitpod.publicapi.experimental.v1.Teams.Team result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.Team buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.Team result = new io.gitpod.publicapi.experimental.v1.Teams.Team(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.Teams.Team result) { + if (membersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.members_ = members_; + } else { + result.members_ = membersBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.Team result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.slug_ = slug_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.teamInvitation_ = teamInvitationBuilder_ == null + ? teamInvitation_ + : teamInvitationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.Team) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.Team)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.Team other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSlug().isEmpty()) { + slug_ = other.slug_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (membersBuilder_ == null) { + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + } else { + if (!other.members_.isEmpty()) { + if (membersBuilder_.isEmpty()) { + membersBuilder_.dispose(); + membersBuilder_ = null; + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000008); + membersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getMembersFieldBuilder() : null; + } else { + membersBuilder_.addAllMessages(other.members_); + } + } + } + if (other.hasTeamInvitation()) { + mergeTeamInvitation(other.getTeamInvitation()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + slug_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + io.gitpod.publicapi.experimental.v1.Teams.TeamMember m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.parser(), + extensionRegistry); + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(m); + } else { + membersBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getTeamInvitationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is a UUID of the Team
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is a UUID of the Team
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is a UUID of the Team
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is a UUID of the Team
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is a UUID of the Team
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * name is the name of the Team
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the name of the Team
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the name of the Team
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * name is the name of the Team
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * name is the name of the Team
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object slug_ = ""; + /** + *
+       * slug is the slug of the Team
+       * 
+ * + * string slug = 3 [json_name = "slug"]; + * @return The slug. + */ + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + slug_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * slug is the slug of the Team
+       * 
+ * + * string slug = 3 [json_name = "slug"]; + * @return The bytes for slug. + */ + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * slug is the slug of the Team
+       * 
+ * + * string slug = 3 [json_name = "slug"]; + * @param value The slug to set. + * @return This builder for chaining. + */ + public Builder setSlug( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + slug_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * slug is the slug of the Team
+       * 
+ * + * string slug = 3 [json_name = "slug"]; + * @return This builder for chaining. + */ + public Builder clearSlug() { + slug_ = getDefaultInstance().getSlug(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * slug is the slug of the Team
+       * 
+ * + * string slug = 3 [json_name = "slug"]; + * @param value The bytes for slug to set. + * @return This builder for chaining. + */ + public Builder setSlugBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + slug_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List members_ = + java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder> membersBuilder_; + + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public java.util.List getMembersList() { + if (membersBuilder_ == null) { + return java.util.Collections.unmodifiableList(members_); + } else { + return membersBuilder_.getMessageList(); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public int getMembersCount() { + if (membersBuilder_ == null) { + return members_.size(); + } else { + return membersBuilder_.getCount(); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getMembers(int index) { + if (membersBuilder_ == null) { + return members_.get(index); + } else { + return membersBuilder_.getMessage(index); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public Builder setMembers( + int index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + } else { + membersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public Builder setMembers( + int index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.set(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public Builder addMembers(io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + } else { + membersBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public Builder addMembers( + int index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(index, value); + onChanged(); + } else { + membersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public Builder addMembers( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public Builder addMembers( + int index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); + onChanged(); + } else { + membersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public Builder clearMembers() { + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + membersBuilder_.clear(); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public Builder removeMembers(int index) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.remove(index); + onChanged(); + } else { + membersBuilder_.remove(index); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder getMembersBuilder( + int index) { + return getMembersFieldBuilder().getBuilder(index); + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getMembersOrBuilder( + int index) { + if (membersBuilder_ == null) { + return members_.get(index); } else { + return membersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public java.util.List + getMembersOrBuilderList() { + if (membersBuilder_ != null) { + return membersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(members_); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder addMembersBuilder() { + return getMembersFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance()); + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder addMembersBuilder( + int index) { + return getMembersFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance()); + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 4 [json_name = "members"]; + */ + public java.util.List + getMembersBuilderList() { + return getMembersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder> + getMembersFieldBuilder() { + if (membersBuilder_ == null) { + membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder>( + members_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + members_ = null; + } + return membersBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation teamInvitation_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder> teamInvitationBuilder_; + /** + *
+       * team_invitation is the team invitation.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + * @return Whether the teamInvitation field is set. + */ + public boolean hasTeamInvitation() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * team_invitation is the team invitation.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + * @return The teamInvitation. + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getTeamInvitation() { + if (teamInvitationBuilder_ == null) { + return teamInvitation_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } else { + return teamInvitationBuilder_.getMessage(); + } + } + /** + *
+       * team_invitation is the team invitation.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + */ + public Builder setTeamInvitation(io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation value) { + if (teamInvitationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamInvitation_ = value; + } else { + teamInvitationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * team_invitation is the team invitation.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + */ + public Builder setTeamInvitation( + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder builderForValue) { + if (teamInvitationBuilder_ == null) { + teamInvitation_ = builderForValue.build(); + } else { + teamInvitationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * team_invitation is the team invitation.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + */ + public Builder mergeTeamInvitation(io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation value) { + if (teamInvitationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + teamInvitation_ != null && + teamInvitation_ != io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance()) { + getTeamInvitationBuilder().mergeFrom(value); + } else { + teamInvitation_ = value; + } + } else { + teamInvitationBuilder_.mergeFrom(value); + } + if (teamInvitation_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+       * team_invitation is the team invitation.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + */ + public Builder clearTeamInvitation() { + bitField0_ = (bitField0_ & ~0x00000010); + teamInvitation_ = null; + if (teamInvitationBuilder_ != null) { + teamInvitationBuilder_.dispose(); + teamInvitationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * team_invitation is the team invitation.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder getTeamInvitationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTeamInvitationFieldBuilder().getBuilder(); + } + /** + *
+       * team_invitation is the team invitation.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder getTeamInvitationOrBuilder() { + if (teamInvitationBuilder_ != null) { + return teamInvitationBuilder_.getMessageOrBuilder(); + } else { + return teamInvitation_ == null ? + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } + } + /** + *
+       * team_invitation is the team invitation.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 5 [json_name = "teamInvitation"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder> + getTeamInvitationFieldBuilder() { + if (teamInvitationBuilder_ == null) { + teamInvitationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder>( + getTeamInvitation(), + getParentForChildren(), + isClean()); + teamInvitation_ = null; + } + return teamInvitationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.Team) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.Team) + private static final io.gitpod.publicapi.experimental.v1.Teams.Team DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.Team(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.Team getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Team parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.Team getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TeamMemberOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.TeamMember) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * user_id is the identifier of the user
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + *
+     * user_id is the identifier of the user
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + *
+     * role is the role this member is assigned
+     * 
+ * + * .gitpod.experimental.v1.TeamRole role = 2 [json_name = "role"]; + * @return The enum numeric value on the wire for role. + */ + int getRoleValue(); + /** + *
+     * role is the role this member is assigned
+     * 
+ * + * .gitpod.experimental.v1.TeamRole role = 2 [json_name = "role"]; + * @return The role. + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamRole getRole(); + + /** + *
+     * member_since is the timestamp when the member joined the team
+     * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return Whether the memberSince field is set. + */ + boolean hasMemberSince(); + /** + *
+     * member_since is the timestamp when the member joined the team
+     * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return The memberSince. + */ + com.google.protobuf.Timestamp getMemberSince(); + /** + *
+     * member_since is the timestamp when the member joined the team
+     * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + com.google.protobuf.TimestampOrBuilder getMemberSinceOrBuilder(); + + /** + *
+     * avatar_url is the URL for the TeamMember
+     * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + java.lang.String getAvatarUrl(); + /** + *
+     * avatar_url is the URL for the TeamMember
+     * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + com.google.protobuf.ByteString + getAvatarUrlBytes(); + + /** + *
+     * full_name is the name of the TeamMember
+     * 
+ * + * string full_name = 5 [json_name = "fullName"]; + * @return The fullName. + */ + java.lang.String getFullName(); + /** + *
+     * full_name is the name of the TeamMember
+     * 
+ * + * string full_name = 5 [json_name = "fullName"]; + * @return The bytes for fullName. + */ + com.google.protobuf.ByteString + getFullNameBytes(); + + /** + *
+     * primary_email is the primary email of the TeamMember
+     * 
+ * + * string primary_email = 6 [json_name = "primaryEmail"]; + * @return The primaryEmail. + */ + java.lang.String getPrimaryEmail(); + /** + *
+     * primary_email is the primary email of the TeamMember
+     * 
+ * + * string primary_email = 6 [json_name = "primaryEmail"]; + * @return The bytes for primaryEmail. + */ + com.google.protobuf.ByteString + getPrimaryEmailBytes(); + + /** + *
+     * owned_by_organization indicates if the TeamMember is owned by the organization
+     * 
+ * + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @return The ownedByOrganization. + */ + boolean getOwnedByOrganization(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.TeamMember} + */ + public static final class TeamMember extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.TeamMember) + TeamMemberOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + TeamMember.class.getName()); + } + // Use TeamMember.newBuilder() to construct. + private TeamMember(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TeamMember() { + userId_ = ""; + role_ = 0; + avatarUrl_ = ""; + fullName_ = ""; + primaryEmail_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.class, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder.class); + } + + private int bitField0_; + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + *
+     * user_id is the identifier of the user
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + *
+     * user_id is the identifier of the user
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLE_FIELD_NUMBER = 2; + private int role_ = 0; + /** + *
+     * role is the role this member is assigned
+     * 
+ * + * .gitpod.experimental.v1.TeamRole role = 2 [json_name = "role"]; + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override public int getRoleValue() { + return role_; + } + /** + *
+     * role is the role this member is assigned
+     * 
+ * + * .gitpod.experimental.v1.TeamRole role = 2 [json_name = "role"]; + * @return The role. + */ + @java.lang.Override public io.gitpod.publicapi.experimental.v1.Teams.TeamRole getRole() { + io.gitpod.publicapi.experimental.v1.Teams.TeamRole result = io.gitpod.publicapi.experimental.v1.Teams.TeamRole.forNumber(role_); + return result == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamRole.UNRECOGNIZED : result; + } + + public static final int MEMBER_SINCE_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp memberSince_; + /** + *
+     * member_since is the timestamp when the member joined the team
+     * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return Whether the memberSince field is set. + */ + @java.lang.Override + public boolean hasMemberSince() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * member_since is the timestamp when the member joined the team
+     * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return The memberSince. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMemberSince() { + return memberSince_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : memberSince_; + } + /** + *
+     * member_since is the timestamp when the member joined the team
+     * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMemberSinceOrBuilder() { + return memberSince_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : memberSince_; + } + + public static final int AVATAR_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object avatarUrl_ = ""; + /** + *
+     * avatar_url is the URL for the TeamMember
+     * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + @java.lang.Override + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } + } + /** + *
+     * avatar_url is the URL for the TeamMember
+     * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULL_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object fullName_ = ""; + /** + *
+     * full_name is the name of the TeamMember
+     * 
+ * + * string full_name = 5 [json_name = "fullName"]; + * @return The fullName. + */ + @java.lang.Override + public java.lang.String getFullName() { + java.lang.Object ref = fullName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullName_ = s; + return s; + } + } + /** + *
+     * full_name is the name of the TeamMember
+     * 
+ * + * string full_name = 5 [json_name = "fullName"]; + * @return The bytes for fullName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFullNameBytes() { + java.lang.Object ref = fullName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIMARY_EMAIL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object primaryEmail_ = ""; + /** + *
+     * primary_email is the primary email of the TeamMember
+     * 
+ * + * string primary_email = 6 [json_name = "primaryEmail"]; + * @return The primaryEmail. + */ + @java.lang.Override + public java.lang.String getPrimaryEmail() { + java.lang.Object ref = primaryEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryEmail_ = s; + return s; + } + } + /** + *
+     * primary_email is the primary email of the TeamMember
+     * 
+ * + * string primary_email = 6 [json_name = "primaryEmail"]; + * @return The bytes for primaryEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrimaryEmailBytes() { + java.lang.Object ref = primaryEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNED_BY_ORGANIZATION_FIELD_NUMBER = 7; + private boolean ownedByOrganization_ = false; + /** + *
+     * owned_by_organization indicates if the TeamMember is owned by the organization
+     * 
+ * + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @return The ownedByOrganization. + */ + @java.lang.Override + public boolean getOwnedByOrganization() { + return ownedByOrganization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + if (role_ != io.gitpod.publicapi.experimental.v1.Teams.TeamRole.TEAM_ROLE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, role_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMemberSince()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, avatarUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, fullName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(primaryEmail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, primaryEmail_); + } + if (ownedByOrganization_ != false) { + output.writeBool(7, ownedByOrganization_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + if (role_ != io.gitpod.publicapi.experimental.v1.Teams.TeamRole.TEAM_ROLE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, role_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMemberSince()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, avatarUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, fullName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(primaryEmail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, primaryEmail_); + } + if (ownedByOrganization_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, ownedByOrganization_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.TeamMember)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.TeamMember other = (io.gitpod.publicapi.experimental.v1.Teams.TeamMember) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (role_ != other.role_) return false; + if (hasMemberSince() != other.hasMemberSince()) return false; + if (hasMemberSince()) { + if (!getMemberSince() + .equals(other.getMemberSince())) return false; + } + if (!getAvatarUrl() + .equals(other.getAvatarUrl())) return false; + if (!getFullName() + .equals(other.getFullName())) return false; + if (!getPrimaryEmail() + .equals(other.getPrimaryEmail())) return false; + if (getOwnedByOrganization() + != other.getOwnedByOrganization()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + if (hasMemberSince()) { + hash = (37 * hash) + MEMBER_SINCE_FIELD_NUMBER; + hash = (53 * hash) + getMemberSince().hashCode(); + } + hash = (37 * hash) + AVATAR_URL_FIELD_NUMBER; + hash = (53 * hash) + getAvatarUrl().hashCode(); + hash = (37 * hash) + FULL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFullName().hashCode(); + hash = (37 * hash) + PRIMARY_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryEmail().hashCode(); + hash = (37 * hash) + OWNED_BY_ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOwnedByOrganization()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.TeamMember prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.TeamMember} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.TeamMember) + io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.class, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.TeamMember.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getMemberSinceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + role_ = 0; + memberSince_ = null; + if (memberSinceBuilder_ != null) { + memberSinceBuilder_.dispose(); + memberSinceBuilder_ = null; + } + avatarUrl_ = ""; + fullName_ = ""; + primaryEmail_ = ""; + ownedByOrganization_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamMember_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember build() { + io.gitpod.publicapi.experimental.v1.Teams.TeamMember result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.TeamMember result = new io.gitpod.publicapi.experimental.v1.Teams.TeamMember(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.TeamMember result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.role_ = role_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.memberSince_ = memberSinceBuilder_ == null + ? memberSince_ + : memberSinceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.avatarUrl_ = avatarUrl_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fullName_ = fullName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.primaryEmail_ = primaryEmail_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ownedByOrganization_ = ownedByOrganization_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.TeamMember) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.TeamMember)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.TeamMember other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + if (other.hasMemberSince()) { + mergeMemberSince(other.getMemberSince()); + } + if (!other.getAvatarUrl().isEmpty()) { + avatarUrl_ = other.avatarUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFullName().isEmpty()) { + fullName_ = other.fullName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getPrimaryEmail().isEmpty()) { + primaryEmail_ = other.primaryEmail_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getOwnedByOrganization() != false) { + setOwnedByOrganization(other.getOwnedByOrganization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + role_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getMemberSinceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + avatarUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + fullName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + primaryEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + ownedByOrganization_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + *
+       * user_id is the identifier of the user
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * user_id is the identifier of the user
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * user_id is the identifier of the user
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * user_id is the identifier of the user
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * user_id is the identifier of the user
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int role_ = 0; + /** + *
+       * role is the role this member is assigned
+       * 
+ * + * .gitpod.experimental.v1.TeamRole role = 2 [json_name = "role"]; + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override public int getRoleValue() { + return role_; + } + /** + *
+       * role is the role this member is assigned
+       * 
+ * + * .gitpod.experimental.v1.TeamRole role = 2 [json_name = "role"]; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. + */ + public Builder setRoleValue(int value) { + role_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * role is the role this member is assigned
+       * 
+ * + * .gitpod.experimental.v1.TeamRole role = 2 [json_name = "role"]; + * @return The role. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamRole getRole() { + io.gitpod.publicapi.experimental.v1.Teams.TeamRole result = io.gitpod.publicapi.experimental.v1.Teams.TeamRole.forNumber(role_); + return result == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamRole.UNRECOGNIZED : result; + } + /** + *
+       * role is the role this member is assigned
+       * 
+ * + * .gitpod.experimental.v1.TeamRole role = 2 [json_name = "role"]; + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole(io.gitpod.publicapi.experimental.v1.Teams.TeamRole value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + role_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * role is the role this member is assigned
+       * 
+ * + * .gitpod.experimental.v1.TeamRole role = 2 [json_name = "role"]; + * @return This builder for chaining. + */ + public Builder clearRole() { + bitField0_ = (bitField0_ & ~0x00000002); + role_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp memberSince_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> memberSinceBuilder_; + /** + *
+       * member_since is the timestamp when the member joined the team
+       * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return Whether the memberSince field is set. + */ + public boolean hasMemberSince() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * member_since is the timestamp when the member joined the team
+       * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return The memberSince. + */ + public com.google.protobuf.Timestamp getMemberSince() { + if (memberSinceBuilder_ == null) { + return memberSince_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : memberSince_; + } else { + return memberSinceBuilder_.getMessage(); + } + } + /** + *
+       * member_since is the timestamp when the member joined the team
+       * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public Builder setMemberSince(com.google.protobuf.Timestamp value) { + if (memberSinceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + memberSince_ = value; + } else { + memberSinceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * member_since is the timestamp when the member joined the team
+       * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public Builder setMemberSince( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (memberSinceBuilder_ == null) { + memberSince_ = builderForValue.build(); + } else { + memberSinceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * member_since is the timestamp when the member joined the team
+       * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public Builder mergeMemberSince(com.google.protobuf.Timestamp value) { + if (memberSinceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + memberSince_ != null && + memberSince_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMemberSinceBuilder().mergeFrom(value); + } else { + memberSince_ = value; + } + } else { + memberSinceBuilder_.mergeFrom(value); + } + if (memberSince_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * member_since is the timestamp when the member joined the team
+       * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public Builder clearMemberSince() { + bitField0_ = (bitField0_ & ~0x00000004); + memberSince_ = null; + if (memberSinceBuilder_ != null) { + memberSinceBuilder_.dispose(); + memberSinceBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * member_since is the timestamp when the member joined the team
+       * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public com.google.protobuf.Timestamp.Builder getMemberSinceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMemberSinceFieldBuilder().getBuilder(); + } + /** + *
+       * member_since is the timestamp when the member joined the team
+       * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public com.google.protobuf.TimestampOrBuilder getMemberSinceOrBuilder() { + if (memberSinceBuilder_ != null) { + return memberSinceBuilder_.getMessageOrBuilder(); + } else { + return memberSince_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : memberSince_; + } + } + /** + *
+       * member_since is the timestamp when the member joined the team
+       * 
+ * + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getMemberSinceFieldBuilder() { + if (memberSinceBuilder_ == null) { + memberSinceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getMemberSince(), + getParentForChildren(), + isClean()); + memberSince_ = null; + } + return memberSinceBuilder_; + } + + private java.lang.Object avatarUrl_ = ""; + /** + *
+       * avatar_url is the URL for the TeamMember
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * avatar_url is the URL for the TeamMember
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * avatar_url is the URL for the TeamMember
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @param value The avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + avatarUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * avatar_url is the URL for the TeamMember
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return This builder for chaining. + */ + public Builder clearAvatarUrl() { + avatarUrl_ = getDefaultInstance().getAvatarUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * avatar_url is the URL for the TeamMember
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @param value The bytes for avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + avatarUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object fullName_ = ""; + /** + *
+       * full_name is the name of the TeamMember
+       * 
+ * + * string full_name = 5 [json_name = "fullName"]; + * @return The fullName. + */ + public java.lang.String getFullName() { + java.lang.Object ref = fullName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * full_name is the name of the TeamMember
+       * 
+ * + * string full_name = 5 [json_name = "fullName"]; + * @return The bytes for fullName. + */ + public com.google.protobuf.ByteString + getFullNameBytes() { + java.lang.Object ref = fullName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * full_name is the name of the TeamMember
+       * 
+ * + * string full_name = 5 [json_name = "fullName"]; + * @param value The fullName to set. + * @return This builder for chaining. + */ + public Builder setFullName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fullName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * full_name is the name of the TeamMember
+       * 
+ * + * string full_name = 5 [json_name = "fullName"]; + * @return This builder for chaining. + */ + public Builder clearFullName() { + fullName_ = getDefaultInstance().getFullName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * full_name is the name of the TeamMember
+       * 
+ * + * string full_name = 5 [json_name = "fullName"]; + * @param value The bytes for fullName to set. + * @return This builder for chaining. + */ + public Builder setFullNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fullName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object primaryEmail_ = ""; + /** + *
+       * primary_email is the primary email of the TeamMember
+       * 
+ * + * string primary_email = 6 [json_name = "primaryEmail"]; + * @return The primaryEmail. + */ + public java.lang.String getPrimaryEmail() { + java.lang.Object ref = primaryEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * primary_email is the primary email of the TeamMember
+       * 
+ * + * string primary_email = 6 [json_name = "primaryEmail"]; + * @return The bytes for primaryEmail. + */ + public com.google.protobuf.ByteString + getPrimaryEmailBytes() { + java.lang.Object ref = primaryEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * primary_email is the primary email of the TeamMember
+       * 
+ * + * string primary_email = 6 [json_name = "primaryEmail"]; + * @param value The primaryEmail to set. + * @return This builder for chaining. + */ + public Builder setPrimaryEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + primaryEmail_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * primary_email is the primary email of the TeamMember
+       * 
+ * + * string primary_email = 6 [json_name = "primaryEmail"]; + * @return This builder for chaining. + */ + public Builder clearPrimaryEmail() { + primaryEmail_ = getDefaultInstance().getPrimaryEmail(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+       * primary_email is the primary email of the TeamMember
+       * 
+ * + * string primary_email = 6 [json_name = "primaryEmail"]; + * @param value The bytes for primaryEmail to set. + * @return This builder for chaining. + */ + public Builder setPrimaryEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + primaryEmail_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean ownedByOrganization_ ; + /** + *
+       * owned_by_organization indicates if the TeamMember is owned by the organization
+       * 
+ * + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @return The ownedByOrganization. + */ + @java.lang.Override + public boolean getOwnedByOrganization() { + return ownedByOrganization_; + } + /** + *
+       * owned_by_organization indicates if the TeamMember is owned by the organization
+       * 
+ * + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @param value The ownedByOrganization to set. + * @return This builder for chaining. + */ + public Builder setOwnedByOrganization(boolean value) { + + ownedByOrganization_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * owned_by_organization indicates if the TeamMember is owned by the organization
+       * 
+ * + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @return This builder for chaining. + */ + public Builder clearOwnedByOrganization() { + bitField0_ = (bitField0_ & ~0x00000040); + ownedByOrganization_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.TeamMember) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.TeamMember) + private static final io.gitpod.publicapi.experimental.v1.Teams.TeamMember DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.TeamMember(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.TeamMember getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamMember parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TeamInvitationOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.TeamInvitation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the invitation ID.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is the invitation ID.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.TeamInvitation} + */ + public static final class TeamInvitation extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.TeamInvitation) + TeamInvitationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + TeamInvitation.class.getName()); + } + // Use TeamInvitation.newBuilder() to construct. + private TeamInvitation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TeamInvitation() { + id_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamInvitation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamInvitation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.class, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is the invitation ID.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is the invitation ID.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation other = (io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.TeamInvitation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.TeamInvitation) + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamInvitation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamInvitation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.class, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_TeamInvitation_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation build() { + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation result = new io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is the invitation ID.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is the invitation ID.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is the invitation ID.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the invitation ID.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is the invitation ID.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.TeamInvitation) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.TeamInvitation) + private static final io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamInvitation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateTeamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateTeamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * name is the team name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the team name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateTeamRequest} + */ + public static final class CreateTeamRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateTeamRequest) + CreateTeamRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateTeamRequest.class.getName()); + } + // Use CreateTeamRequest.newBuilder() to construct. + private CreateTeamRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateTeamRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest.class, io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the team name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the team name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest other = (io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateTeamRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateTeamRequest) + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest.class, io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest result = new io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * name is the team name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the team name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the team name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * name is the team name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * name is the team name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateTeamRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateTeamRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTeamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateTeamResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateTeamResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return Whether the team field is set. + */ + boolean hasTeam(); + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return The team. + */ + io.gitpod.publicapi.experimental.v1.Teams.Team getTeam(); + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateTeamResponse} + */ + public static final class CreateTeamResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateTeamResponse) + CreateTeamResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateTeamResponse.class.getName()); + } + // Use CreateTeamResponse.newBuilder() to construct. + private CreateTeamResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateTeamResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse.class, io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse.Builder.class); + } + + private int bitField0_; + public static final int TEAM_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Teams.Team team_; + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return Whether the team field is set. + */ + @java.lang.Override + public boolean hasTeam() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return The team. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.Team getTeam() { + return team_ == null ? io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamOrBuilder() { + return team_ == null ? io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTeam()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTeam()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse other = (io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse) obj; + + if (hasTeam() != other.hasTeam()) return false; + if (hasTeam()) { + if (!getTeam() + .equals(other.getTeam())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTeam()) { + hash = (37 * hash) + TEAM_FIELD_NUMBER; + hash = (53 * hash) + getTeam().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateTeamResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateTeamResponse) + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse.class, io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTeamFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_CreateTeamResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse result = new io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.team_ = teamBuilder_ == null + ? team_ + : teamBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse.getDefaultInstance()) return this; + if (other.hasTeam()) { + mergeTeam(other.getTeam()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTeamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Teams.Team team_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder> teamBuilder_; + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return Whether the team field is set. + */ + public boolean hasTeam() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return The team. + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team getTeam() { + if (teamBuilder_ == null) { + return team_ == null ? io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } else { + return teamBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder setTeam(io.gitpod.publicapi.experimental.v1.Teams.Team value) { + if (teamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + team_ = value; + } else { + teamBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder setTeam( + io.gitpod.publicapi.experimental.v1.Teams.Team.Builder builderForValue) { + if (teamBuilder_ == null) { + team_ = builderForValue.build(); + } else { + teamBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder mergeTeam(io.gitpod.publicapi.experimental.v1.Teams.Team value) { + if (teamBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + team_ != null && + team_ != io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance()) { + getTeamBuilder().mergeFrom(value); + } else { + team_ = value; + } + } else { + teamBuilder_.mergeFrom(value); + } + if (team_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder clearTeam() { + bitField0_ = (bitField0_ & ~0x00000001); + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team.Builder getTeamBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTeamFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamOrBuilder() { + if (teamBuilder_ != null) { + return teamBuilder_.getMessageOrBuilder(); + } else { + return team_ == null ? + io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder> + getTeamFieldBuilder() { + if (teamBuilder_ == null) { + teamBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder>( + getTeam(), + getParentForChildren(), + isClean()); + team_ = null; + } + return teamBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateTeamResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateTeamResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTeamResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTeamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetTeamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * team_id is the unique identifier of the Team to retreive.
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + java.lang.String getTeamId(); + /** + *
+     * team_id is the unique identifier of the Team to retreive.
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + com.google.protobuf.ByteString + getTeamIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetTeamRequest} + */ + public static final class GetTeamRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetTeamRequest) + GetTeamRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetTeamRequest.class.getName()); + } + // Use GetTeamRequest.newBuilder() to construct. + private GetTeamRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetTeamRequest() { + teamId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest.class, io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest.Builder.class); + } + + public static final int TEAM_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object teamId_ = ""; + /** + *
+     * team_id is the unique identifier of the Team to retreive.
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + @java.lang.Override + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } + } + /** + *
+     * team_id is the unique identifier of the Team to retreive.
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest other = (io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest) obj; + + if (!getTeamId() + .equals(other.getTeamId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetTeamRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetTeamRequest) + io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest.class, io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest result = new io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamId_ = teamId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest.getDefaultInstance()) return this; + if (!other.getTeamId().isEmpty()) { + teamId_ = other.teamId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object teamId_ = ""; + /** + *
+       * team_id is the unique identifier of the Team to retreive.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * team_id is the unique identifier of the Team to retreive.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * team_id is the unique identifier of the Team to retreive.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team_id is the unique identifier of the Team to retreive.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + teamId_ = getDefaultInstance().getTeamId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * team_id is the unique identifier of the Team to retreive.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The bytes for teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetTeamRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetTeamRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTeamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTeamResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetTeamResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return Whether the team field is set. + */ + boolean hasTeam(); + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return The team. + */ + io.gitpod.publicapi.experimental.v1.Teams.Team getTeam(); + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetTeamResponse} + */ + public static final class GetTeamResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetTeamResponse) + GetTeamResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetTeamResponse.class.getName()); + } + // Use GetTeamResponse.newBuilder() to construct. + private GetTeamResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetTeamResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse.class, io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse.Builder.class); + } + + private int bitField0_; + public static final int TEAM_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Teams.Team team_; + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return Whether the team field is set. + */ + @java.lang.Override + public boolean hasTeam() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return The team. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.Team getTeam() { + return team_ == null ? io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamOrBuilder() { + return team_ == null ? io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTeam()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTeam()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse other = (io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse) obj; + + if (hasTeam() != other.hasTeam()) return false; + if (hasTeam()) { + if (!getTeam() + .equals(other.getTeam())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTeam()) { + hash = (37 * hash) + TEAM_FIELD_NUMBER; + hash = (53 * hash) + getTeam().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetTeamResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetTeamResponse) + io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse.class, io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTeamFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse result = new io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.team_ = teamBuilder_ == null + ? team_ + : teamBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse.getDefaultInstance()) return this; + if (other.hasTeam()) { + mergeTeam(other.getTeam()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTeamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Teams.Team team_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder> teamBuilder_; + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return Whether the team field is set. + */ + public boolean hasTeam() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return The team. + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team getTeam() { + if (teamBuilder_ == null) { + return team_ == null ? io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } else { + return teamBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder setTeam(io.gitpod.publicapi.experimental.v1.Teams.Team value) { + if (teamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + team_ = value; + } else { + teamBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder setTeam( + io.gitpod.publicapi.experimental.v1.Teams.Team.Builder builderForValue) { + if (teamBuilder_ == null) { + team_ = builderForValue.build(); + } else { + teamBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder mergeTeam(io.gitpod.publicapi.experimental.v1.Teams.Team value) { + if (teamBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + team_ != null && + team_ != io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance()) { + getTeamBuilder().mergeFrom(value); + } else { + team_ = value; + } + } else { + teamBuilder_.mergeFrom(value); + } + if (team_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder clearTeam() { + bitField0_ = (bitField0_ & ~0x00000001); + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team.Builder getTeamBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTeamFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamOrBuilder() { + if (teamBuilder_ != null) { + return teamBuilder_.getMessageOrBuilder(); + } else { + return team_ == null ? + io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } + } + /** + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder> + getTeamFieldBuilder() { + if (teamBuilder_ == null) { + teamBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder>( + getTeam(), + getParentForChildren(), + isClean()); + team_ = null; + } + return teamBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetTeamResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetTeamResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTeamResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListTeamsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListTeamsRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * TODO: pagination options
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.ListTeamsRequest} + */ + public static final class ListTeamsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListTeamsRequest) + ListTeamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListTeamsRequest.class.getName()); + } + // Use ListTeamsRequest.newBuilder() to construct. + private ListTeamsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListTeamsRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest.class, io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest other = (io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * TODO: pagination options
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.ListTeamsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListTeamsRequest) + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest.class, io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest result = new io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListTeamsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListTeamsRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTeamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListTeamsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListTeamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + java.util.List + getTeamsList(); + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.Team getTeams(int index); + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + int getTeamsCount(); + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + java.util.List + getTeamsOrBuilderList(); + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamsOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListTeamsResponse} + */ + public static final class ListTeamsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListTeamsResponse) + ListTeamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListTeamsResponse.class.getName()); + } + // Use ListTeamsResponse.newBuilder() to construct. + private ListTeamsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListTeamsResponse() { + teams_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse.class, io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse.Builder.class); + } + + public static final int TEAMS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List teams_; + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + @java.lang.Override + public java.util.List getTeamsList() { + return teams_; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + @java.lang.Override + public java.util.List + getTeamsOrBuilderList() { + return teams_; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + @java.lang.Override + public int getTeamsCount() { + return teams_.size(); + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.Team getTeams(int index) { + return teams_.get(index); + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamsOrBuilder( + int index) { + return teams_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < teams_.size(); i++) { + output.writeMessage(1, teams_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < teams_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, teams_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse other = (io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse) obj; + + if (!getTeamsList() + .equals(other.getTeamsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTeamsCount() > 0) { + hash = (37 * hash) + TEAMS_FIELD_NUMBER; + hash = (53 * hash) + getTeamsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListTeamsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListTeamsResponse) + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse.class, io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (teamsBuilder_ == null) { + teams_ = java.util.Collections.emptyList(); + } else { + teams_ = null; + teamsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse result = new io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse result) { + if (teamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + teams_ = java.util.Collections.unmodifiableList(teams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.teams_ = teams_; + } else { + result.teams_ = teamsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse.getDefaultInstance()) return this; + if (teamsBuilder_ == null) { + if (!other.teams_.isEmpty()) { + if (teams_.isEmpty()) { + teams_ = other.teams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTeamsIsMutable(); + teams_.addAll(other.teams_); + } + onChanged(); + } + } else { + if (!other.teams_.isEmpty()) { + if (teamsBuilder_.isEmpty()) { + teamsBuilder_.dispose(); + teamsBuilder_ = null; + teams_ = other.teams_; + bitField0_ = (bitField0_ & ~0x00000001); + teamsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getTeamsFieldBuilder() : null; + } else { + teamsBuilder_.addAllMessages(other.teams_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.experimental.v1.Teams.Team m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.Teams.Team.parser(), + extensionRegistry); + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(m); + } else { + teamsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List teams_ = + java.util.Collections.emptyList(); + private void ensureTeamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + teams_ = new java.util.ArrayList(teams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder> teamsBuilder_; + + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public java.util.List getTeamsList() { + if (teamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(teams_); + } else { + return teamsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public int getTeamsCount() { + if (teamsBuilder_ == null) { + return teams_.size(); + } else { + return teamsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team getTeams(int index) { + if (teamsBuilder_ == null) { + return teams_.get(index); + } else { + return teamsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public Builder setTeams( + int index, io.gitpod.publicapi.experimental.v1.Teams.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.set(index, value); + onChanged(); + } else { + teamsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public Builder setTeams( + int index, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.set(index, builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public Builder addTeams(io.gitpod.publicapi.experimental.v1.Teams.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.add(value); + onChanged(); + } else { + teamsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public Builder addTeams( + int index, io.gitpod.publicapi.experimental.v1.Teams.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.add(index, value); + onChanged(); + } else { + teamsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public Builder addTeams( + io.gitpod.publicapi.experimental.v1.Teams.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public Builder addTeams( + int index, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(index, builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public Builder addAllTeams( + java.lang.Iterable values) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, teams_); + onChanged(); + } else { + teamsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public Builder clearTeams() { + if (teamsBuilder_ == null) { + teams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + teamsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public Builder removeTeams(int index) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.remove(index); + onChanged(); + } else { + teamsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team.Builder getTeamsBuilder( + int index) { + return getTeamsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamsOrBuilder( + int index) { + if (teamsBuilder_ == null) { + return teams_.get(index); } else { + return teamsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public java.util.List + getTeamsOrBuilderList() { + if (teamsBuilder_ != null) { + return teamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(teams_); + } + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team.Builder addTeamsBuilder() { + return getTeamsFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team.Builder addTeamsBuilder( + int index) { + return getTeamsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.Team teams = 1 [json_name = "teams"]; + */ + public java.util.List + getTeamsBuilderList() { + return getTeamsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder> + getTeamsFieldBuilder() { + if (teamsBuilder_ == null) { + teamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder>( + teams_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + teams_ = null; + } + return teamsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListTeamsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListTeamsResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTeamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteTeamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteTeamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * team_id is the ID of the team to delete
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + java.lang.String getTeamId(); + /** + *
+     * team_id is the ID of the team to delete
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + com.google.protobuf.ByteString + getTeamIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteTeamRequest} + */ + public static final class DeleteTeamRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteTeamRequest) + DeleteTeamRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteTeamRequest.class.getName()); + } + // Use DeleteTeamRequest.newBuilder() to construct. + private DeleteTeamRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteTeamRequest() { + teamId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest.class, io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest.Builder.class); + } + + public static final int TEAM_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object teamId_ = ""; + /** + *
+     * team_id is the ID of the team to delete
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + @java.lang.Override + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } + } + /** + *
+     * team_id is the ID of the team to delete
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest other = (io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest) obj; + + if (!getTeamId() + .equals(other.getTeamId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteTeamRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteTeamRequest) + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest.class, io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest result = new io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamId_ = teamId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest.getDefaultInstance()) return this; + if (!other.getTeamId().isEmpty()) { + teamId_ = other.teamId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object teamId_ = ""; + /** + *
+       * team_id is the ID of the team to delete
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * team_id is the ID of the team to delete
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * team_id is the ID of the team to delete
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team_id is the ID of the team to delete
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + teamId_ = getDefaultInstance().getTeamId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * team_id is the ID of the team to delete
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The bytes for teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteTeamRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteTeamRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteTeamResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteTeamResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteTeamResponse} + */ + public static final class DeleteTeamResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteTeamResponse) + DeleteTeamResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteTeamResponse.class.getName()); + } + // Use DeleteTeamResponse.newBuilder() to construct. + private DeleteTeamResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteTeamResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse.class, io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse other = (io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteTeamResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteTeamResponse) + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse.class, io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse result = new io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteTeamResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteTeamResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTeamInvitationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetTeamInvitationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + java.lang.String getTeamId(); + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + com.google.protobuf.ByteString + getTeamIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetTeamInvitationRequest} + */ + public static final class GetTeamInvitationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetTeamInvitationRequest) + GetTeamInvitationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetTeamInvitationRequest.class.getName()); + } + // Use GetTeamInvitationRequest.newBuilder() to construct. + private GetTeamInvitationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetTeamInvitationRequest() { + teamId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest.class, io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest.Builder.class); + } + + public static final int TEAM_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object teamId_ = ""; + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + @java.lang.Override + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest other = (io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest) obj; + + if (!getTeamId() + .equals(other.getTeamId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetTeamInvitationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetTeamInvitationRequest) + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest.class, io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest result = new io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamId_ = teamId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest.getDefaultInstance()) return this; + if (!other.getTeamId().isEmpty()) { + teamId_ = other.teamId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object teamId_ = ""; + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + teamId_ = getDefaultInstance().getTeamId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @param value The bytes for teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetTeamInvitationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetTeamInvitationRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTeamInvitationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTeamInvitationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetTeamInvitationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * team_invitation is the invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return Whether the teamInvitation field is set. + */ + boolean hasTeamInvitation(); + /** + *
+     * team_invitation is the invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return The teamInvitation. + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getTeamInvitation(); + /** + *
+     * team_invitation is the invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder getTeamInvitationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetTeamInvitationResponse} + */ + public static final class GetTeamInvitationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetTeamInvitationResponse) + GetTeamInvitationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetTeamInvitationResponse.class.getName()); + } + // Use GetTeamInvitationResponse.newBuilder() to construct. + private GetTeamInvitationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetTeamInvitationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse.class, io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse.Builder.class); + } + + private int bitField0_; + public static final int TEAM_INVITATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation teamInvitation_; + /** + *
+     * team_invitation is the invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return Whether the teamInvitation field is set. + */ + @java.lang.Override + public boolean hasTeamInvitation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * team_invitation is the invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return The teamInvitation. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getTeamInvitation() { + return teamInvitation_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } + /** + *
+     * team_invitation is the invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder getTeamInvitationOrBuilder() { + return teamInvitation_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTeamInvitation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTeamInvitation()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse other = (io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse) obj; + + if (hasTeamInvitation() != other.hasTeamInvitation()) return false; + if (hasTeamInvitation()) { + if (!getTeamInvitation() + .equals(other.getTeamInvitation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTeamInvitation()) { + hash = (37 * hash) + TEAM_INVITATION_FIELD_NUMBER; + hash = (53 * hash) + getTeamInvitation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetTeamInvitationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetTeamInvitationResponse) + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse.class, io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTeamInvitationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamInvitation_ = null; + if (teamInvitationBuilder_ != null) { + teamInvitationBuilder_.dispose(); + teamInvitationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse result = new io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamInvitation_ = teamInvitationBuilder_ == null + ? teamInvitation_ + : teamInvitationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse.getDefaultInstance()) return this; + if (other.hasTeamInvitation()) { + mergeTeamInvitation(other.getTeamInvitation()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTeamInvitationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation teamInvitation_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder> teamInvitationBuilder_; + /** + *
+       * team_invitation is the invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return Whether the teamInvitation field is set. + */ + public boolean hasTeamInvitation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * team_invitation is the invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return The teamInvitation. + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getTeamInvitation() { + if (teamInvitationBuilder_ == null) { + return teamInvitation_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } else { + return teamInvitationBuilder_.getMessage(); + } + } + /** + *
+       * team_invitation is the invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public Builder setTeamInvitation(io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation value) { + if (teamInvitationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamInvitation_ = value; + } else { + teamInvitationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team_invitation is the invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public Builder setTeamInvitation( + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder builderForValue) { + if (teamInvitationBuilder_ == null) { + teamInvitation_ = builderForValue.build(); + } else { + teamInvitationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team_invitation is the invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public Builder mergeTeamInvitation(io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation value) { + if (teamInvitationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + teamInvitation_ != null && + teamInvitation_ != io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance()) { + getTeamInvitationBuilder().mergeFrom(value); + } else { + teamInvitation_ = value; + } + } else { + teamInvitationBuilder_.mergeFrom(value); + } + if (teamInvitation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * team_invitation is the invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public Builder clearTeamInvitation() { + bitField0_ = (bitField0_ & ~0x00000001); + teamInvitation_ = null; + if (teamInvitationBuilder_ != null) { + teamInvitationBuilder_.dispose(); + teamInvitationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * team_invitation is the invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder getTeamInvitationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTeamInvitationFieldBuilder().getBuilder(); + } + /** + *
+       * team_invitation is the invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder getTeamInvitationOrBuilder() { + if (teamInvitationBuilder_ != null) { + return teamInvitationBuilder_.getMessageOrBuilder(); + } else { + return teamInvitation_ == null ? + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } + } + /** + *
+       * team_invitation is the invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder> + getTeamInvitationFieldBuilder() { + if (teamInvitationBuilder_ == null) { + teamInvitationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder>( + getTeamInvitation(), + getParentForChildren(), + isClean()); + teamInvitation_ = null; + } + return teamInvitationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetTeamInvitationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetTeamInvitationResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTeamInvitationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface JoinTeamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.JoinTeamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * invitation_id is the invitation ID for a Team
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + java.lang.String getInvitationId(); + /** + *
+     * invitation_id is the invitation ID for a Team
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + com.google.protobuf.ByteString + getInvitationIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.JoinTeamRequest} + */ + public static final class JoinTeamRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.JoinTeamRequest) + JoinTeamRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + JoinTeamRequest.class.getName()); + } + // Use JoinTeamRequest.newBuilder() to construct. + private JoinTeamRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private JoinTeamRequest() { + invitationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest.class, io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest.Builder.class); + } + + public static final int INVITATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object invitationId_ = ""; + /** + *
+     * invitation_id is the invitation ID for a Team
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + @java.lang.Override + public java.lang.String getInvitationId() { + java.lang.Object ref = invitationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invitationId_ = s; + return s; + } + } + /** + *
+     * invitation_id is the invitation ID for a Team
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInvitationIdBytes() { + java.lang.Object ref = invitationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + invitationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invitationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, invitationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invitationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, invitationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest other = (io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest) obj; + + if (!getInvitationId() + .equals(other.getInvitationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INVITATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getInvitationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.JoinTeamRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.JoinTeamRequest) + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest.class, io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + invitationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest result = new io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.invitationId_ = invitationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest.getDefaultInstance()) return this; + if (!other.getInvitationId().isEmpty()) { + invitationId_ = other.invitationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + invitationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object invitationId_ = ""; + /** + *
+       * invitation_id is the invitation ID for a Team
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + public java.lang.String getInvitationId() { + java.lang.Object ref = invitationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invitationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * invitation_id is the invitation ID for a Team
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + public com.google.protobuf.ByteString + getInvitationIdBytes() { + java.lang.Object ref = invitationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + invitationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * invitation_id is the invitation ID for a Team
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @param value The invitationId to set. + * @return This builder for chaining. + */ + public Builder setInvitationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + invitationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * invitation_id is the invitation ID for a Team
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return This builder for chaining. + */ + public Builder clearInvitationId() { + invitationId_ = getDefaultInstance().getInvitationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * invitation_id is the invitation ID for a Team
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @param value The bytes for invitationId to set. + * @return This builder for chaining. + */ + public Builder setInvitationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + invitationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.JoinTeamRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.JoinTeamRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JoinTeamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface JoinTeamResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.JoinTeamResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * team is the team the user has just joined
+     * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return Whether the team field is set. + */ + boolean hasTeam(); + /** + *
+     * team is the team the user has just joined
+     * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return The team. + */ + io.gitpod.publicapi.experimental.v1.Teams.Team getTeam(); + /** + *
+     * team is the team the user has just joined
+     * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.JoinTeamResponse} + */ + public static final class JoinTeamResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.JoinTeamResponse) + JoinTeamResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + JoinTeamResponse.class.getName()); + } + // Use JoinTeamResponse.newBuilder() to construct. + private JoinTeamResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private JoinTeamResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse.class, io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse.Builder.class); + } + + private int bitField0_; + public static final int TEAM_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Teams.Team team_; + /** + *
+     * team is the team the user has just joined
+     * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return Whether the team field is set. + */ + @java.lang.Override + public boolean hasTeam() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * team is the team the user has just joined
+     * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return The team. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.Team getTeam() { + return team_ == null ? io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } + /** + *
+     * team is the team the user has just joined
+     * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamOrBuilder() { + return team_ == null ? io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTeam()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTeam()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse other = (io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse) obj; + + if (hasTeam() != other.hasTeam()) return false; + if (hasTeam()) { + if (!getTeam() + .equals(other.getTeam())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTeam()) { + hash = (37 * hash) + TEAM_FIELD_NUMBER; + hash = (53 * hash) + getTeam().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.JoinTeamResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.JoinTeamResponse) + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse.class, io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTeamFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_JoinTeamResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse result = new io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.team_ = teamBuilder_ == null + ? team_ + : teamBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse.getDefaultInstance()) return this; + if (other.hasTeam()) { + mergeTeam(other.getTeam()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTeamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Teams.Team team_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder> teamBuilder_; + /** + *
+       * team is the team the user has just joined
+       * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return Whether the team field is set. + */ + public boolean hasTeam() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * team is the team the user has just joined
+       * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + * @return The team. + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team getTeam() { + if (teamBuilder_ == null) { + return team_ == null ? io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } else { + return teamBuilder_.getMessage(); + } + } + /** + *
+       * team is the team the user has just joined
+       * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder setTeam(io.gitpod.publicapi.experimental.v1.Teams.Team value) { + if (teamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + team_ = value; + } else { + teamBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team is the team the user has just joined
+       * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder setTeam( + io.gitpod.publicapi.experimental.v1.Teams.Team.Builder builderForValue) { + if (teamBuilder_ == null) { + team_ = builderForValue.build(); + } else { + teamBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team is the team the user has just joined
+       * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder mergeTeam(io.gitpod.publicapi.experimental.v1.Teams.Team value) { + if (teamBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + team_ != null && + team_ != io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance()) { + getTeamBuilder().mergeFrom(value); + } else { + team_ = value; + } + } else { + teamBuilder_.mergeFrom(value); + } + if (team_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * team is the team the user has just joined
+       * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public Builder clearTeam() { + bitField0_ = (bitField0_ & ~0x00000001); + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * team is the team the user has just joined
+       * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.Team.Builder getTeamBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTeamFieldBuilder().getBuilder(); + } + /** + *
+       * team is the team the user has just joined
+       * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder getTeamOrBuilder() { + if (teamBuilder_ != null) { + return teamBuilder_.getMessageOrBuilder(); + } else { + return team_ == null ? + io.gitpod.publicapi.experimental.v1.Teams.Team.getDefaultInstance() : team_; + } + } + /** + *
+       * team is the team the user has just joined
+       * 
+ * + * .gitpod.experimental.v1.Team team = 1 [json_name = "team"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder> + getTeamFieldBuilder() { + if (teamBuilder_ == null) { + teamBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.Team, io.gitpod.publicapi.experimental.v1.Teams.Team.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamOrBuilder>( + getTeam(), + getParentForChildren(), + isClean()); + team_ = null; + } + return teamBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.JoinTeamResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.JoinTeamResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JoinTeamResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResetTeamInvitationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ResetTeamInvitationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + java.lang.String getTeamId(); + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + com.google.protobuf.ByteString + getTeamIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ResetTeamInvitationRequest} + */ + public static final class ResetTeamInvitationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ResetTeamInvitationRequest) + ResetTeamInvitationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ResetTeamInvitationRequest.class.getName()); + } + // Use ResetTeamInvitationRequest.newBuilder() to construct. + private ResetTeamInvitationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResetTeamInvitationRequest() { + teamId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest.class, io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest.Builder.class); + } + + public static final int TEAM_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object teamId_ = ""; + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + @java.lang.Override + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest other = (io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest) obj; + + if (!getTeamId() + .equals(other.getTeamId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ResetTeamInvitationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ResetTeamInvitationRequest) + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest.class, io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest result = new io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamId_ = teamId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest.getDefaultInstance()) return this; + if (!other.getTeamId().isEmpty()) { + teamId_ = other.teamId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object teamId_ = ""; + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + teamId_ = getDefaultInstance().getTeamId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string team_id = 1 [json_name = "teamId"]; + * @param value The bytes for teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ResetTeamInvitationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ResetTeamInvitationRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetTeamInvitationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResetTeamInvitationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ResetTeamInvitationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * team_invitation is the new invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return Whether the teamInvitation field is set. + */ + boolean hasTeamInvitation(); + /** + *
+     * team_invitation is the new invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return The teamInvitation. + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getTeamInvitation(); + /** + *
+     * team_invitation is the new invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder getTeamInvitationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ResetTeamInvitationResponse} + */ + public static final class ResetTeamInvitationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ResetTeamInvitationResponse) + ResetTeamInvitationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ResetTeamInvitationResponse.class.getName()); + } + // Use ResetTeamInvitationResponse.newBuilder() to construct. + private ResetTeamInvitationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResetTeamInvitationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse.class, io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse.Builder.class); + } + + private int bitField0_; + public static final int TEAM_INVITATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation teamInvitation_; + /** + *
+     * team_invitation is the new invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return Whether the teamInvitation field is set. + */ + @java.lang.Override + public boolean hasTeamInvitation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * team_invitation is the new invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return The teamInvitation. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getTeamInvitation() { + return teamInvitation_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } + /** + *
+     * team_invitation is the new invitation for the team.
+     * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder getTeamInvitationOrBuilder() { + return teamInvitation_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTeamInvitation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTeamInvitation()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse other = (io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse) obj; + + if (hasTeamInvitation() != other.hasTeamInvitation()) return false; + if (hasTeamInvitation()) { + if (!getTeamInvitation() + .equals(other.getTeamInvitation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTeamInvitation()) { + hash = (37 * hash) + TEAM_INVITATION_FIELD_NUMBER; + hash = (53 * hash) + getTeamInvitation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ResetTeamInvitationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ResetTeamInvitationResponse) + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse.class, io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTeamInvitationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamInvitation_ = null; + if (teamInvitationBuilder_ != null) { + teamInvitationBuilder_.dispose(); + teamInvitationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse result = new io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamInvitation_ = teamInvitationBuilder_ == null + ? teamInvitation_ + : teamInvitationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse.getDefaultInstance()) return this; + if (other.hasTeamInvitation()) { + mergeTeamInvitation(other.getTeamInvitation()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTeamInvitationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation teamInvitation_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder> teamInvitationBuilder_; + /** + *
+       * team_invitation is the new invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return Whether the teamInvitation field is set. + */ + public boolean hasTeamInvitation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * team_invitation is the new invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + * @return The teamInvitation. + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation getTeamInvitation() { + if (teamInvitationBuilder_ == null) { + return teamInvitation_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } else { + return teamInvitationBuilder_.getMessage(); + } + } + /** + *
+       * team_invitation is the new invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public Builder setTeamInvitation(io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation value) { + if (teamInvitationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamInvitation_ = value; + } else { + teamInvitationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team_invitation is the new invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public Builder setTeamInvitation( + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder builderForValue) { + if (teamInvitationBuilder_ == null) { + teamInvitation_ = builderForValue.build(); + } else { + teamInvitationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team_invitation is the new invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public Builder mergeTeamInvitation(io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation value) { + if (teamInvitationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + teamInvitation_ != null && + teamInvitation_ != io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance()) { + getTeamInvitationBuilder().mergeFrom(value); + } else { + teamInvitation_ = value; + } + } else { + teamInvitationBuilder_.mergeFrom(value); + } + if (teamInvitation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * team_invitation is the new invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public Builder clearTeamInvitation() { + bitField0_ = (bitField0_ & ~0x00000001); + teamInvitation_ = null; + if (teamInvitationBuilder_ != null) { + teamInvitationBuilder_.dispose(); + teamInvitationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * team_invitation is the new invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder getTeamInvitationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTeamInvitationFieldBuilder().getBuilder(); + } + /** + *
+       * team_invitation is the new invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder getTeamInvitationOrBuilder() { + if (teamInvitationBuilder_ != null) { + return teamInvitationBuilder_.getMessageOrBuilder(); + } else { + return teamInvitation_ == null ? + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.getDefaultInstance() : teamInvitation_; + } + } + /** + *
+       * team_invitation is the new invitation for the team.
+       * 
+ * + * .gitpod.experimental.v1.TeamInvitation team_invitation = 1 [json_name = "teamInvitation"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder> + getTeamInvitationFieldBuilder() { + if (teamInvitationBuilder_ == null) { + teamInvitationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitation.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamInvitationOrBuilder>( + getTeamInvitation(), + getParentForChildren(), + isClean()); + teamInvitation_ = null; + } + return teamInvitationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ResetTeamInvitationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ResetTeamInvitationResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetTeamInvitationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListTeamMembersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListTeamMembersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * team_id is the ID of the team that contains the members to list
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + java.lang.String getTeamId(); + /** + *
+     * team_id is the ID of the team that contains the members to list
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + com.google.protobuf.ByteString + getTeamIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListTeamMembersRequest} + */ + public static final class ListTeamMembersRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListTeamMembersRequest) + ListTeamMembersRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListTeamMembersRequest.class.getName()); + } + // Use ListTeamMembersRequest.newBuilder() to construct. + private ListTeamMembersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListTeamMembersRequest() { + teamId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest.class, io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest.Builder.class); + } + + public static final int TEAM_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object teamId_ = ""; + /** + *
+     * team_id is the ID of the team that contains the members to list
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + @java.lang.Override + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } + } + /** + *
+     * team_id is the ID of the team that contains the members to list
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest other = (io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest) obj; + + if (!getTeamId() + .equals(other.getTeamId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListTeamMembersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListTeamMembersRequest) + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest.class, io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest result = new io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamId_ = teamId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest.getDefaultInstance()) return this; + if (!other.getTeamId().isEmpty()) { + teamId_ = other.teamId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object teamId_ = ""; + /** + *
+       * team_id is the ID of the team that contains the members to list
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * team_id is the ID of the team that contains the members to list
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * team_id is the ID of the team that contains the members to list
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team_id is the ID of the team that contains the members to list
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + teamId_ = getDefaultInstance().getTeamId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * team_id is the ID of the team that contains the members to list
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The bytes for teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListTeamMembersRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListTeamMembersRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTeamMembersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListTeamMembersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListTeamMembersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + java.util.List + getMembersList(); + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamMember getMembers(int index); + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + int getMembersCount(); + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + java.util.List + getMembersOrBuilderList(); + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getMembersOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListTeamMembersResponse} + */ + public static final class ListTeamMembersResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListTeamMembersResponse) + ListTeamMembersResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListTeamMembersResponse.class.getName()); + } + // Use ListTeamMembersResponse.newBuilder() to construct. + private ListTeamMembersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListTeamMembersResponse() { + members_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse.class, io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse.Builder.class); + } + + public static final int MEMBERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List members_; + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public java.util.List getMembersList() { + return members_; + } + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public java.util.List + getMembersOrBuilderList() { + return members_; + } + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public int getMembersCount() { + return members_.size(); + } + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getMembers(int index) { + return members_.get(index); + } + /** + *
+     * members are the team members of this Team
+     * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getMembersOrBuilder( + int index) { + return members_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < members_.size(); i++) { + output.writeMessage(1, members_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < members_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, members_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse other = (io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse) obj; + + if (!getMembersList() + .equals(other.getMembersList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMembersCount() > 0) { + hash = (37 * hash) + MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getMembersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListTeamMembersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListTeamMembersResponse) + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse.class, io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + } else { + members_ = null; + membersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_ListTeamMembersResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse result = new io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse result) { + if (membersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.members_ = members_; + } else { + result.members_ = membersBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse.getDefaultInstance()) return this; + if (membersBuilder_ == null) { + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + } else { + if (!other.members_.isEmpty()) { + if (membersBuilder_.isEmpty()) { + membersBuilder_.dispose(); + membersBuilder_ = null; + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + membersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getMembersFieldBuilder() : null; + } else { + membersBuilder_.addAllMessages(other.members_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.experimental.v1.Teams.TeamMember m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.parser(), + extensionRegistry); + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(m); + } else { + membersBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List members_ = + java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder> membersBuilder_; + + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public java.util.List getMembersList() { + if (membersBuilder_ == null) { + return java.util.Collections.unmodifiableList(members_); + } else { + return membersBuilder_.getMessageList(); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public int getMembersCount() { + if (membersBuilder_ == null) { + return members_.size(); + } else { + return membersBuilder_.getCount(); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getMembers(int index) { + if (membersBuilder_ == null) { + return members_.get(index); + } else { + return membersBuilder_.getMessage(index); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public Builder setMembers( + int index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + } else { + membersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public Builder setMembers( + int index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.set(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public Builder addMembers(io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + } else { + membersBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public Builder addMembers( + int index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(index, value); + onChanged(); + } else { + membersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public Builder addMembers( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public Builder addMembers( + int index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); + onChanged(); + } else { + membersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public Builder clearMembers() { + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membersBuilder_.clear(); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public Builder removeMembers(int index) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.remove(index); + onChanged(); + } else { + membersBuilder_.remove(index); + } + return this; + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder getMembersBuilder( + int index) { + return getMembersFieldBuilder().getBuilder(index); + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getMembersOrBuilder( + int index) { + if (membersBuilder_ == null) { + return members_.get(index); } else { + return membersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public java.util.List + getMembersOrBuilderList() { + if (membersBuilder_ != null) { + return membersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(members_); + } + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder addMembersBuilder() { + return getMembersFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance()); + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder addMembersBuilder( + int index) { + return getMembersFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance()); + } + /** + *
+       * members are the team members of this Team
+       * 
+ * + * repeated .gitpod.experimental.v1.TeamMember members = 1 [json_name = "members"]; + */ + public java.util.List + getMembersBuilderList() { + return getMembersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder> + getMembersFieldBuilder() { + if (membersBuilder_ == null) { + membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder>( + members_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + members_ = null; + } + return membersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListTeamMembersResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListTeamMembersResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTeamMembersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateTeamMemberRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdateTeamMemberRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * team_id is the ID of the team in which the role is to be updated
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + java.lang.String getTeamId(); + /** + *
+     * team_id is the ID of the team in which the role is to be updated
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + com.google.protobuf.ByteString + getTeamIdBytes(); + + /** + *
+     * team_member is the team member being updated.
+     * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return Whether the teamMember field is set. + */ + boolean hasTeamMember(); + /** + *
+     * team_member is the team member being updated.
+     * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return The teamMember. + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamMember getTeamMember(); + /** + *
+     * team_member is the team member being updated.
+     * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getTeamMemberOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateTeamMemberRequest} + */ + public static final class UpdateTeamMemberRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdateTeamMemberRequest) + UpdateTeamMemberRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateTeamMemberRequest.class.getName()); + } + // Use UpdateTeamMemberRequest.newBuilder() to construct. + private UpdateTeamMemberRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateTeamMemberRequest() { + teamId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest.class, io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest.Builder.class); + } + + private int bitField0_; + public static final int TEAM_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object teamId_ = ""; + /** + *
+     * team_id is the ID of the team in which the role is to be updated
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + @java.lang.Override + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } + } + /** + *
+     * team_id is the ID of the team in which the role is to be updated
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_MEMBER_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.Teams.TeamMember teamMember_; + /** + *
+     * team_member is the team member being updated.
+     * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return Whether the teamMember field is set. + */ + @java.lang.Override + public boolean hasTeamMember() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * team_member is the team member being updated.
+     * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return The teamMember. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getTeamMember() { + return teamMember_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance() : teamMember_; + } + /** + *
+     * team_member is the team member being updated.
+     * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getTeamMemberOrBuilder() { + return teamMember_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance() : teamMember_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTeamMember()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTeamMember()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest other = (io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest) obj; + + if (!getTeamId() + .equals(other.getTeamId())) return false; + if (hasTeamMember() != other.hasTeamMember()) return false; + if (hasTeamMember()) { + if (!getTeamMember() + .equals(other.getTeamMember())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamId().hashCode(); + if (hasTeamMember()) { + hash = (37 * hash) + TEAM_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + getTeamMember().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateTeamMemberRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdateTeamMemberRequest) + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest.class, io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTeamMemberFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamId_ = ""; + teamMember_ = null; + if (teamMemberBuilder_ != null) { + teamMemberBuilder_.dispose(); + teamMemberBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest result = new io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamId_ = teamId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.teamMember_ = teamMemberBuilder_ == null + ? teamMember_ + : teamMemberBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest.getDefaultInstance()) return this; + if (!other.getTeamId().isEmpty()) { + teamId_ = other.teamId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTeamMember()) { + mergeTeamMember(other.getTeamMember()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTeamMemberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object teamId_ = ""; + /** + *
+       * team_id is the ID of the team in which the role is to be updated
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * team_id is the ID of the team in which the role is to be updated
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * team_id is the ID of the team in which the role is to be updated
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team_id is the ID of the team in which the role is to be updated
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + teamId_ = getDefaultInstance().getTeamId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * team_id is the ID of the team in which the role is to be updated
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The bytes for teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Teams.TeamMember teamMember_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder> teamMemberBuilder_; + /** + *
+       * team_member is the team member being updated.
+       * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return Whether the teamMember field is set. + */ + public boolean hasTeamMember() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * team_member is the team member being updated.
+       * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return The teamMember. + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getTeamMember() { + if (teamMemberBuilder_ == null) { + return teamMember_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance() : teamMember_; + } else { + return teamMemberBuilder_.getMessage(); + } + } + /** + *
+       * team_member is the team member being updated.
+       * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public Builder setTeamMember(io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (teamMemberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamMember_ = value; + } else { + teamMemberBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * team_member is the team member being updated.
+       * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public Builder setTeamMember( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder builderForValue) { + if (teamMemberBuilder_ == null) { + teamMember_ = builderForValue.build(); + } else { + teamMemberBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * team_member is the team member being updated.
+       * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public Builder mergeTeamMember(io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (teamMemberBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + teamMember_ != null && + teamMember_ != io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance()) { + getTeamMemberBuilder().mergeFrom(value); + } else { + teamMember_ = value; + } + } else { + teamMemberBuilder_.mergeFrom(value); + } + if (teamMember_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * team_member is the team member being updated.
+       * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public Builder clearTeamMember() { + bitField0_ = (bitField0_ & ~0x00000002); + teamMember_ = null; + if (teamMemberBuilder_ != null) { + teamMemberBuilder_.dispose(); + teamMemberBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * team_member is the team member being updated.
+       * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder getTeamMemberBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTeamMemberFieldBuilder().getBuilder(); + } + /** + *
+       * team_member is the team member being updated.
+       * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getTeamMemberOrBuilder() { + if (teamMemberBuilder_ != null) { + return teamMemberBuilder_.getMessageOrBuilder(); + } else { + return teamMember_ == null ? + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance() : teamMember_; + } + } + /** + *
+       * team_member is the team member being updated.
+       * 
+ * + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder> + getTeamMemberFieldBuilder() { + if (teamMemberBuilder_ == null) { + teamMemberBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder>( + getTeamMember(), + getParentForChildren(), + isClean()); + teamMember_ = null; + } + return teamMemberBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdateTeamMemberRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdateTeamMemberRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTeamMemberRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateTeamMemberResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdateTeamMemberResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return Whether the teamMember field is set. + */ + boolean hasTeamMember(); + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return The teamMember. + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamMember getTeamMember(); + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getTeamMemberOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateTeamMemberResponse} + */ + public static final class UpdateTeamMemberResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdateTeamMemberResponse) + UpdateTeamMemberResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateTeamMemberResponse.class.getName()); + } + // Use UpdateTeamMemberResponse.newBuilder() to construct. + private UpdateTeamMemberResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateTeamMemberResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse.class, io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse.Builder.class); + } + + private int bitField0_; + public static final int TEAM_MEMBER_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.Teams.TeamMember teamMember_; + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return Whether the teamMember field is set. + */ + @java.lang.Override + public boolean hasTeamMember() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return The teamMember. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getTeamMember() { + return teamMember_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance() : teamMember_; + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getTeamMemberOrBuilder() { + return teamMember_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance() : teamMember_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTeamMember()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTeamMember()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse other = (io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse) obj; + + if (hasTeamMember() != other.hasTeamMember()) return false; + if (hasTeamMember()) { + if (!getTeamMember() + .equals(other.getTeamMember())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTeamMember()) { + hash = (37 * hash) + TEAM_MEMBER_FIELD_NUMBER; + hash = (53 * hash) + getTeamMember().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdateTeamMemberResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdateTeamMemberResponse) + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse.class, io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTeamMemberFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamMember_ = null; + if (teamMemberBuilder_ != null) { + teamMemberBuilder_.dispose(); + teamMemberBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse result = new io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamMember_ = teamMemberBuilder_ == null + ? teamMember_ + : teamMemberBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse.getDefaultInstance()) return this; + if (other.hasTeamMember()) { + mergeTeamMember(other.getTeamMember()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + input.readMessage( + getTeamMemberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Teams.TeamMember teamMember_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder> teamMemberBuilder_; + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return Whether the teamMember field is set. + */ + public boolean hasTeamMember() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + * @return The teamMember. + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember getTeamMember() { + if (teamMemberBuilder_ == null) { + return teamMember_ == null ? io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance() : teamMember_; + } else { + return teamMemberBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public Builder setTeamMember(io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (teamMemberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamMember_ = value; + } else { + teamMemberBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public Builder setTeamMember( + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder builderForValue) { + if (teamMemberBuilder_ == null) { + teamMember_ = builderForValue.build(); + } else { + teamMemberBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public Builder mergeTeamMember(io.gitpod.publicapi.experimental.v1.Teams.TeamMember value) { + if (teamMemberBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + teamMember_ != null && + teamMember_ != io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance()) { + getTeamMemberBuilder().mergeFrom(value); + } else { + teamMember_ = value; + } + } else { + teamMemberBuilder_.mergeFrom(value); + } + if (teamMember_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public Builder clearTeamMember() { + bitField0_ = (bitField0_ & ~0x00000001); + teamMember_ = null; + if (teamMemberBuilder_ != null) { + teamMemberBuilder_.dispose(); + teamMemberBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder getTeamMemberBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTeamMemberFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + public io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder getTeamMemberOrBuilder() { + if (teamMemberBuilder_ != null) { + return teamMemberBuilder_.getMessageOrBuilder(); + } else { + return teamMember_ == null ? + io.gitpod.publicapi.experimental.v1.Teams.TeamMember.getDefaultInstance() : teamMember_; + } + } + /** + * .gitpod.experimental.v1.TeamMember team_member = 2 [json_name = "teamMember"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder> + getTeamMemberFieldBuilder() { + if (teamMemberBuilder_ == null) { + teamMemberBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Teams.TeamMember, io.gitpod.publicapi.experimental.v1.Teams.TeamMember.Builder, io.gitpod.publicapi.experimental.v1.Teams.TeamMemberOrBuilder>( + getTeamMember(), + getParentForChildren(), + isClean()); + teamMember_ = null; + } + return teamMemberBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdateTeamMemberResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdateTeamMemberResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTeamMemberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteTeamMemberRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteTeamMemberRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * team_id is the ID of the team in which a member should be deleted.
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + java.lang.String getTeamId(); + /** + *
+     * team_id is the ID of the team in which a member should be deleted.
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + com.google.protobuf.ByteString + getTeamIdBytes(); + + /** + *
+     * team_member_id is the ID of the TeamMember that should be deleted from the team.
+     * 
+ * + * string team_member_id = 2 [json_name = "teamMemberId"]; + * @return The teamMemberId. + */ + java.lang.String getTeamMemberId(); + /** + *
+     * team_member_id is the ID of the TeamMember that should be deleted from the team.
+     * 
+ * + * string team_member_id = 2 [json_name = "teamMemberId"]; + * @return The bytes for teamMemberId. + */ + com.google.protobuf.ByteString + getTeamMemberIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteTeamMemberRequest} + */ + public static final class DeleteTeamMemberRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteTeamMemberRequest) + DeleteTeamMemberRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteTeamMemberRequest.class.getName()); + } + // Use DeleteTeamMemberRequest.newBuilder() to construct. + private DeleteTeamMemberRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteTeamMemberRequest() { + teamId_ = ""; + teamMemberId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest.class, io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest.Builder.class); + } + + public static final int TEAM_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object teamId_ = ""; + /** + *
+     * team_id is the ID of the team in which a member should be deleted.
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + @java.lang.Override + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } + } + /** + *
+     * team_id is the ID of the team in which a member should be deleted.
+     * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_MEMBER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object teamMemberId_ = ""; + /** + *
+     * team_member_id is the ID of the TeamMember that should be deleted from the team.
+     * 
+ * + * string team_member_id = 2 [json_name = "teamMemberId"]; + * @return The teamMemberId. + */ + @java.lang.Override + public java.lang.String getTeamMemberId() { + java.lang.Object ref = teamMemberId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamMemberId_ = s; + return s; + } + } + /** + *
+     * team_member_id is the ID of the TeamMember that should be deleted from the team.
+     * 
+ * + * string team_member_id = 2 [json_name = "teamMemberId"]; + * @return The bytes for teamMemberId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTeamMemberIdBytes() { + java.lang.Object ref = teamMemberId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamMemberId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamMemberId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, teamMemberId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamMemberId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, teamMemberId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest other = (io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest) obj; + + if (!getTeamId() + .equals(other.getTeamId())) return false; + if (!getTeamMemberId() + .equals(other.getTeamMemberId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamId().hashCode(); + hash = (37 * hash) + TEAM_MEMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamMemberId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteTeamMemberRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteTeamMemberRequest) + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest.class, io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamId_ = ""; + teamMemberId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest build() { + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest result = new io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamId_ = teamId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.teamMemberId_ = teamMemberId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest.getDefaultInstance()) return this; + if (!other.getTeamId().isEmpty()) { + teamId_ = other.teamId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTeamMemberId().isEmpty()) { + teamMemberId_ = other.teamMemberId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + teamMemberId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object teamId_ = ""; + /** + *
+       * team_id is the ID of the team in which a member should be deleted.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The teamId. + */ + public java.lang.String getTeamId() { + java.lang.Object ref = teamId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * team_id is the ID of the team in which a member should be deleted.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return The bytes for teamId. + */ + public com.google.protobuf.ByteString + getTeamIdBytes() { + java.lang.Object ref = teamId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * team_id is the ID of the team in which a member should be deleted.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * team_id is the ID of the team in which a member should be deleted.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + teamId_ = getDefaultInstance().getTeamId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * team_id is the ID of the team in which a member should be deleted.
+       * 
+ * + * string team_id = 1 [json_name = "teamId"]; + * @param value The bytes for teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object teamMemberId_ = ""; + /** + *
+       * team_member_id is the ID of the TeamMember that should be deleted from the team.
+       * 
+ * + * string team_member_id = 2 [json_name = "teamMemberId"]; + * @return The teamMemberId. + */ + public java.lang.String getTeamMemberId() { + java.lang.Object ref = teamMemberId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamMemberId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * team_member_id is the ID of the TeamMember that should be deleted from the team.
+       * 
+ * + * string team_member_id = 2 [json_name = "teamMemberId"]; + * @return The bytes for teamMemberId. + */ + public com.google.protobuf.ByteString + getTeamMemberIdBytes() { + java.lang.Object ref = teamMemberId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + teamMemberId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * team_member_id is the ID of the TeamMember that should be deleted from the team.
+       * 
+ * + * string team_member_id = 2 [json_name = "teamMemberId"]; + * @param value The teamMemberId to set. + * @return This builder for chaining. + */ + public Builder setTeamMemberId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + teamMemberId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * team_member_id is the ID of the TeamMember that should be deleted from the team.
+       * 
+ * + * string team_member_id = 2 [json_name = "teamMemberId"]; + * @return This builder for chaining. + */ + public Builder clearTeamMemberId() { + teamMemberId_ = getDefaultInstance().getTeamMemberId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * team_member_id is the ID of the TeamMember that should be deleted from the team.
+       * 
+ * + * string team_member_id = 2 [json_name = "teamMemberId"]; + * @param value The bytes for teamMemberId to set. + * @return This builder for chaining. + */ + public Builder setTeamMemberIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + teamMemberId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteTeamMemberRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteTeamMemberRequest) + private static final io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamMemberRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteTeamMemberResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteTeamMemberResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteTeamMemberResponse} + */ + public static final class DeleteTeamMemberResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteTeamMemberResponse) + DeleteTeamMemberResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteTeamMemberResponse.class.getName()); + } + // Use DeleteTeamMemberResponse.newBuilder() to construct. + private DeleteTeamMemberResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteTeamMemberResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse.class, io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse other = (io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteTeamMemberResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteTeamMemberResponse) + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse.class, io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Teams.internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse build() { + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse result = new io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteTeamMemberResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteTeamMemberResponse) + private static final io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamMemberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_Team_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_Team_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_TeamMember_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_TeamMember_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_TeamInvitation_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_TeamInvitation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateTeamRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateTeamRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateTeamResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateTeamResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetTeamRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetTeamRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetTeamResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetTeamResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListTeamsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListTeamsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListTeamsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListTeamsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteTeamRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteTeamRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteTeamResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteTeamResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_JoinTeamRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_JoinTeamRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_JoinTeamResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_JoinTeamResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListTeamMembersRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListTeamMembersRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListTeamMembersResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListTeamMembersResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\"gitpod/experimental/v1/teams.proto\022\026gi" + + "tpod.experimental.v1\032\037google/protobuf/ti" + + "mestamp.proto\"\315\001\n\004Team\022\016\n\002id\030\001 \001(\tR\002id\022\022" + + "\n\004name\030\002 \001(\tR\004name\022\022\n\004slug\030\003 \001(\tR\004slug\022<" + + "\n\007members\030\004 \003(\0132\".gitpod.experimental.v1" + + ".TeamMemberR\007members\022O\n\017team_invitation\030" + + "\005 \001(\0132&.gitpod.experimental.v1.TeamInvit" + + "ationR\016teamInvitation\"\257\002\n\nTeamMember\022\027\n\007" + + "user_id\030\001 \001(\tR\006userId\0224\n\004role\030\002 \001(\0162 .gi" + + "tpod.experimental.v1.TeamRoleR\004role\022=\n\014m" + + "ember_since\030\003 \001(\0132\032.google.protobuf.Time" + + "stampR\013memberSince\022\035\n\navatar_url\030\004 \001(\tR\t" + + "avatarUrl\022\033\n\tfull_name\030\005 \001(\tR\010fullName\022#" + + "\n\rprimary_email\030\006 \001(\tR\014primaryEmail\0222\n\025o" + + "wned_by_organization\030\007 \001(\010R\023ownedByOrgan" + + "ization\" \n\016TeamInvitation\022\016\n\002id\030\001 \001(\tR\002i" + + "d\"\'\n\021CreateTeamRequest\022\022\n\004name\030\001 \001(\tR\004na" + + "me\"F\n\022CreateTeamResponse\0220\n\004team\030\001 \001(\0132\034" + + ".gitpod.experimental.v1.TeamR\004team\")\n\016Ge" + + "tTeamRequest\022\027\n\007team_id\030\001 \001(\tR\006teamId\"C\n" + + "\017GetTeamResponse\0220\n\004team\030\001 \001(\0132\034.gitpod." + + "experimental.v1.TeamR\004team\"\022\n\020ListTeamsR" + + "equest\"G\n\021ListTeamsResponse\0222\n\005teams\030\001 \003" + + "(\0132\034.gitpod.experimental.v1.TeamR\005teams\"" + + ",\n\021DeleteTeamRequest\022\027\n\007team_id\030\001 \001(\tR\006t" + + "eamId\"\024\n\022DeleteTeamResponse\"3\n\030GetTeamIn" + + "vitationRequest\022\027\n\007team_id\030\001 \001(\tR\006teamId" + + "\"l\n\031GetTeamInvitationResponse\022O\n\017team_in" + + "vitation\030\001 \001(\0132&.gitpod.experimental.v1." + + "TeamInvitationR\016teamInvitation\"6\n\017JoinTe" + + "amRequest\022#\n\rinvitation_id\030\001 \001(\tR\014invita" + + "tionId\"D\n\020JoinTeamResponse\0220\n\004team\030\001 \001(\013" + + "2\034.gitpod.experimental.v1.TeamR\004team\"5\n\032" + + "ResetTeamInvitationRequest\022\027\n\007team_id\030\001 " + + "\001(\tR\006teamId\"n\n\033ResetTeamInvitationRespon" + + "se\022O\n\017team_invitation\030\001 \001(\0132&.gitpod.exp" + + "erimental.v1.TeamInvitationR\016teamInvitat" + + "ion\"1\n\026ListTeamMembersRequest\022\027\n\007team_id" + + "\030\001 \001(\tR\006teamId\"W\n\027ListTeamMembersRespons" + + "e\022<\n\007members\030\001 \003(\0132\".gitpod.experimental" + + ".v1.TeamMemberR\007members\"w\n\027UpdateTeamMem" + + "berRequest\022\027\n\007team_id\030\001 \001(\tR\006teamId\022C\n\013t" + + "eam_member\030\002 \001(\0132\".gitpod.experimental.v" + + "1.TeamMemberR\nteamMember\"_\n\030UpdateTeamMe" + + "mberResponse\022C\n\013team_member\030\002 \001(\0132\".gitp" + + "od.experimental.v1.TeamMemberR\nteamMembe" + + "r\"X\n\027DeleteTeamMemberRequest\022\027\n\007team_id\030" + + "\001 \001(\tR\006teamId\022$\n\016team_member_id\030\002 \001(\tR\014t" + + "eamMemberId\"\032\n\030DeleteTeamMemberResponse*" + + "P\n\010TeamRole\022\031\n\025TEAM_ROLE_UNSPECIFIED\020\000\022\023" + + "\n\017TEAM_ROLE_OWNER\020\001\022\024\n\020TEAM_ROLE_MEMBER\020" + + "\0022\346\010\n\014TeamsService\022e\n\nCreateTeam\022).gitpo" + + "d.experimental.v1.CreateTeamRequest\032*.gi" + + "tpod.experimental.v1.CreateTeamResponse\"" + + "\000\022\\\n\007GetTeam\022&.gitpod.experimental.v1.Ge" + + "tTeamRequest\032\'.gitpod.experimental.v1.Ge" + + "tTeamResponse\"\000\022b\n\tListTeams\022(.gitpod.ex" + + "perimental.v1.ListTeamsRequest\032).gitpod." + + "experimental.v1.ListTeamsResponse\"\000\022e\n\nD" + + "eleteTeam\022).gitpod.experimental.v1.Delet" + + "eTeamRequest\032*.gitpod.experimental.v1.De" + + "leteTeamResponse\"\000\022z\n\021GetTeamInvitation\022" + + "0.gitpod.experimental.v1.GetTeamInvitati" + + "onRequest\0321.gitpod.experimental.v1.GetTe" + + "amInvitationResponse\"\000\022_\n\010JoinTeam\022\'.git" + + "pod.experimental.v1.JoinTeamRequest\032(.gi" + + "tpod.experimental.v1.JoinTeamResponse\"\000\022" + + "\200\001\n\023ResetTeamInvitation\0222.gitpod.experim" + + "ental.v1.ResetTeamInvitationRequest\0323.gi" + + "tpod.experimental.v1.ResetTeamInvitation" + + "Response\"\000\022t\n\017ListTeamMembers\022..gitpod.e" + + "xperimental.v1.ListTeamMembersRequest\032/." + + "gitpod.experimental.v1.ListTeamMembersRe" + + "sponse\"\000\022w\n\020UpdateTeamMember\022/.gitpod.ex" + + "perimental.v1.UpdateTeamMemberRequest\0320." + + "gitpod.experimental.v1.UpdateTeamMemberR" + + "esponse\"\000\022w\n\020DeleteTeamMember\022/.gitpod.e" + + "xperimental.v1.DeleteTeamMemberRequest\0320" + + ".gitpod.experimental.v1.DeleteTeamMember" + + "Response\"\000Bk\n#io.gitpod.publicapi.experi" + + "mental.v1ZDgithub.com/gitpod-io/gitpod/c" + + "omponents/public-api/go/experimental/v1b" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_experimental_v1_Team_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_Team_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_Team_descriptor, + new java.lang.String[] { "Id", "Name", "Slug", "Members", "TeamInvitation", }); + internal_static_gitpod_experimental_v1_TeamMember_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_TeamMember_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_TeamMember_descriptor, + new java.lang.String[] { "UserId", "Role", "MemberSince", "AvatarUrl", "FullName", "PrimaryEmail", "OwnedByOrganization", }); + internal_static_gitpod_experimental_v1_TeamInvitation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_experimental_v1_TeamInvitation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_TeamInvitation_descriptor, + new java.lang.String[] { "Id", }); + internal_static_gitpod_experimental_v1_CreateTeamRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_experimental_v1_CreateTeamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateTeamRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_gitpod_experimental_v1_CreateTeamResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_experimental_v1_CreateTeamResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateTeamResponse_descriptor, + new java.lang.String[] { "Team", }); + internal_static_gitpod_experimental_v1_GetTeamRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_experimental_v1_GetTeamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetTeamRequest_descriptor, + new java.lang.String[] { "TeamId", }); + internal_static_gitpod_experimental_v1_GetTeamResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_experimental_v1_GetTeamResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetTeamResponse_descriptor, + new java.lang.String[] { "Team", }); + internal_static_gitpod_experimental_v1_ListTeamsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_experimental_v1_ListTeamsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListTeamsRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_ListTeamsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_experimental_v1_ListTeamsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListTeamsResponse_descriptor, + new java.lang.String[] { "Teams", }); + internal_static_gitpod_experimental_v1_DeleteTeamRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_experimental_v1_DeleteTeamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteTeamRequest_descriptor, + new java.lang.String[] { "TeamId", }); + internal_static_gitpod_experimental_v1_DeleteTeamResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_experimental_v1_DeleteTeamResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteTeamResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetTeamInvitationRequest_descriptor, + new java.lang.String[] { "TeamId", }); + internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetTeamInvitationResponse_descriptor, + new java.lang.String[] { "TeamInvitation", }); + internal_static_gitpod_experimental_v1_JoinTeamRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_experimental_v1_JoinTeamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_JoinTeamRequest_descriptor, + new java.lang.String[] { "InvitationId", }); + internal_static_gitpod_experimental_v1_JoinTeamResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_experimental_v1_JoinTeamResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_JoinTeamResponse_descriptor, + new java.lang.String[] { "Team", }); + internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ResetTeamInvitationRequest_descriptor, + new java.lang.String[] { "TeamId", }); + internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ResetTeamInvitationResponse_descriptor, + new java.lang.String[] { "TeamInvitation", }); + internal_static_gitpod_experimental_v1_ListTeamMembersRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_gitpod_experimental_v1_ListTeamMembersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListTeamMembersRequest_descriptor, + new java.lang.String[] { "TeamId", }); + internal_static_gitpod_experimental_v1_ListTeamMembersResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_gitpod_experimental_v1_ListTeamMembersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListTeamMembersResponse_descriptor, + new java.lang.String[] { "Members", }); + internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdateTeamMemberRequest_descriptor, + new java.lang.String[] { "TeamId", "TeamMember", }); + internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdateTeamMemberResponse_descriptor, + new java.lang.String[] { "TeamMember", }); + internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteTeamMemberRequest_descriptor, + new java.lang.String[] { "TeamId", "TeamMemberId", }); + internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteTeamMemberResponse_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TeamsServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TeamsServiceClient.kt new file mode 100644 index 00000000000000..5d400ec47e3f29 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TeamsServiceClient.kt @@ -0,0 +1,179 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/teams.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class TeamsServiceClient( + private val client: ProtocolClientInterface, +) : TeamsServiceClientInterface { + /** + * CreateTeam creates a new Team. + */ + override suspend fun createTeam(request: Teams.CreateTeamRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/CreateTeam", + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.CreateTeamResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetTeam retrieves a single Team. + */ + override suspend fun getTeam(request: Teams.GetTeamRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/GetTeam", + io.gitpod.publicapi.experimental.v1.Teams.GetTeamRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.GetTeamResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListTeams lists the caller has access to. + */ + override suspend fun listTeams(request: Teams.ListTeamsRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/ListTeams", + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.ListTeamsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteTeam deletes the specified team. + */ + override suspend fun deleteTeam(request: Teams.DeleteTeamRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/DeleteTeam", + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetTeamInvitation retrieves the invitation for a Team. + */ + override suspend fun getTeamInvitation(request: Teams.GetTeamInvitationRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/GetTeamInvitation", + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.GetTeamInvitationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * JoinTeam makes the caller a TeamMember of the Team. + */ + override suspend fun joinTeam(request: Teams.JoinTeamRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/JoinTeam", + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.JoinTeamResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ResetTeamInvitation resets the invitation_id for a Team. + */ + override suspend fun resetTeamInvitation(request: Teams.ResetTeamInvitationRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/ResetTeamInvitation", + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.ResetTeamInvitationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListTeamMembers lists the members of a Team. + */ + override suspend fun listTeamMembers(request: Teams.ListTeamMembersRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/ListTeamMembers", + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.ListTeamMembersResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateTeamMember updates team membership properties. + */ + override suspend fun updateTeamMember(request: Teams.UpdateTeamMemberRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/UpdateTeamMember", + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.UpdateTeamMemberResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteTeamMember removes a TeamMember from the Team. + */ + override suspend fun deleteTeamMember(request: Teams.DeleteTeamMemberRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TeamsService/DeleteTeamMember", + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberRequest::class, + io.gitpod.publicapi.experimental.v1.Teams.DeleteTeamMemberResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TeamsServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TeamsServiceClientInterface.kt new file mode 100644 index 00000000000000..289b974ea9aef6 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TeamsServiceClientInterface.kt @@ -0,0 +1,74 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/teams.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface TeamsServiceClientInterface { + /** + * CreateTeam creates a new Team. + */ + public suspend fun createTeam(request: Teams.CreateTeamRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * GetTeam retrieves a single Team. + */ + public suspend fun getTeam(request: Teams.GetTeamRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * ListTeams lists the caller has access to. + */ + public suspend fun listTeams(request: Teams.ListTeamsRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * DeleteTeam deletes the specified team. + */ + public suspend fun deleteTeam(request: Teams.DeleteTeamRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * GetTeamInvitation retrieves the invitation for a Team. + */ + public suspend fun getTeamInvitation(request: Teams.GetTeamInvitationRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * JoinTeam makes the caller a TeamMember of the Team. + */ + public suspend fun joinTeam(request: Teams.JoinTeamRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * ResetTeamInvitation resets the invitation_id for a Team. + */ + public suspend fun resetTeamInvitation(request: Teams.ResetTeamInvitationRequest, headers: Headers + = emptyMap()): ResponseMessage + + /** + * ListTeamMembers lists the members of a Team. + */ + public suspend fun listTeamMembers(request: Teams.ListTeamMembersRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * UpdateTeamMember updates team membership properties. + */ + public suspend fun updateTeamMember(request: Teams.UpdateTeamMemberRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * DeleteTeamMember removes a TeamMember from the Team. + */ + public suspend fun deleteTeamMember(request: Teams.DeleteTeamMemberRequest, headers: Headers = + emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Tokens.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Tokens.java new file mode 100644 index 00000000000000..f6d9bc40b785a1 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Tokens.java @@ -0,0 +1,9334 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/tokens.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class Tokens { + private Tokens() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Tokens.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PersonalAccessTokenOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.PersonalAccessToken) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the unique identifier of this token
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is the unique identifier of this token
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * value is the secret value of the token
+     * The value property is only populated when the PersonalAccessToken is first created, and never again.
+     * Read only.
+     * 
+ * + * string value = 2 [json_name = "value"]; + * @return The value. + */ + java.lang.String getValue(); + /** + *
+     * value is the secret value of the token
+     * The value property is only populated when the PersonalAccessToken is first created, and never again.
+     * Read only.
+     * 
+ * + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + *
+     * name is the name of the token for humans, set by the user.
+     * Must match regexp ^[a-zA-Z0-9-_ ]{3,63}$
+     * 
+ * + * string name = 3 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the name of the token for humans, set by the user.
+     * Must match regexp ^[a-zA-Z0-9-_ ]{3,63}$
+     * 
+ * + * string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * expiration_time is the time when the token expires
+     * Read only.
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + * @return Whether the expirationTime field is set. + */ + boolean hasExpirationTime(); + /** + *
+     * expiration_time is the time when the token expires
+     * Read only.
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + * @return The expirationTime. + */ + com.google.protobuf.Timestamp getExpirationTime(); + /** + *
+     * expiration_time is the time when the token expires
+     * Read only.
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder(); + + /** + *
+     * scopes are the permission scopes attached to this token.
+     * By default, no scopes are attached and therefore no access is granted to this token.
+     * Specifying '*' grants all permissions the owner of the token has.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + java.util.List + getScopesList(); + /** + *
+     * scopes are the permission scopes attached to this token.
+     * By default, no scopes are attached and therefore no access is granted to this token.
+     * Specifying '*' grants all permissions the owner of the token has.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return The count of scopes. + */ + int getScopesCount(); + /** + *
+     * scopes are the permission scopes attached to this token.
+     * By default, no scopes are attached and therefore no access is granted to this token.
+     * Specifying '*' grants all permissions the owner of the token has.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + *
+     * scopes are the permission scopes attached to this token.
+     * By default, no scopes are attached and therefore no access is granted to this token.
+     * Specifying '*' grants all permissions the owner of the token has.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString + getScopesBytes(int index); + + /** + *
+     * created_time is the time when the token was first created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + *
+     * created_time is the time when the token was first created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * created_time is the time when the token was first created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * PersonalAccessToken represents details of an access token for personal use.
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.PersonalAccessToken} + */ + public static final class PersonalAccessToken extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.PersonalAccessToken) + PersonalAccessTokenOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PersonalAccessToken.class.getName()); + } + // Use PersonalAccessToken.newBuilder() to construct. + private PersonalAccessToken(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PersonalAccessToken() { + id_ = ""; + value_ = ""; + name_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_PersonalAccessToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_PersonalAccessToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.class, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is the unique identifier of this token
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is the unique identifier of this token
+     * Read only.
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + *
+     * value is the secret value of the token
+     * The value property is only populated when the PersonalAccessToken is first created, and never again.
+     * Read only.
+     * 
+ * + * string value = 2 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + *
+     * value is the secret value of the token
+     * The value property is only populated when the PersonalAccessToken is first created, and never again.
+     * Read only.
+     * 
+ * + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the name of the token for humans, set by the user.
+     * Must match regexp ^[a-zA-Z0-9-_ ]{3,63}$
+     * 
+ * + * string name = 3 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the name of the token for humans, set by the user.
+     * Must match regexp ^[a-zA-Z0-9-_ ]{3,63}$
+     * 
+ * + * string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRATION_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp expirationTime_; + /** + *
+     * expiration_time is the time when the token expires
+     * Read only.
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + * @return Whether the expirationTime field is set. + */ + @java.lang.Override + public boolean hasExpirationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * expiration_time is the time when the token expires
+     * Read only.
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + * @return The expirationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpirationTime() { + return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + } + /** + *
+     * expiration_time is the time when the token expires
+     * Read only.
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { + return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + } + + public static final int SCOPES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * scopes are the permission scopes attached to this token.
+     * By default, no scopes are attached and therefore no access is granted to this token.
+     * Specifying '*' grants all permissions the owner of the token has.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + *
+     * scopes are the permission scopes attached to this token.
+     * By default, no scopes are attached and therefore no access is granted to this token.
+     * Specifying '*' grants all permissions the owner of the token has.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + *
+     * scopes are the permission scopes attached to this token.
+     * By default, no scopes are attached and therefore no access is granted to this token.
+     * Specifying '*' grants all permissions the owner of the token has.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + *
+     * scopes are the permission scopes attached to this token.
+     * By default, no scopes are attached and therefore no access is granted to this token.
+     * Specifying '*' grants all permissions the owner of the token has.
+     * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int CREATED_AT_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * created_time is the time when the token was first created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * created_time is the time when the token was first created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * created_time is the time when the token was first created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getExpirationTime()); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, scopes_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getCreatedAt()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExpirationTime()); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreatedAt()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken other = (io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getName() + .equals(other.getName())) return false; + if (hasExpirationTime() != other.hasExpirationTime()) return false; + if (hasExpirationTime()) { + if (!getExpirationTime() + .equals(other.getExpirationTime())) return false; + } + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasExpirationTime()) { + hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpirationTime().hashCode(); + } + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PersonalAccessToken represents details of an access token for personal use.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.PersonalAccessToken} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.PersonalAccessToken) + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_PersonalAccessToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_PersonalAccessToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.class, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getExpirationTimeFieldBuilder(); + getCreatedAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + value_ = ""; + name_ = ""; + expirationTime_ = null; + if (expirationTimeBuilder_ != null) { + expirationTimeBuilder_.dispose(); + expirationTimeBuilder_ = null; + } + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_PersonalAccessToken_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken build() { + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken result = new io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.expirationTime_ = expirationTimeBuilder_ == null + ? expirationTime_ + : expirationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasExpirationTime()) { + mergeExpirationTime(other.getExpirationTime()); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000010; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getExpirationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 42 + case 50: { + input.readMessage( + getCreatedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is the unique identifier of this token
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is the unique identifier of this token
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is the unique identifier of this token
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of this token
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of this token
+       * Read only.
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+       * value is the secret value of the token
+       * The value property is only populated when the PersonalAccessToken is first created, and never again.
+       * Read only.
+       * 
+ * + * string value = 2 [json_name = "value"]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * value is the secret value of the token
+       * The value property is only populated when the PersonalAccessToken is first created, and never again.
+       * Read only.
+       * 
+ * + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * value is the secret value of the token
+       * The value property is only populated when the PersonalAccessToken is first created, and never again.
+       * Read only.
+       * 
+ * + * string value = 2 [json_name = "value"]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * value is the secret value of the token
+       * The value property is only populated when the PersonalAccessToken is first created, and never again.
+       * Read only.
+       * 
+ * + * string value = 2 [json_name = "value"]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * value is the secret value of the token
+       * The value property is only populated when the PersonalAccessToken is first created, and never again.
+       * Read only.
+       * 
+ * + * string value = 2 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * name is the name of the token for humans, set by the user.
+       * Must match regexp ^[a-zA-Z0-9-_ ]{3,63}$
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the name of the token for humans, set by the user.
+       * Must match regexp ^[a-zA-Z0-9-_ ]{3,63}$
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the name of the token for humans, set by the user.
+       * Must match regexp ^[a-zA-Z0-9-_ ]{3,63}$
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * name is the name of the token for humans, set by the user.
+       * Must match regexp ^[a-zA-Z0-9-_ ]{3,63}$
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * name is the name of the token for humans, set by the user.
+       * Must match regexp ^[a-zA-Z0-9-_ ]{3,63}$
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expirationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationTimeBuilder_; + /** + *
+       * expiration_time is the time when the token expires
+       * Read only.
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + * @return Whether the expirationTime field is set. + */ + public boolean hasExpirationTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * expiration_time is the time when the token expires
+       * Read only.
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + * @return The expirationTime. + */ + public com.google.protobuf.Timestamp getExpirationTime() { + if (expirationTimeBuilder_ == null) { + return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + } else { + return expirationTimeBuilder_.getMessage(); + } + } + /** + *
+       * expiration_time is the time when the token expires
+       * Read only.
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + */ + public Builder setExpirationTime(com.google.protobuf.Timestamp value) { + if (expirationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expirationTime_ = value; + } else { + expirationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * expiration_time is the time when the token expires
+       * Read only.
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + */ + public Builder setExpirationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expirationTimeBuilder_ == null) { + expirationTime_ = builderForValue.build(); + } else { + expirationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * expiration_time is the time when the token expires
+       * Read only.
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + */ + public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { + if (expirationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + expirationTime_ != null && + expirationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpirationTimeBuilder().mergeFrom(value); + } else { + expirationTime_ = value; + } + } else { + expirationTimeBuilder_.mergeFrom(value); + } + if (expirationTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * expiration_time is the time when the token expires
+       * Read only.
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + */ + public Builder clearExpirationTime() { + bitField0_ = (bitField0_ & ~0x00000008); + expirationTime_ = null; + if (expirationTimeBuilder_ != null) { + expirationTimeBuilder_.dispose(); + expirationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * expiration_time is the time when the token expires
+       * Read only.
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getExpirationTimeFieldBuilder().getBuilder(); + } + /** + *
+       * expiration_time is the time when the token expires
+       * Read only.
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { + if (expirationTimeBuilder_ != null) { + return expirationTimeBuilder_.getMessageOrBuilder(); + } else { + return expirationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + } + } + /** + *
+       * expiration_time is the time when the token expires
+       * Read only.
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 4 [json_name = "expirationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpirationTimeFieldBuilder() { + if (expirationTimeBuilder_ == null) { + expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpirationTime(), + getParentForChildren(), + isClean()); + expirationTime_ = null; + } + return expirationTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000010; + } + /** + *
+       * scopes are the permission scopes attached to this token.
+       * By default, no scopes are attached and therefore no access is granted to this token.
+       * Specifying '*' grants all permissions the owner of the token has.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + *
+       * scopes are the permission scopes attached to this token.
+       * By default, no scopes are attached and therefore no access is granted to this token.
+       * Specifying '*' grants all permissions the owner of the token has.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + *
+       * scopes are the permission scopes attached to this token.
+       * By default, no scopes are attached and therefore no access is granted to this token.
+       * Specifying '*' grants all permissions the owner of the token has.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + *
+       * scopes are the permission scopes attached to this token.
+       * By default, no scopes are attached and therefore no access is granted to this token.
+       * Specifying '*' grants all permissions the owner of the token has.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + /** + *
+       * scopes are the permission scopes attached to this token.
+       * By default, no scopes are attached and therefore no access is granted to this token.
+       * Specifying '*' grants all permissions the owner of the token has.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * scopes are the permission scopes attached to this token.
+       * By default, no scopes are attached and therefore no access is granted to this token.
+       * Specifying '*' grants all permissions the owner of the token has.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * scopes are the permission scopes attached to this token.
+       * By default, no scopes are attached and therefore no access is granted to this token.
+       * Specifying '*' grants all permissions the owner of the token has.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes( + java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scopes_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * scopes are the permission scopes attached to this token.
+       * By default, no scopes are attached and therefore no access is granted to this token.
+       * Specifying '*' grants all permissions the owner of the token has.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + *
+       * scopes are the permission scopes attached to this token.
+       * By default, no scopes are attached and therefore no access is granted to this token.
+       * Specifying '*' grants all permissions the owner of the token has.
+       * 
+ * + * repeated string scopes = 5 [json_name = "scopes"]; + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * created_time is the time when the token was first created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+       * created_time is the time when the token was first created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * created_time is the time when the token was first created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * created_time is the time when the token was first created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * created_time is the time when the token was first created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+       * created_time is the time when the token was first created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000020); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * created_time is the time when the token was first created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * created_time is the time when the token was first created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * created_time is the time when the token was first created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.PersonalAccessToken) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.PersonalAccessToken) + private static final io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonalAccessToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreatePersonalAccessTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreatePersonalAccessTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + boolean hasToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreatePersonalAccessTokenRequest} + */ + public static final class CreatePersonalAccessTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreatePersonalAccessTokenRequest) + CreatePersonalAccessTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreatePersonalAccessTokenRequest.class.getName()); + } + // Use CreatePersonalAccessTokenRequest.newBuilder() to construct. + private CreatePersonalAccessTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreatePersonalAccessTokenRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + @java.lang.Override + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getToken()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getToken()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest other = (io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest) obj; + + if (hasToken() != other.hasToken()) return false; + if (hasToken()) { + if (!getToken() + .equals(other.getToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToken()) { + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreatePersonalAccessTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreatePersonalAccessTokenRequest) + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTokenFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest build() { + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest result = new io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = tokenBuilder_ == null + ? token_ + : tokenBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest.getDefaultInstance()) return this; + if (other.hasToken()) { + mergeToken(other.getToken()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTokenFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> tokenBuilder_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + if (tokenBuilder_ == null) { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } else { + return tokenBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + } else { + tokenBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder builderForValue) { + if (tokenBuilder_ == null) { + token_ = builderForValue.build(); + } else { + tokenBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder mergeToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + token_ != null && + token_ != io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance()) { + getTokenBuilder().mergeFrom(value); + } else { + token_ = value; + } + } else { + tokenBuilder_.mergeFrom(value); + } + if (token_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder clearToken() { + bitField0_ = (bitField0_ & ~0x00000001); + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder getTokenBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokenFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + if (tokenBuilder_ != null) { + return tokenBuilder_.getMessageOrBuilder(); + } else { + return token_ == null ? + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> + getTokenFieldBuilder() { + if (tokenBuilder_ == null) { + tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder>( + getToken(), + getParentForChildren(), + isClean()); + token_ = null; + } + return tokenBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreatePersonalAccessTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreatePersonalAccessTokenRequest) + private static final io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePersonalAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreatePersonalAccessTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreatePersonalAccessTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + boolean hasToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreatePersonalAccessTokenResponse} + */ + public static final class CreatePersonalAccessTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreatePersonalAccessTokenResponse) + CreatePersonalAccessTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreatePersonalAccessTokenResponse.class.getName()); + } + // Use CreatePersonalAccessTokenResponse.newBuilder() to construct. + private CreatePersonalAccessTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreatePersonalAccessTokenResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + @java.lang.Override + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getToken()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getToken()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse other = (io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse) obj; + + if (hasToken() != other.hasToken()) return false; + if (hasToken()) { + if (!getToken() + .equals(other.getToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToken()) { + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreatePersonalAccessTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreatePersonalAccessTokenResponse) + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTokenFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse build() { + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse result = new io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = tokenBuilder_ == null + ? token_ + : tokenBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse.getDefaultInstance()) return this; + if (other.hasToken()) { + mergeToken(other.getToken()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTokenFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> tokenBuilder_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + if (tokenBuilder_ == null) { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } else { + return tokenBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + } else { + tokenBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder builderForValue) { + if (tokenBuilder_ == null) { + token_ = builderForValue.build(); + } else { + tokenBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder mergeToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + token_ != null && + token_ != io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance()) { + getTokenBuilder().mergeFrom(value); + } else { + token_ = value; + } + } else { + tokenBuilder_.mergeFrom(value); + } + if (token_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder clearToken() { + bitField0_ = (bitField0_ & ~0x00000001); + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder getTokenBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokenFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + if (tokenBuilder_ != null) { + return tokenBuilder_.getMessageOrBuilder(); + } else { + return token_ == null ? + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> + getTokenFieldBuilder() { + if (tokenBuilder_ == null) { + tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder>( + getToken(), + getParentForChildren(), + isClean()); + token_ = null; + } + return tokenBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreatePersonalAccessTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreatePersonalAccessTokenResponse) + private static final io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePersonalAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetPersonalAccessTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetPersonalAccessTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetPersonalAccessTokenRequest} + */ + public static final class GetPersonalAccessTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetPersonalAccessTokenRequest) + GetPersonalAccessTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetPersonalAccessTokenRequest.class.getName()); + } + // Use GetPersonalAccessTokenRequest.newBuilder() to construct. + private GetPersonalAccessTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetPersonalAccessTokenRequest() { + id_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest other = (io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetPersonalAccessTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetPersonalAccessTokenRequest) + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest build() { + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest result = new io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetPersonalAccessTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetPersonalAccessTokenRequest) + private static final io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPersonalAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetPersonalAccessTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetPersonalAccessTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + boolean hasToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetPersonalAccessTokenResponse} + */ + public static final class GetPersonalAccessTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetPersonalAccessTokenResponse) + GetPersonalAccessTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetPersonalAccessTokenResponse.class.getName()); + } + // Use GetPersonalAccessTokenResponse.newBuilder() to construct. + private GetPersonalAccessTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetPersonalAccessTokenResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + @java.lang.Override + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getToken()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getToken()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse other = (io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse) obj; + + if (hasToken() != other.hasToken()) return false; + if (hasToken()) { + if (!getToken() + .equals(other.getToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToken()) { + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetPersonalAccessTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetPersonalAccessTokenResponse) + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTokenFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse build() { + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse result = new io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = tokenBuilder_ == null + ? token_ + : tokenBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse.getDefaultInstance()) return this; + if (other.hasToken()) { + mergeToken(other.getToken()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTokenFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> tokenBuilder_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + if (tokenBuilder_ == null) { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } else { + return tokenBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + } else { + tokenBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder builderForValue) { + if (tokenBuilder_ == null) { + token_ = builderForValue.build(); + } else { + tokenBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder mergeToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + token_ != null && + token_ != io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance()) { + getTokenBuilder().mergeFrom(value); + } else { + token_ = value; + } + } else { + tokenBuilder_.mergeFrom(value); + } + if (token_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder clearToken() { + bitField0_ = (bitField0_ & ~0x00000001); + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder getTokenBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokenFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + if (tokenBuilder_ != null) { + return tokenBuilder_.getMessageOrBuilder(); + } else { + return token_ == null ? + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> + getTokenFieldBuilder() { + if (tokenBuilder_ == null) { + tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder>( + getToken(), + getParentForChildren(), + isClean()); + token_ = null; + } + return tokenBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetPersonalAccessTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetPersonalAccessTokenResponse) + private static final io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPersonalAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListPersonalAccessTokensRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListPersonalAccessTokensRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination(); + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListPersonalAccessTokensRequest} + */ + public static final class ListPersonalAccessTokensRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListPersonalAccessTokensRequest) + ListPersonalAccessTokensRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListPersonalAccessTokensRequest.class.getName()); + } + // Use ListPersonalAccessTokensRequest.newBuilder() to construct. + private ListPersonalAccessTokensRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListPersonalAccessTokensRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination pagination_; + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination() { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + /** + *
+     * Page information
+     * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest other = (io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListPersonalAccessTokensRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListPersonalAccessTokensRequest) + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest build() { + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest result = new io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder> paginationBuilder_; + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + } + /** + *
+       * Page information
+       * 
+ * + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListPersonalAccessTokensRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListPersonalAccessTokensRequest) + private static final io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPersonalAccessTokensRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListPersonalAccessTokensResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListPersonalAccessTokensResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + java.util.List + getTokensList(); + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getTokens(int index); + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + int getTokensCount(); + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + java.util.List + getTokensOrBuilderList(); + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokensOrBuilder( + int index); + + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @return The totalResults. + */ + long getTotalResults(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListPersonalAccessTokensResponse} + */ + public static final class ListPersonalAccessTokensResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListPersonalAccessTokensResponse) + ListPersonalAccessTokensResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListPersonalAccessTokensResponse.class.getName()); + } + // Use ListPersonalAccessTokensResponse.newBuilder() to construct. + private ListPersonalAccessTokensResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListPersonalAccessTokensResponse() { + tokens_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse.Builder.class); + } + + public static final int TOKENS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List tokens_; + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public java.util.List getTokensList() { + return tokens_; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public java.util.List + getTokensOrBuilderList() { + return tokens_; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public int getTokensCount() { + return tokens_.size(); + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getTokens(int index) { + return tokens_.get(index); + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokensOrBuilder( + int index) { + return tokens_.get(index); + } + + public static final int TOTAL_RESULTS_FIELD_NUMBER = 2; + private long totalResults_ = 0L; + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @return The totalResults. + */ + @java.lang.Override + public long getTotalResults() { + return totalResults_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tokens_.size(); i++) { + output.writeMessage(1, tokens_.get(i)); + } + if (totalResults_ != 0L) { + output.writeInt64(2, totalResults_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tokens_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tokens_.get(i)); + } + if (totalResults_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalResults_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse other = (io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse) obj; + + if (!getTokensList() + .equals(other.getTokensList())) return false; + if (getTotalResults() + != other.getTotalResults()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTokensCount() > 0) { + hash = (37 * hash) + TOKENS_FIELD_NUMBER; + hash = (53 * hash) + getTokensList().hashCode(); + } + hash = (37 * hash) + TOTAL_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalResults()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListPersonalAccessTokensResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListPersonalAccessTokensResponse) + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tokensBuilder_ == null) { + tokens_ = java.util.Collections.emptyList(); + } else { + tokens_ = null; + tokensBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + totalResults_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse build() { + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse result = new io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse result) { + if (tokensBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tokens_ = java.util.Collections.unmodifiableList(tokens_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tokens_ = tokens_; + } else { + result.tokens_ = tokensBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalResults_ = totalResults_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse.getDefaultInstance()) return this; + if (tokensBuilder_ == null) { + if (!other.tokens_.isEmpty()) { + if (tokens_.isEmpty()) { + tokens_ = other.tokens_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTokensIsMutable(); + tokens_.addAll(other.tokens_); + } + onChanged(); + } + } else { + if (!other.tokens_.isEmpty()) { + if (tokensBuilder_.isEmpty()) { + tokensBuilder_.dispose(); + tokensBuilder_ = null; + tokens_ = other.tokens_; + bitField0_ = (bitField0_ & ~0x00000001); + tokensBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getTokensFieldBuilder() : null; + } else { + tokensBuilder_.addAllMessages(other.tokens_); + } + } + } + if (other.getTotalResults() != 0L) { + setTotalResults(other.getTotalResults()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.parser(), + extensionRegistry); + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.add(m); + } else { + tokensBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + totalResults_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List tokens_ = + java.util.Collections.emptyList(); + private void ensureTokensIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tokens_ = new java.util.ArrayList(tokens_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> tokensBuilder_; + + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public java.util.List getTokensList() { + if (tokensBuilder_ == null) { + return java.util.Collections.unmodifiableList(tokens_); + } else { + return tokensBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public int getTokensCount() { + if (tokensBuilder_ == null) { + return tokens_.size(); + } else { + return tokensBuilder_.getCount(); + } + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getTokens(int index) { + if (tokensBuilder_ == null) { + return tokens_.get(index); + } else { + return tokensBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public Builder setTokens( + int index, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokensIsMutable(); + tokens_.set(index, value); + onChanged(); + } else { + tokensBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public Builder setTokens( + int index, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder builderForValue) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.set(index, builderForValue.build()); + onChanged(); + } else { + tokensBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addTokens(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokensIsMutable(); + tokens_.add(value); + onChanged(); + } else { + tokensBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addTokens( + int index, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokensIsMutable(); + tokens_.add(index, value); + onChanged(); + } else { + tokensBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addTokens( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder builderForValue) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.add(builderForValue.build()); + onChanged(); + } else { + tokensBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addTokens( + int index, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder builderForValue) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.add(index, builderForValue.build()); + onChanged(); + } else { + tokensBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addAllTokens( + java.lang.Iterable values) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tokens_); + onChanged(); + } else { + tokensBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public Builder clearTokens() { + if (tokensBuilder_ == null) { + tokens_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tokensBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public Builder removeTokens(int index) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.remove(index); + onChanged(); + } else { + tokensBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder getTokensBuilder( + int index) { + return getTokensFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokensOrBuilder( + int index) { + if (tokensBuilder_ == null) { + return tokens_.get(index); } else { + return tokensBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public java.util.List + getTokensOrBuilderList() { + if (tokensBuilder_ != null) { + return tokensBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tokens_); + } + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder addTokensBuilder() { + return getTokensFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder addTokensBuilder( + int index) { + return getTokensFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.PersonalAccessToken tokens = 1 [json_name = "tokens"]; + */ + public java.util.List + getTokensBuilderList() { + return getTokensFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> + getTokensFieldBuilder() { + if (tokensBuilder_ == null) { + tokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder>( + tokens_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tokens_ = null; + } + return tokensBuilder_; + } + + private long totalResults_ ; + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @return The totalResults. + */ + @java.lang.Override + public long getTotalResults() { + return totalResults_; + } + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @param value The totalResults to set. + * @return This builder for chaining. + */ + public Builder setTotalResults(long value) { + + totalResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int64 total_results = 2 [json_name = "totalResults"]; + * @return This builder for chaining. + */ + public Builder clearTotalResults() { + bitField0_ = (bitField0_ & ~0x00000002); + totalResults_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListPersonalAccessTokensResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListPersonalAccessTokensResponse) + private static final io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPersonalAccessTokensResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RegeneratePersonalAccessTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.RegeneratePersonalAccessTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the ID of the PersonalAccessToken
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is the ID of the PersonalAccessToken
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * expiration time is the time when the new token should expire
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + * @return Whether the expirationTime field is set. + */ + boolean hasExpirationTime(); + /** + *
+     * expiration time is the time when the new token should expire
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + * @return The expirationTime. + */ + com.google.protobuf.Timestamp getExpirationTime(); + /** + *
+     * expiration time is the time when the new token should expire
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.RegeneratePersonalAccessTokenRequest} + */ + public static final class RegeneratePersonalAccessTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.RegeneratePersonalAccessTokenRequest) + RegeneratePersonalAccessTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + RegeneratePersonalAccessTokenRequest.class.getName()); + } + // Use RegeneratePersonalAccessTokenRequest.newBuilder() to construct. + private RegeneratePersonalAccessTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RegeneratePersonalAccessTokenRequest() { + id_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is the ID of the PersonalAccessToken
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is the ID of the PersonalAccessToken
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRATION_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp expirationTime_; + /** + *
+     * expiration time is the time when the new token should expire
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + * @return Whether the expirationTime field is set. + */ + @java.lang.Override + public boolean hasExpirationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * expiration time is the time when the new token should expire
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + * @return The expirationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpirationTime() { + return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + } + /** + *
+     * expiration time is the time when the new token should expire
+     * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { + return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getExpirationTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpirationTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest other = (io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasExpirationTime() != other.hasExpirationTime()) return false; + if (hasExpirationTime()) { + if (!getExpirationTime() + .equals(other.getExpirationTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasExpirationTime()) { + hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpirationTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.RegeneratePersonalAccessTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.RegeneratePersonalAccessTokenRequest) + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getExpirationTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + expirationTime_ = null; + if (expirationTimeBuilder_ != null) { + expirationTimeBuilder_.dispose(); + expirationTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest build() { + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest result = new io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expirationTime_ = expirationTimeBuilder_ == null + ? expirationTime_ + : expirationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasExpirationTime()) { + mergeExpirationTime(other.getExpirationTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpirationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is the ID of the PersonalAccessToken
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is the ID of the PersonalAccessToken
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is the ID of the PersonalAccessToken
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the ID of the PersonalAccessToken
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is the ID of the PersonalAccessToken
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expirationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationTimeBuilder_; + /** + *
+       * expiration time is the time when the new token should expire
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + * @return Whether the expirationTime field is set. + */ + public boolean hasExpirationTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * expiration time is the time when the new token should expire
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + * @return The expirationTime. + */ + public com.google.protobuf.Timestamp getExpirationTime() { + if (expirationTimeBuilder_ == null) { + return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + } else { + return expirationTimeBuilder_.getMessage(); + } + } + /** + *
+       * expiration time is the time when the new token should expire
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + */ + public Builder setExpirationTime(com.google.protobuf.Timestamp value) { + if (expirationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expirationTime_ = value; + } else { + expirationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * expiration time is the time when the new token should expire
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + */ + public Builder setExpirationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expirationTimeBuilder_ == null) { + expirationTime_ = builderForValue.build(); + } else { + expirationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * expiration time is the time when the new token should expire
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + */ + public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { + if (expirationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + expirationTime_ != null && + expirationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpirationTimeBuilder().mergeFrom(value); + } else { + expirationTime_ = value; + } + } else { + expirationTimeBuilder_.mergeFrom(value); + } + if (expirationTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * expiration time is the time when the new token should expire
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + */ + public Builder clearExpirationTime() { + bitField0_ = (bitField0_ & ~0x00000002); + expirationTime_ = null; + if (expirationTimeBuilder_ != null) { + expirationTimeBuilder_.dispose(); + expirationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * expiration time is the time when the new token should expire
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExpirationTimeFieldBuilder().getBuilder(); + } + /** + *
+       * expiration time is the time when the new token should expire
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { + if (expirationTimeBuilder_ != null) { + return expirationTimeBuilder_.getMessageOrBuilder(); + } else { + return expirationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + } + } + /** + *
+       * expiration time is the time when the new token should expire
+       * 
+ * + * .google.protobuf.Timestamp expiration_time = 2 [json_name = "expirationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpirationTimeFieldBuilder() { + if (expirationTimeBuilder_ == null) { + expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpirationTime(), + getParentForChildren(), + isClean()); + expirationTime_ = null; + } + return expirationTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.RegeneratePersonalAccessTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.RegeneratePersonalAccessTokenRequest) + private static final io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegeneratePersonalAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RegeneratePersonalAccessTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.RegeneratePersonalAccessTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + boolean hasToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.RegeneratePersonalAccessTokenResponse} + */ + public static final class RegeneratePersonalAccessTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.RegeneratePersonalAccessTokenResponse) + RegeneratePersonalAccessTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + RegeneratePersonalAccessTokenResponse.class.getName()); + } + // Use RegeneratePersonalAccessTokenResponse.newBuilder() to construct. + private RegeneratePersonalAccessTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RegeneratePersonalAccessTokenResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + @java.lang.Override + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getToken()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getToken()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse other = (io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse) obj; + + if (hasToken() != other.hasToken()) return false; + if (hasToken()) { + if (!getToken() + .equals(other.getToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToken()) { + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.RegeneratePersonalAccessTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.RegeneratePersonalAccessTokenResponse) + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTokenFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse build() { + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse result = new io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = tokenBuilder_ == null + ? token_ + : tokenBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse.getDefaultInstance()) return this; + if (other.hasToken()) { + mergeToken(other.getToken()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTokenFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> tokenBuilder_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + if (tokenBuilder_ == null) { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } else { + return tokenBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + } else { + tokenBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder builderForValue) { + if (tokenBuilder_ == null) { + token_ = builderForValue.build(); + } else { + tokenBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder mergeToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + token_ != null && + token_ != io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance()) { + getTokenBuilder().mergeFrom(value); + } else { + token_ = value; + } + } else { + tokenBuilder_.mergeFrom(value); + } + if (token_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder clearToken() { + bitField0_ = (bitField0_ & ~0x00000001); + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder getTokenBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokenFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + if (tokenBuilder_ != null) { + return tokenBuilder_.getMessageOrBuilder(); + } else { + return token_ == null ? + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> + getTokenFieldBuilder() { + if (tokenBuilder_ == null) { + tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder>( + getToken(), + getParentForChildren(), + isClean()); + token_ = null; + } + return tokenBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.RegeneratePersonalAccessTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.RegeneratePersonalAccessTokenResponse) + private static final io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegeneratePersonalAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdatePersonalAccessTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdatePersonalAccessTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + boolean hasToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder(); + + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdatePersonalAccessTokenRequest} + */ + public static final class UpdatePersonalAccessTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdatePersonalAccessTokenRequest) + UpdatePersonalAccessTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdatePersonalAccessTokenRequest.class.getName()); + } + // Use UpdatePersonalAccessTokenRequest.newBuilder() to construct. + private UpdatePersonalAccessTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdatePersonalAccessTokenRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + @java.lang.Override + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getToken()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getToken()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest other = (io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest) obj; + + if (hasToken() != other.hasToken()) return false; + if (hasToken()) { + if (!getToken() + .equals(other.getToken())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToken()) { + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdatePersonalAccessTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdatePersonalAccessTokenRequest) + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTokenFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest build() { + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest result = new io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = tokenBuilder_ == null + ? token_ + : tokenBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest.getDefaultInstance()) return this; + if (other.hasToken()) { + mergeToken(other.getToken()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTokenFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> tokenBuilder_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + if (tokenBuilder_ == null) { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } else { + return tokenBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + } else { + tokenBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder builderForValue) { + if (tokenBuilder_ == null) { + token_ = builderForValue.build(); + } else { + tokenBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder mergeToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + token_ != null && + token_ != io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance()) { + getTokenBuilder().mergeFrom(value); + } else { + token_ = value; + } + } else { + tokenBuilder_.mergeFrom(value); + } + if (token_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder clearToken() { + bitField0_ = (bitField0_ & ~0x00000001); + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder getTokenBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokenFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + if (tokenBuilder_ != null) { + return tokenBuilder_.getMessageOrBuilder(); + } else { + return token_ == null ? + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> + getTokenFieldBuilder() { + if (tokenBuilder_ == null) { + tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder>( + getToken(), + getParentForChildren(), + isClean()); + token_ = null; + } + return tokenBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + * .google.protobuf.FieldMask update_mask = 2 [json_name = "updateMask"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdatePersonalAccessTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdatePersonalAccessTokenRequest) + private static final io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePersonalAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdatePersonalAccessTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdatePersonalAccessTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + boolean hasToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken(); + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdatePersonalAccessTokenResponse} + */ + public static final class UpdatePersonalAccessTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdatePersonalAccessTokenResponse) + UpdatePersonalAccessTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdatePersonalAccessTokenResponse.class.getName()); + } + // Use UpdatePersonalAccessTokenResponse.newBuilder() to construct. + private UpdatePersonalAccessTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdatePersonalAccessTokenResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + @java.lang.Override + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getToken()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getToken()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse other = (io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse) obj; + + if (hasToken() != other.hasToken()) return false; + if (hasToken()) { + if (!getToken() + .equals(other.getToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToken()) { + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdatePersonalAccessTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdatePersonalAccessTokenResponse) + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTokenFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse build() { + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse result = new io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = tokenBuilder_ == null + ? token_ + : tokenBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse.getDefaultInstance()) return this; + if (other.hasToken()) { + mergeToken(other.getToken()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTokenFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken token_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> tokenBuilder_; + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + * @return The token. + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken getToken() { + if (tokenBuilder_ == null) { + return token_ == null ? io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } else { + return tokenBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + } else { + tokenBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder setToken( + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder builderForValue) { + if (tokenBuilder_ == null) { + token_ = builderForValue.build(); + } else { + tokenBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder mergeToken(io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken value) { + if (tokenBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + token_ != null && + token_ != io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance()) { + getTokenBuilder().mergeFrom(value); + } else { + token_ = value; + } + } else { + tokenBuilder_.mergeFrom(value); + } + if (token_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public Builder clearToken() { + bitField0_ = (bitField0_ & ~0x00000001); + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder getTokenBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokenFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder getTokenOrBuilder() { + if (tokenBuilder_ != null) { + return tokenBuilder_.getMessageOrBuilder(); + } else { + return token_ == null ? + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.getDefaultInstance() : token_; + } + } + /** + * .gitpod.experimental.v1.PersonalAccessToken token = 1 [json_name = "token"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder> + getTokenFieldBuilder() { + if (tokenBuilder_ == null) { + tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessToken.Builder, io.gitpod.publicapi.experimental.v1.Tokens.PersonalAccessTokenOrBuilder>( + getToken(), + getParentForChildren(), + isClean()); + token_ = null; + } + return tokenBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdatePersonalAccessTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdatePersonalAccessTokenResponse) + private static final io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePersonalAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeletePersonalAccessTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeletePersonalAccessTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeletePersonalAccessTokenRequest} + */ + public static final class DeletePersonalAccessTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeletePersonalAccessTokenRequest) + DeletePersonalAccessTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeletePersonalAccessTokenRequest.class.getName()); + } + // Use DeletePersonalAccessTokenRequest.newBuilder() to construct. + private DeletePersonalAccessTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeletePersonalAccessTokenRequest() { + id_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest other = (io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeletePersonalAccessTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeletePersonalAccessTokenRequest) + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest.class, io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest build() { + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest result = new io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeletePersonalAccessTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeletePersonalAccessTokenRequest) + private static final io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePersonalAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeletePersonalAccessTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeletePersonalAccessTokenResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeletePersonalAccessTokenResponse} + */ + public static final class DeletePersonalAccessTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeletePersonalAccessTokenResponse) + DeletePersonalAccessTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeletePersonalAccessTokenResponse.class.getName()); + } + // Use DeletePersonalAccessTokenResponse.newBuilder() to construct. + private DeletePersonalAccessTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeletePersonalAccessTokenResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse other = (io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeletePersonalAccessTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeletePersonalAccessTokenResponse) + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse.class, io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse build() { + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse result = new io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeletePersonalAccessTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeletePersonalAccessTokenResponse) + private static final io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePersonalAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_PersonalAccessToken_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_PersonalAccessToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n#gitpod/experimental/v1/tokens.proto\022\026g" + + "itpod.experimental.v1\032\'gitpod/experiment" + + "al/v1/pagination.proto\032 google/protobuf/" + + "field_mask.proto\032\037google/protobuf/timest" + + "amp.proto\"\347\001\n\023PersonalAccessToken\022\016\n\002id\030" + + "\001 \001(\tR\002id\022\024\n\005value\030\002 \001(\tR\005value\022\022\n\004name\030" + + "\003 \001(\tR\004name\022C\n\017expiration_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.TimestampR\016expirationTime" + + "\022\026\n\006scopes\030\005 \003(\tR\006scopes\0229\n\ncreated_at\030\006" + + " \001(\0132\032.google.protobuf.TimestampR\tcreate" + + "dAt\"e\n CreatePersonalAccessTokenRequest\022" + + "A\n\005token\030\001 \001(\0132+.gitpod.experimental.v1." + + "PersonalAccessTokenR\005token\"f\n!CreatePers" + + "onalAccessTokenResponse\022A\n\005token\030\001 \001(\0132+" + + ".gitpod.experimental.v1.PersonalAccessTo" + + "kenR\005token\"/\n\035GetPersonalAccessTokenRequ" + + "est\022\016\n\002id\030\001 \001(\tR\002id\"c\n\036GetPersonalAccess" + + "TokenResponse\022A\n\005token\030\001 \001(\0132+.gitpod.ex" + + "perimental.v1.PersonalAccessTokenR\005token" + + "\"e\n\037ListPersonalAccessTokensRequest\022B\n\np" + + "agination\030\001 \001(\0132\".gitpod.experimental.v1" + + ".PaginationR\npagination\"\214\001\n ListPersonal" + + "AccessTokensResponse\022C\n\006tokens\030\001 \003(\0132+.g" + + "itpod.experimental.v1.PersonalAccessToke" + + "nR\006tokens\022#\n\rtotal_results\030\002 \001(\003R\014totalR" + + "esults\"{\n$RegeneratePersonalAccessTokenR" + + "equest\022\016\n\002id\030\001 \001(\tR\002id\022C\n\017expiration_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampR\016exp" + + "irationTime\"j\n%RegeneratePersonalAccessT" + + "okenResponse\022A\n\005token\030\001 \001(\0132+.gitpod.exp" + + "erimental.v1.PersonalAccessTokenR\005token\"" + + "\242\001\n UpdatePersonalAccessTokenRequest\022A\n\005" + + "token\030\001 \001(\0132+.gitpod.experimental.v1.Per" + + "sonalAccessTokenR\005token\022;\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskR\nupdate" + + "Mask\"f\n!UpdatePersonalAccessTokenRespons" + + "e\022A\n\005token\030\001 \001(\0132+.gitpod.experimental.v" + + "1.PersonalAccessTokenR\005token\"2\n DeletePe" + + "rsonalAccessTokenRequest\022\016\n\002id\030\001 \001(\tR\002id" + + "\"#\n!DeletePersonalAccessTokenResponse2\215\007" + + "\n\rTokensService\022\222\001\n\031CreatePersonalAccess" + + "Token\0228.gitpod.experimental.v1.CreatePer" + + "sonalAccessTokenRequest\0329.gitpod.experim" + + "ental.v1.CreatePersonalAccessTokenRespon" + + "se\"\000\022\211\001\n\026GetPersonalAccessToken\0225.gitpod" + + ".experimental.v1.GetPersonalAccessTokenR" + + "equest\0326.gitpod.experimental.v1.GetPerso" + + "nalAccessTokenResponse\"\000\022\217\001\n\030ListPersona" + + "lAccessTokens\0227.gitpod.experimental.v1.L" + + "istPersonalAccessTokensRequest\0328.gitpod." + + "experimental.v1.ListPersonalAccessTokens" + + "Response\"\000\022\236\001\n\035RegeneratePersonalAccessT" + + "oken\022<.gitpod.experimental.v1.Regenerate" + + "PersonalAccessTokenRequest\032=.gitpod.expe" + + "rimental.v1.RegeneratePersonalAccessToke" + + "nResponse\"\000\022\222\001\n\031UpdatePersonalAccessToke" + + "n\0228.gitpod.experimental.v1.UpdatePersona" + + "lAccessTokenRequest\0329.gitpod.experimenta" + + "l.v1.UpdatePersonalAccessTokenResponse\"\000" + + "\022\222\001\n\031DeletePersonalAccessToken\0228.gitpod." + + "experimental.v1.DeletePersonalAccessToke" + + "nRequest\0329.gitpod.experimental.v1.Delete" + + "PersonalAccessTokenResponse\"\000Bk\n#io.gitp" + + "od.publicapi.experimental.v1ZDgithub.com" + + "/gitpod-io/gitpod/components/public-api/" + + "go/experimental/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_experimental_v1_PersonalAccessToken_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_PersonalAccessToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_PersonalAccessToken_descriptor, + new java.lang.String[] { "Id", "Value", "Name", "ExpirationTime", "Scopes", "CreatedAt", }); + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenRequest_descriptor, + new java.lang.String[] { "Token", }); + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreatePersonalAccessTokenResponse_descriptor, + new java.lang.String[] { "Token", }); + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetPersonalAccessTokenResponse_descriptor, + new java.lang.String[] { "Token", }); + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensRequest_descriptor, + new java.lang.String[] { "Pagination", }); + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListPersonalAccessTokensResponse_descriptor, + new java.lang.String[] { "Tokens", "TotalResults", }); + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenRequest_descriptor, + new java.lang.String[] { "Id", "ExpirationTime", }); + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_RegeneratePersonalAccessTokenResponse_descriptor, + new java.lang.String[] { "Token", }); + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenRequest_descriptor, + new java.lang.String[] { "Token", "UpdateMask", }); + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdatePersonalAccessTokenResponse_descriptor, + new java.lang.String[] { "Token", }); + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeletePersonalAccessTokenResponse_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TokensServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TokensServiceClient.kt new file mode 100644 index 00000000000000..53e384f7e88b14 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TokensServiceClient.kt @@ -0,0 +1,117 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/tokens.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class TokensServiceClient( + private val client: ProtocolClientInterface, +) : TokensServiceClientInterface { + /** + * CreatePersonalAccessTokenRequest creates a new token. + */ + override suspend fun createPersonalAccessToken(request: Tokens.CreatePersonalAccessTokenRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TokensService/CreatePersonalAccessToken", + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenRequest::class, + io.gitpod.publicapi.experimental.v1.Tokens.CreatePersonalAccessTokenResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListPersonalAccessTokens returns token by ID. + */ + override suspend fun getPersonalAccessToken(request: Tokens.GetPersonalAccessTokenRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TokensService/GetPersonalAccessToken", + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenRequest::class, + io.gitpod.publicapi.experimental.v1.Tokens.GetPersonalAccessTokenResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListPersonalAccessTokens returns a list of tokens. + */ + override suspend fun listPersonalAccessTokens(request: Tokens.ListPersonalAccessTokensRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TokensService/ListPersonalAccessTokens", + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensRequest::class, + io.gitpod.publicapi.experimental.v1.Tokens.ListPersonalAccessTokensResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * RegeneratePersonalAccessToken generates a new token and replaces the previous one. + */ + override suspend + fun regeneratePersonalAccessToken(request: Tokens.RegeneratePersonalAccessTokenRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TokensService/RegeneratePersonalAccessToken", + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenRequest::class, + io.gitpod.publicapi.experimental.v1.Tokens.RegeneratePersonalAccessTokenResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdatePersonalAccessToken updates writable properties of a PersonalAccessToken. + */ + override suspend fun updatePersonalAccessToken(request: Tokens.UpdatePersonalAccessTokenRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TokensService/UpdatePersonalAccessToken", + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenRequest::class, + io.gitpod.publicapi.experimental.v1.Tokens.UpdatePersonalAccessTokenResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeletePersonalAccessToken removes token by ID. + */ + override suspend fun deletePersonalAccessToken(request: Tokens.DeletePersonalAccessTokenRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.TokensService/DeletePersonalAccessToken", + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenRequest::class, + io.gitpod.publicapi.experimental.v1.Tokens.DeletePersonalAccessTokenResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TokensServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TokensServiceClientInterface.kt new file mode 100644 index 00000000000000..a879c8486d9188 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/TokensServiceClientInterface.kt @@ -0,0 +1,51 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/tokens.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface TokensServiceClientInterface { + /** + * CreatePersonalAccessTokenRequest creates a new token. + */ + public suspend fun createPersonalAccessToken(request: Tokens.CreatePersonalAccessTokenRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * ListPersonalAccessTokens returns token by ID. + */ + public suspend fun getPersonalAccessToken(request: Tokens.GetPersonalAccessTokenRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * ListPersonalAccessTokens returns a list of tokens. + */ + public suspend fun listPersonalAccessTokens(request: Tokens.ListPersonalAccessTokensRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * RegeneratePersonalAccessToken generates a new token and replaces the previous one. + */ + public suspend + fun regeneratePersonalAccessToken(request: Tokens.RegeneratePersonalAccessTokenRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * UpdatePersonalAccessToken updates writable properties of a PersonalAccessToken. + */ + public suspend fun updatePersonalAccessToken(request: Tokens.UpdatePersonalAccessTokenRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * DeletePersonalAccessToken removes token by ID. + */ + public suspend fun deletePersonalAccessToken(request: Tokens.DeletePersonalAccessTokenRequest, + headers: Headers = emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserOuterClass.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserOuterClass.java new file mode 100644 index 00000000000000..825754dde7c3fa --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserOuterClass.java @@ -0,0 +1,11917 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/user.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class UserOuterClass { + private UserOuterClass() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UserOuterClass.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface UserOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.User) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is a UUID of the user
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is a UUID of the user
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * name is the username
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the username
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * avatar_url is a link to the user avatar
+     * 
+ * + * string avatar_url = 3 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + java.lang.String getAvatarUrl(); + /** + *
+     * avatar_url is a link to the user avatar
+     * 
+ * + * string avatar_url = 3 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + com.google.protobuf.ByteString + getAvatarUrlBytes(); + + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.User} + */ + public static final class User extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.User) + UserOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + User.class.getName()); + } + // Use User.newBuilder() to construct. + private User(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private User() { + id_ = ""; + name_ = ""; + avatarUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.User.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.User.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is a UUID of the user
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is a UUID of the user
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the username
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the username
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVATAR_URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object avatarUrl_ = ""; + /** + *
+     * avatar_url is a link to the user avatar
+     * 
+ * + * string avatar_url = 3 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + @java.lang.Override + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } + } + /** + *
+     * avatar_url is a link to the user avatar
+     * 
+ * + * string avatar_url = 3 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, avatarUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreatedAt()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, avatarUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreatedAt()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.User)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.User other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.User) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAvatarUrl() + .equals(other.getAvatarUrl())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AVATAR_URL_FIELD_NUMBER; + hash = (53 * hash) + getAvatarUrl().hashCode(); + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.User prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.User} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.User) + io.gitpod.publicapi.experimental.v1.UserOuterClass.UserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.User.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.User.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.User.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + name_ = ""; + avatarUrl_ = ""; + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_User_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.User getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.User.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.User build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.User result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.User buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.User result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.User(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.User result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.avatarUrl_ = avatarUrl_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.User) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.User)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.User other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.User.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAvatarUrl().isEmpty()) { + avatarUrl_ = other.avatarUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + avatarUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + input.readMessage( + getCreatedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * name is the username
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the username
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the username
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * name is the username
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * name is the username
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object avatarUrl_ = ""; + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 3 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 3 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 3 [json_name = "avatarUrl"]; + * @param value The avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + avatarUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 3 [json_name = "avatarUrl"]; + * @return This builder for chaining. + */ + public Builder clearAvatarUrl() { + avatarUrl_ = getDefaultInstance().getAvatarUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 3 [json_name = "avatarUrl"]; + * @param value The bytes for avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + avatarUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000008); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.User) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.User) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.User DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.User(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.User getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.User getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SSHKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.SSHKey) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is a UUID of the SSH key
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is a UUID of the SSH key
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * name is the name of the SSH key
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the name of the SSH key
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * key is the public SSH key
+     * 
+ * + * string key = 3 [json_name = "key"]; + * @return The key. + */ + java.lang.String getKey(); + /** + *
+     * key is the public SSH key
+     * 
+ * + * string key = 3 [json_name = "key"]; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.SSHKey} + */ + public static final class SSHKey extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.SSHKey) + SSHKeyOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SSHKey.class.getName()); + } + // Use SSHKey.newBuilder() to construct. + private SSHKey(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SSHKey() { + id_ = ""; + name_ = ""; + key_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_SSHKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_SSHKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is a UUID of the SSH key
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is a UUID of the SSH key
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the name of the SSH key
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the name of the SSH key
+     * 
+ * + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + *
+     * key is the public SSH key
+     * 
+ * + * string key = 3 [json_name = "key"]; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + *
+     * key is the public SSH key
+     * 
+ * + * string key = 3 [json_name = "key"]; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreatedAt()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreatedAt()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.SSHKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.SSHKey) + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_SSHKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_SSHKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + name_ = ""; + key_ = ""; + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_SSHKey_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.key_ = key_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCreatedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is a UUID of the SSH key
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is a UUID of the SSH key
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is a UUID of the SSH key
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is a UUID of the SSH key
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is a UUID of the SSH key
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * name is the name of the SSH key
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the name of the SSH key
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the name of the SSH key
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * name is the name of the SSH key
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * name is the name of the SSH key
+       * 
+ * + * string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       * key is the public SSH key
+       * 
+ * + * string key = 3 [json_name = "key"]; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * key is the public SSH key
+       * 
+ * + * string key = 3 [json_name = "key"]; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * key is the public SSH key
+       * 
+ * + * string key = 3 [json_name = "key"]; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + key_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * key is the public SSH key
+       * 
+ * + * string key = 3 [json_name = "key"]; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * key is the public SSH key
+       * 
+ * + * string key = 3 [json_name = "key"]; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000008); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.SSHKey) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.SSHKey) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SSHKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetAuthenticatedUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetAuthenticatedUserRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetAuthenticatedUserRequest} + */ + public static final class GetAuthenticatedUserRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetAuthenticatedUserRequest) + GetAuthenticatedUserRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetAuthenticatedUserRequest.class.getName()); + } + // Use GetAuthenticatedUserRequest.newBuilder() to construct. + private GetAuthenticatedUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetAuthenticatedUserRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetAuthenticatedUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetAuthenticatedUserRequest) + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetAuthenticatedUserRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetAuthenticatedUserRequest) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthenticatedUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetAuthenticatedUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetAuthenticatedUserResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.User getUser(); + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.UserOrBuilder getUserOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetAuthenticatedUserResponse} + */ + public static final class GetAuthenticatedUserResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetAuthenticatedUserResponse) + GetAuthenticatedUserResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetAuthenticatedUserResponse.class.getName()); + } + // Use GetAuthenticatedUserResponse.newBuilder() to construct. + private GetAuthenticatedUserResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetAuthenticatedUserResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse.Builder.class); + } + + private int bitField0_; + public static final int USER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.UserOuterClass.User user_; + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.User getUser() { + return user_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + return user_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUser()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUser()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetAuthenticatedUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetAuthenticatedUserResponse) + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUserFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.UserOuterClass.User user_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.User, io.gitpod.publicapi.experimental.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.UserOrBuilder> userBuilder_; + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.User getUser() { + if (userBuilder_ == null) { + return user_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser(io.gitpod.publicapi.experimental.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + } else { + userBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser( + io.gitpod.publicapi.experimental.v1.UserOuterClass.User.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + */ + public Builder mergeUser(io.gitpod.publicapi.experimental.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + user_ != null && + user_ != io.gitpod.publicapi.experimental.v1.UserOuterClass.User.getDefaultInstance()) { + getUserBuilder().mergeFrom(value); + } else { + user_ = value; + } + } else { + userBuilder_.mergeFrom(value); + } + if (user_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + */ + public Builder clearUser() { + bitField0_ = (bitField0_ & ~0x00000001); + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.User.Builder getUserBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + io.gitpod.publicapi.experimental.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + } + /** + * .gitpod.experimental.v1.User user = 1 [json_name = "user"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.User, io.gitpod.publicapi.experimental.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.User, io.gitpod.publicapi.experimental.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetAuthenticatedUserResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetAuthenticatedUserResponse) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthenticatedUserResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListSSHKeysRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListSSHKeysRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * TODO: pagination options
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.ListSSHKeysRequest} + */ + public static final class ListSSHKeysRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListSSHKeysRequest) + ListSSHKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListSSHKeysRequest.class.getName()); + } + // Use ListSSHKeysRequest.newBuilder() to construct. + private ListSSHKeysRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListSSHKeysRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * TODO: pagination options
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.ListSSHKeysRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListSSHKeysRequest) + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListSSHKeysRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListSSHKeysRequest) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSSHKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListSSHKeysResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListSSHKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + java.util.List + getKeysList(); + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getKeys(int index); + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + int getKeysCount(); + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + java.util.List + getKeysOrBuilderList(); + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder getKeysOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListSSHKeysResponse} + */ + public static final class ListSSHKeysResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListSSHKeysResponse) + ListSSHKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListSSHKeysResponse.class.getName()); + } + // Use ListSSHKeysResponse.newBuilder() to construct. + private ListSSHKeysResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListSSHKeysResponse() { + keys_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse.Builder.class); + } + + public static final int KEYS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List keys_; + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + @java.lang.Override + public java.util.List getKeysList() { + return keys_; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + @java.lang.Override + public java.util.List + getKeysOrBuilderList() { + return keys_; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + @java.lang.Override + public int getKeysCount() { + return keys_.size(); + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getKeys(int index) { + return keys_.get(index); + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder getKeysOrBuilder( + int index) { + return keys_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < keys_.size(); i++) { + output.writeMessage(1, keys_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < keys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, keys_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse) obj; + + if (!getKeysList() + .equals(other.getKeysList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getKeysCount() > 0) { + hash = (37 * hash) + KEYS_FIELD_NUMBER; + hash = (53 * hash) + getKeysList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListSSHKeysResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListSSHKeysResponse) + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (keysBuilder_ == null) { + keys_ = java.util.Collections.emptyList(); + } else { + keys_ = null; + keysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_ListSSHKeysResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse result) { + if (keysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keys_ = keys_; + } else { + result.keys_ = keysBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse.getDefaultInstance()) return this; + if (keysBuilder_ == null) { + if (!other.keys_.isEmpty()) { + if (keys_.isEmpty()) { + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeysIsMutable(); + keys_.addAll(other.keys_); + } + onChanged(); + } + } else { + if (!other.keys_.isEmpty()) { + if (keysBuilder_.isEmpty()) { + keysBuilder_.dispose(); + keysBuilder_ = null; + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + keysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getKeysFieldBuilder() : null; + } else { + keysBuilder_.addAllMessages(other.keys_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.parser(), + extensionRegistry); + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(m); + } else { + keysBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List keys_ = + java.util.Collections.emptyList(); + private void ensureKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(keys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder> keysBuilder_; + + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public java.util.List getKeysList() { + if (keysBuilder_ == null) { + return java.util.Collections.unmodifiableList(keys_); + } else { + return keysBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public int getKeysCount() { + if (keysBuilder_ == null) { + return keys_.size(); + } else { + return keysBuilder_.getCount(); + } + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getKeys(int index) { + if (keysBuilder_ == null) { + return keys_.get(index); + } else { + return keysBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public Builder setKeys( + int index, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.set(index, value); + onChanged(); + } else { + keysBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public Builder setKeys( + int index, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.set(index, builderForValue.build()); + onChanged(); + } else { + keysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public Builder addKeys(io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(value); + onChanged(); + } else { + keysBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public Builder addKeys( + int index, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(index, value); + onChanged(); + } else { + keysBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public Builder addKeys( + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(builderForValue.build()); + onChanged(); + } else { + keysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public Builder addKeys( + int index, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(index, builderForValue.build()); + onChanged(); + } else { + keysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public Builder addAllKeys( + java.lang.Iterable values) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keys_); + onChanged(); + } else { + keysBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public Builder clearKeys() { + if (keysBuilder_ == null) { + keys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + keysBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public Builder removeKeys(int index) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.remove(index); + onChanged(); + } else { + keysBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder getKeysBuilder( + int index) { + return getKeysFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder getKeysOrBuilder( + int index) { + if (keysBuilder_ == null) { + return keys_.get(index); } else { + return keysBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public java.util.List + getKeysOrBuilderList() { + if (keysBuilder_ != null) { + return keysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(keys_); + } + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder addKeysBuilder() { + return getKeysFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder addKeysBuilder( + int index) { + return getKeysFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.SSHKey keys = 1 [json_name = "keys"]; + */ + public java.util.List + getKeysBuilderList() { + return getKeysFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder> + getKeysFieldBuilder() { + if (keysBuilder_ == null) { + keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder>( + keys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + keys_ = null; + } + return keysBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListSSHKeysResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListSSHKeysResponse) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSSHKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateSSHKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateSSHKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * name is the SSH key name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the SSH key name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * the public SSH key
+     * 
+ * + * string key = 2 [json_name = "key"]; + * @return The key. + */ + java.lang.String getKey(); + /** + *
+     * the public SSH key
+     * 
+ * + * string key = 2 [json_name = "key"]; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateSSHKeyRequest} + */ + public static final class CreateSSHKeyRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateSSHKeyRequest) + CreateSSHKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateSSHKeyRequest.class.getName()); + } + // Use CreateSSHKeyRequest.newBuilder() to construct. + private CreateSSHKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateSSHKeyRequest() { + name_ = ""; + key_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the SSH key name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the SSH key name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + *
+     * the public SSH key
+     * 
+ * + * string key = 2 [json_name = "key"]; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + *
+     * the public SSH key
+     * 
+ * + * string key = 2 [json_name = "key"]; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, key_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, key_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateSSHKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateSSHKeyRequest) + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + key_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.key_ = key_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * name is the SSH key name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the SSH key name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the SSH key name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * name is the SSH key name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * name is the SSH key name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       * the public SSH key
+       * 
+ * + * string key = 2 [json_name = "key"]; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the public SSH key
+       * 
+ * + * string key = 2 [json_name = "key"]; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the public SSH key
+       * 
+ * + * string key = 2 [json_name = "key"]; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + key_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * the public SSH key
+       * 
+ * + * string key = 2 [json_name = "key"]; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * the public SSH key
+       * 
+ * + * string key = 2 [json_name = "key"]; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateSSHKeyRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateSSHKeyRequest) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSSHKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateSSHKeyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateSSHKeyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return Whether the key field is set. + */ + boolean hasKey(); + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return The key. + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getKey(); + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder getKeyOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateSSHKeyResponse} + */ + public static final class CreateSSHKeyResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateSSHKeyResponse) + CreateSSHKeyResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateSSHKeyResponse.class.getName()); + } + // Use CreateSSHKeyResponse.newBuilder() to construct. + private CreateSSHKeyResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateSSHKeyResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey key_; + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return Whether the key field is set. + */ + @java.lang.Override + public boolean hasKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return The key. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getKey() { + return key_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance() : key_; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder getKeyOrBuilder() { + return key_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance() : key_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getKey()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKey()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse) obj; + + if (hasKey() != other.hasKey()) return false; + if (hasKey()) { + if (!getKey() + .equals(other.getKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKey()) { + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateSSHKeyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateSSHKeyResponse) + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getKeyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = null; + if (keyBuilder_ != null) { + keyBuilder_.dispose(); + keyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = keyBuilder_ == null + ? key_ + : keyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse.getDefaultInstance()) return this; + if (other.hasKey()) { + mergeKey(other.getKey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getKeyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey key_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder> keyBuilder_; + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return Whether the key field is set. + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return The key. + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getKey() { + if (keyBuilder_ == null) { + return key_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance() : key_; + } else { + return keyBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public Builder setKey(io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey value) { + if (keyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + } else { + keyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public Builder setKey( + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder builderForValue) { + if (keyBuilder_ == null) { + key_ = builderForValue.build(); + } else { + keyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public Builder mergeKey(io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey value) { + if (keyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + key_ != null && + key_ != io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance()) { + getKeyBuilder().mergeFrom(value); + } else { + key_ = value; + } + } else { + keyBuilder_.mergeFrom(value); + } + if (key_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = null; + if (keyBuilder_ != null) { + keyBuilder_.dispose(); + keyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder getKeyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getKeyFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder getKeyOrBuilder() { + if (keyBuilder_ != null) { + return keyBuilder_.getMessageOrBuilder(); + } else { + return key_ == null ? + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance() : key_; + } + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder> + getKeyFieldBuilder() { + if (keyBuilder_ == null) { + keyBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder>( + getKey(), + getParentForChildren(), + isClean()); + key_ = null; + } + return keyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateSSHKeyResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateSSHKeyResponse) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSSHKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetSSHKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetSSHKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the unique identifier of the SSH key to retreive.
+     * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The keyId. + */ + java.lang.String getKeyId(); + /** + *
+     * id is the unique identifier of the SSH key to retreive.
+     * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The bytes for keyId. + */ + com.google.protobuf.ByteString + getKeyIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetSSHKeyRequest} + */ + public static final class GetSSHKeyRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetSSHKeyRequest) + GetSSHKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetSSHKeyRequest.class.getName()); + } + // Use GetSSHKeyRequest.newBuilder() to construct. + private GetSSHKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetSSHKeyRequest() { + keyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest.Builder.class); + } + + public static final int KEY_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object keyId_ = ""; + /** + *
+     * id is the unique identifier of the SSH key to retreive.
+     * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The keyId. + */ + @java.lang.Override + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyId_ = s; + return s; + } + } + /** + *
+     * id is the unique identifier of the SSH key to retreive.
+     * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The bytes for keyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, keyId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, keyId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest) obj; + + if (!getKeyId() + .equals(other.getKeyId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + getKeyId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetSSHKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetSSHKeyRequest) + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyId_ = keyId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest.getDefaultInstance()) return this; + if (!other.getKeyId().isEmpty()) { + keyId_ = other.keyId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + keyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object keyId_ = ""; + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The keyId. + */ + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The bytes for keyId. + */ + public com.google.protobuf.ByteString + getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @param value The keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + keyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return This builder for chaining. + */ + public Builder clearKeyId() { + keyId_ = getDefaultInstance().getKeyId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @param value The bytes for keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + keyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetSSHKeyRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetSSHKeyRequest) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSSHKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetSSHKeyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetSSHKeyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return Whether the key field is set. + */ + boolean hasKey(); + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return The key. + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getKey(); + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder getKeyOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetSSHKeyResponse} + */ + public static final class GetSSHKeyResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetSSHKeyResponse) + GetSSHKeyResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetSSHKeyResponse.class.getName()); + } + // Use GetSSHKeyResponse.newBuilder() to construct. + private GetSSHKeyResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetSSHKeyResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey key_; + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return Whether the key field is set. + */ + @java.lang.Override + public boolean hasKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return The key. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getKey() { + return key_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance() : key_; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder getKeyOrBuilder() { + return key_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance() : key_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getKey()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKey()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse) obj; + + if (hasKey() != other.hasKey()) return false; + if (hasKey()) { + if (!getKey() + .equals(other.getKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKey()) { + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetSSHKeyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetSSHKeyResponse) + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getKeyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = null; + if (keyBuilder_ != null) { + keyBuilder_.dispose(); + keyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetSSHKeyResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = keyBuilder_ == null + ? key_ + : keyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse.getDefaultInstance()) return this; + if (other.hasKey()) { + mergeKey(other.getKey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getKeyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey key_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder> keyBuilder_; + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return Whether the key field is set. + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + * @return The key. + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey getKey() { + if (keyBuilder_ == null) { + return key_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance() : key_; + } else { + return keyBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public Builder setKey(io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey value) { + if (keyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + } else { + keyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public Builder setKey( + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder builderForValue) { + if (keyBuilder_ == null) { + key_ = builderForValue.build(); + } else { + keyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public Builder mergeKey(io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey value) { + if (keyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + key_ != null && + key_ != io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance()) { + getKeyBuilder().mergeFrom(value); + } else { + key_ = value; + } + } else { + keyBuilder_.mergeFrom(value); + } + if (key_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = null; + if (keyBuilder_ != null) { + keyBuilder_.dispose(); + keyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder getKeyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getKeyFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder getKeyOrBuilder() { + if (keyBuilder_ != null) { + return keyBuilder_.getMessageOrBuilder(); + } else { + return key_ == null ? + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.getDefaultInstance() : key_; + } + } + /** + * .gitpod.experimental.v1.SSHKey key = 1 [json_name = "key"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder> + getKeyFieldBuilder() { + if (keyBuilder_ == null) { + keyBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKey.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.SSHKeyOrBuilder>( + getKey(), + getParentForChildren(), + isClean()); + key_ = null; + } + return keyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetSSHKeyResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetSSHKeyResponse) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSSHKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteSSHKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteSSHKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the unique identifier of the SSH key to retreive.
+     * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The keyId. + */ + java.lang.String getKeyId(); + /** + *
+     * id is the unique identifier of the SSH key to retreive.
+     * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The bytes for keyId. + */ + com.google.protobuf.ByteString + getKeyIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteSSHKeyRequest} + */ + public static final class DeleteSSHKeyRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteSSHKeyRequest) + DeleteSSHKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteSSHKeyRequest.class.getName()); + } + // Use DeleteSSHKeyRequest.newBuilder() to construct. + private DeleteSSHKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteSSHKeyRequest() { + keyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest.Builder.class); + } + + public static final int KEY_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object keyId_ = ""; + /** + *
+     * id is the unique identifier of the SSH key to retreive.
+     * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The keyId. + */ + @java.lang.Override + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyId_ = s; + return s; + } + } + /** + *
+     * id is the unique identifier of the SSH key to retreive.
+     * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The bytes for keyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, keyId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, keyId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest) obj; + + if (!getKeyId() + .equals(other.getKeyId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + getKeyId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteSSHKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteSSHKeyRequest) + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyId_ = keyId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest.getDefaultInstance()) return this; + if (!other.getKeyId().isEmpty()) { + keyId_ = other.keyId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + keyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object keyId_ = ""; + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The keyId. + */ + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return The bytes for keyId. + */ + public com.google.protobuf.ByteString + getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @param value The keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + keyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @return This builder for chaining. + */ + public Builder clearKeyId() { + keyId_ = getDefaultInstance().getKeyId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the SSH key to retreive.
+       * 
+ * + * string key_id = 1 [json_name = "keyId"]; + * @param value The bytes for keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + keyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteSSHKeyRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteSSHKeyRequest) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSSHKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteSSHKeyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteSSHKeyResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteSSHKeyResponse} + */ + public static final class DeleteSSHKeyResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteSSHKeyResponse) + DeleteSSHKeyResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteSSHKeyResponse.class.getName()); + } + // Use DeleteSSHKeyResponse.newBuilder() to construct. + private DeleteSSHKeyResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteSSHKeyResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteSSHKeyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteSSHKeyResponse) + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteSSHKeyResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteSSHKeyResponse) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSSHKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetGitTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetGitTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetGitTokenRequest} + */ + public static final class GetGitTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetGitTokenRequest) + GetGitTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetGitTokenRequest.class.getName()); + } + // Use GetGitTokenRequest.newBuilder() to construct. + private GetGitTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetGitTokenRequest() { + host_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest.Builder.class); + } + + public static final int HOST_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, host_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, host_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest) obj; + + if (!getHost() + .equals(other.getHost())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetGitTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetGitTokenRequest) + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + host_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.host_ = host_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest.getDefaultInstance()) return this; + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetGitTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetGitTokenRequest) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGitTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetGitTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetGitTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + boolean hasToken(); + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + * @return The token. + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken getToken(); + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + */ + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitTokenOrBuilder getTokenOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetGitTokenResponse} + */ + public static final class GetGitTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetGitTokenResponse) + GetGitTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetGitTokenResponse.class.getName()); + } + // Use GetGitTokenResponse.newBuilder() to construct. + private GetGitTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetGitTokenResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken token_; + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + @java.lang.Override + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken getToken() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.getDefaultInstance() : token_; + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GitTokenOrBuilder getTokenOrBuilder() { + return token_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.getDefaultInstance() : token_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getToken()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getToken()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse) obj; + + if (hasToken() != other.hasToken()) return false; + if (hasToken()) { + if (!getToken() + .equals(other.getToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToken()) { + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetGitTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetGitTokenResponse) + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTokenFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GetGitTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = tokenBuilder_ == null + ? token_ + : tokenBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse.getDefaultInstance()) return this; + if (other.hasToken()) { + mergeToken(other.getToken()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTokenFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken token_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken, io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.GitTokenOrBuilder> tokenBuilder_; + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + * @return Whether the token field is set. + */ + public boolean hasToken() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + * @return The token. + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken getToken() { + if (tokenBuilder_ == null) { + return token_ == null ? io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.getDefaultInstance() : token_; + } else { + return tokenBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + */ + public Builder setToken(io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken value) { + if (tokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + } else { + tokenBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + */ + public Builder setToken( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.Builder builderForValue) { + if (tokenBuilder_ == null) { + token_ = builderForValue.build(); + } else { + tokenBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + */ + public Builder mergeToken(io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken value) { + if (tokenBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + token_ != null && + token_ != io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.getDefaultInstance()) { + getTokenBuilder().mergeFrom(value); + } else { + token_ = value; + } + } else { + tokenBuilder_.mergeFrom(value); + } + if (token_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + */ + public Builder clearToken() { + bitField0_ = (bitField0_ & ~0x00000001); + token_ = null; + if (tokenBuilder_ != null) { + tokenBuilder_.dispose(); + tokenBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.Builder getTokenBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokenFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + */ + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GitTokenOrBuilder getTokenOrBuilder() { + if (tokenBuilder_ != null) { + return tokenBuilder_.getMessageOrBuilder(); + } else { + return token_ == null ? + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.getDefaultInstance() : token_; + } + } + /** + * .gitpod.experimental.v1.GitToken token = 1 [json_name = "token"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken, io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.GitTokenOrBuilder> + getTokenFieldBuilder() { + if (tokenBuilder_ == null) { + tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken, io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.Builder, io.gitpod.publicapi.experimental.v1.UserOuterClass.GitTokenOrBuilder>( + getToken(), + getParentForChildren(), + isClean()); + token_ = null; + } + return tokenBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetGitTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetGitTokenResponse) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGitTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GitTokenOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GitToken) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * expiry_date is the date when the token will expire
+     * 
+ * + * string expiry_date = 1 [json_name = "expiryDate"]; + * @return The expiryDate. + */ + java.lang.String getExpiryDate(); + /** + *
+     * expiry_date is the date when the token will expire
+     * 
+ * + * string expiry_date = 1 [json_name = "expiryDate"]; + * @return The bytes for expiryDate. + */ + com.google.protobuf.ByteString + getExpiryDateBytes(); + + /** + *
+     * id_token is the unique identifier for the token
+     * 
+ * + * string id_token = 2 [json_name = "idToken"]; + * @return The idToken. + */ + java.lang.String getIdToken(); + /** + *
+     * id_token is the unique identifier for the token
+     * 
+ * + * string id_token = 2 [json_name = "idToken"]; + * @return The bytes for idToken. + */ + com.google.protobuf.ByteString + getIdTokenBytes(); + + /** + *
+     * refresh_token is the token used to refresh the git token
+     * 
+ * + * string refresh_token = 3 [json_name = "refreshToken"]; + * @return The refreshToken. + */ + java.lang.String getRefreshToken(); + /** + *
+     * refresh_token is the token used to refresh the git token
+     * 
+ * + * string refresh_token = 3 [json_name = "refreshToken"]; + * @return The bytes for refreshToken. + */ + com.google.protobuf.ByteString + getRefreshTokenBytes(); + + /** + *
+     * scopes is a list of permissions associated with the token
+     * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + java.util.List + getScopesList(); + /** + *
+     * scopes is a list of permissions associated with the token
+     * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @return The count of scopes. + */ + int getScopesCount(); + /** + *
+     * scopes is a list of permissions associated with the token
+     * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + *
+     * scopes is a list of permissions associated with the token
+     * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString + getScopesBytes(int index); + + /** + *
+     * update_date is the date when the token was last updated
+     * 
+ * + * string update_date = 5 [json_name = "updateDate"]; + * @return The updateDate. + */ + java.lang.String getUpdateDate(); + /** + *
+     * update_date is the date when the token was last updated
+     * 
+ * + * string update_date = 5 [json_name = "updateDate"]; + * @return The bytes for updateDate. + */ + com.google.protobuf.ByteString + getUpdateDateBytes(); + + /** + *
+     * username is the username associated with the token
+     * 
+ * + * string username = 6 [json_name = "username"]; + * @return The username. + */ + java.lang.String getUsername(); + /** + *
+     * username is the username associated with the token
+     * 
+ * + * string username = 6 [json_name = "username"]; + * @return The bytes for username. + */ + com.google.protobuf.ByteString + getUsernameBytes(); + + /** + *
+     * value is the actual token value for the token
+     * 
+ * + * string value = 7 [json_name = "value"]; + * @return The value. + */ + java.lang.String getValue(); + /** + *
+     * value is the actual token value for the token
+     * 
+ * + * string value = 7 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GitToken} + */ + public static final class GitToken extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GitToken) + GitTokenOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GitToken.class.getName()); + } + // Use GitToken.newBuilder() to construct. + private GitToken(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GitToken() { + expiryDate_ = ""; + idToken_ = ""; + refreshToken_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + updateDate_ = ""; + username_ = ""; + value_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GitToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GitToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.Builder.class); + } + + public static final int EXPIRY_DATE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object expiryDate_ = ""; + /** + *
+     * expiry_date is the date when the token will expire
+     * 
+ * + * string expiry_date = 1 [json_name = "expiryDate"]; + * @return The expiryDate. + */ + @java.lang.Override + public java.lang.String getExpiryDate() { + java.lang.Object ref = expiryDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expiryDate_ = s; + return s; + } + } + /** + *
+     * expiry_date is the date when the token will expire
+     * 
+ * + * string expiry_date = 1 [json_name = "expiryDate"]; + * @return The bytes for expiryDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getExpiryDateBytes() { + java.lang.Object ref = expiryDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expiryDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object idToken_ = ""; + /** + *
+     * id_token is the unique identifier for the token
+     * 
+ * + * string id_token = 2 [json_name = "idToken"]; + * @return The idToken. + */ + @java.lang.Override + public java.lang.String getIdToken() { + java.lang.Object ref = idToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + idToken_ = s; + return s; + } + } + /** + *
+     * id_token is the unique identifier for the token
+     * 
+ * + * string id_token = 2 [json_name = "idToken"]; + * @return The bytes for idToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdTokenBytes() { + java.lang.Object ref = idToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFRESH_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object refreshToken_ = ""; + /** + *
+     * refresh_token is the token used to refresh the git token
+     * 
+ * + * string refresh_token = 3 [json_name = "refreshToken"]; + * @return The refreshToken. + */ + @java.lang.Override + public java.lang.String getRefreshToken() { + java.lang.Object ref = refreshToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + refreshToken_ = s; + return s; + } + } + /** + *
+     * refresh_token is the token used to refresh the git token
+     * 
+ * + * string refresh_token = 3 [json_name = "refreshToken"]; + * @return The bytes for refreshToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRefreshTokenBytes() { + java.lang.Object ref = refreshToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + refreshToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * scopes is a list of permissions associated with the token
+     * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + *
+     * scopes is a list of permissions associated with the token
+     * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + *
+     * scopes is a list of permissions associated with the token
+     * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + *
+     * scopes is a list of permissions associated with the token
+     * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int UPDATE_DATE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object updateDate_ = ""; + /** + *
+     * update_date is the date when the token was last updated
+     * 
+ * + * string update_date = 5 [json_name = "updateDate"]; + * @return The updateDate. + */ + @java.lang.Override + public java.lang.String getUpdateDate() { + java.lang.Object ref = updateDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + updateDate_ = s; + return s; + } + } + /** + *
+     * update_date is the date when the token was last updated
+     * 
+ * + * string update_date = 5 [json_name = "updateDate"]; + * @return The bytes for updateDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUpdateDateBytes() { + java.lang.Object ref = updateDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + updateDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USERNAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + *
+     * username is the username associated with the token
+     * 
+ * + * string username = 6 [json_name = "username"]; + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** + *
+     * username is the username associated with the token
+     * 
+ * + * string username = 6 [json_name = "username"]; + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + *
+     * value is the actual token value for the token
+     * 
+ * + * string value = 7 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + *
+     * value is the actual token value for the token
+     * 
+ * + * string value = 7 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expiryDate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, expiryDate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(idToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, idToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, refreshToken_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, scopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(updateDate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, updateDate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expiryDate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, expiryDate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(idToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, idToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, refreshToken_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(updateDate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, updateDate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken) obj; + + if (!getExpiryDate() + .equals(other.getExpiryDate())) return false; + if (!getIdToken() + .equals(other.getIdToken())) return false; + if (!getRefreshToken() + .equals(other.getRefreshToken())) return false; + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (!getUpdateDate() + .equals(other.getUpdateDate())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXPIRY_DATE_FIELD_NUMBER; + hash = (53 * hash) + getExpiryDate().hashCode(); + hash = (37 * hash) + ID_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getIdToken().hashCode(); + hash = (37 * hash) + REFRESH_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getRefreshToken().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + UPDATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdateDate().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GitToken} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GitToken) + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GitToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GitToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expiryDate_ = ""; + idToken_ = ""; + refreshToken_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + updateDate_ = ""; + username_ = ""; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_GitToken_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expiryDate_ = expiryDate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.idToken_ = idToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.refreshToken_ = refreshToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateDate_ = updateDate_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken.getDefaultInstance()) return this; + if (!other.getExpiryDate().isEmpty()) { + expiryDate_ = other.expiryDate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIdToken().isEmpty()) { + idToken_ = other.idToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRefreshToken().isEmpty()) { + refreshToken_ = other.refreshToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000008; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (!other.getUpdateDate().isEmpty()) { + updateDate_ = other.updateDate_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + expiryDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + idToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + refreshToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 34 + case 42: { + updateDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object expiryDate_ = ""; + /** + *
+       * expiry_date is the date when the token will expire
+       * 
+ * + * string expiry_date = 1 [json_name = "expiryDate"]; + * @return The expiryDate. + */ + public java.lang.String getExpiryDate() { + java.lang.Object ref = expiryDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expiryDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * expiry_date is the date when the token will expire
+       * 
+ * + * string expiry_date = 1 [json_name = "expiryDate"]; + * @return The bytes for expiryDate. + */ + public com.google.protobuf.ByteString + getExpiryDateBytes() { + java.lang.Object ref = expiryDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expiryDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * expiry_date is the date when the token will expire
+       * 
+ * + * string expiry_date = 1 [json_name = "expiryDate"]; + * @param value The expiryDate to set. + * @return This builder for chaining. + */ + public Builder setExpiryDate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + expiryDate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * expiry_date is the date when the token will expire
+       * 
+ * + * string expiry_date = 1 [json_name = "expiryDate"]; + * @return This builder for chaining. + */ + public Builder clearExpiryDate() { + expiryDate_ = getDefaultInstance().getExpiryDate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * expiry_date is the date when the token will expire
+       * 
+ * + * string expiry_date = 1 [json_name = "expiryDate"]; + * @param value The bytes for expiryDate to set. + * @return This builder for chaining. + */ + public Builder setExpiryDateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + expiryDate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object idToken_ = ""; + /** + *
+       * id_token is the unique identifier for the token
+       * 
+ * + * string id_token = 2 [json_name = "idToken"]; + * @return The idToken. + */ + public java.lang.String getIdToken() { + java.lang.Object ref = idToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + idToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id_token is the unique identifier for the token
+       * 
+ * + * string id_token = 2 [json_name = "idToken"]; + * @return The bytes for idToken. + */ + public com.google.protobuf.ByteString + getIdTokenBytes() { + java.lang.Object ref = idToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id_token is the unique identifier for the token
+       * 
+ * + * string id_token = 2 [json_name = "idToken"]; + * @param value The idToken to set. + * @return This builder for chaining. + */ + public Builder setIdToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + idToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * id_token is the unique identifier for the token
+       * 
+ * + * string id_token = 2 [json_name = "idToken"]; + * @return This builder for chaining. + */ + public Builder clearIdToken() { + idToken_ = getDefaultInstance().getIdToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * id_token is the unique identifier for the token
+       * 
+ * + * string id_token = 2 [json_name = "idToken"]; + * @param value The bytes for idToken to set. + * @return This builder for chaining. + */ + public Builder setIdTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + idToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object refreshToken_ = ""; + /** + *
+       * refresh_token is the token used to refresh the git token
+       * 
+ * + * string refresh_token = 3 [json_name = "refreshToken"]; + * @return The refreshToken. + */ + public java.lang.String getRefreshToken() { + java.lang.Object ref = refreshToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + refreshToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * refresh_token is the token used to refresh the git token
+       * 
+ * + * string refresh_token = 3 [json_name = "refreshToken"]; + * @return The bytes for refreshToken. + */ + public com.google.protobuf.ByteString + getRefreshTokenBytes() { + java.lang.Object ref = refreshToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + refreshToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * refresh_token is the token used to refresh the git token
+       * 
+ * + * string refresh_token = 3 [json_name = "refreshToken"]; + * @param value The refreshToken to set. + * @return This builder for chaining. + */ + public Builder setRefreshToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + refreshToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * refresh_token is the token used to refresh the git token
+       * 
+ * + * string refresh_token = 3 [json_name = "refreshToken"]; + * @return This builder for chaining. + */ + public Builder clearRefreshToken() { + refreshToken_ = getDefaultInstance().getRefreshToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * refresh_token is the token used to refresh the git token
+       * 
+ * + * string refresh_token = 3 [json_name = "refreshToken"]; + * @param value The bytes for refreshToken to set. + * @return This builder for chaining. + */ + public Builder setRefreshTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + refreshToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000008; + } + /** + *
+       * scopes is a list of permissions associated with the token
+       * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + *
+       * scopes is a list of permissions associated with the token
+       * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + *
+       * scopes is a list of permissions associated with the token
+       * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + *
+       * scopes is a list of permissions associated with the token
+       * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + /** + *
+       * scopes is a list of permissions associated with the token
+       * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * scopes is a list of permissions associated with the token
+       * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * scopes is a list of permissions associated with the token
+       * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes( + java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scopes_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * scopes is a list of permissions associated with the token
+       * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + *
+       * scopes is a list of permissions associated with the token
+       * 
+ * + * repeated string scopes = 4 [json_name = "scopes"]; + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object updateDate_ = ""; + /** + *
+       * update_date is the date when the token was last updated
+       * 
+ * + * string update_date = 5 [json_name = "updateDate"]; + * @return The updateDate. + */ + public java.lang.String getUpdateDate() { + java.lang.Object ref = updateDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + updateDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * update_date is the date when the token was last updated
+       * 
+ * + * string update_date = 5 [json_name = "updateDate"]; + * @return The bytes for updateDate. + */ + public com.google.protobuf.ByteString + getUpdateDateBytes() { + java.lang.Object ref = updateDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + updateDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * update_date is the date when the token was last updated
+       * 
+ * + * string update_date = 5 [json_name = "updateDate"]; + * @param value The updateDate to set. + * @return This builder for chaining. + */ + public Builder setUpdateDate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + updateDate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * update_date is the date when the token was last updated
+       * 
+ * + * string update_date = 5 [json_name = "updateDate"]; + * @return This builder for chaining. + */ + public Builder clearUpdateDate() { + updateDate_ = getDefaultInstance().getUpdateDate(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * update_date is the date when the token was last updated
+       * 
+ * + * string update_date = 5 [json_name = "updateDate"]; + * @param value The bytes for updateDate to set. + * @return This builder for chaining. + */ + public Builder setUpdateDateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + updateDate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + /** + *
+       * username is the username associated with the token
+       * 
+ * + * string username = 6 [json_name = "username"]; + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * username is the username associated with the token
+       * 
+ * + * string username = 6 [json_name = "username"]; + * @return The bytes for username. + */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * username is the username associated with the token
+       * 
+ * + * string username = 6 [json_name = "username"]; + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + username_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * username is the username associated with the token
+       * 
+ * + * string username = 6 [json_name = "username"]; + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+       * username is the username associated with the token
+       * 
+ * + * string username = 6 [json_name = "username"]; + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+       * value is the actual token value for the token
+       * 
+ * + * string value = 7 [json_name = "value"]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * value is the actual token value for the token
+       * 
+ * + * string value = 7 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * value is the actual token value for the token
+       * 
+ * + * string value = 7 [json_name = "value"]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + value_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * value is the actual token value for the token
+       * 
+ * + * string value = 7 [json_name = "value"]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+       * value is the actual token value for the token
+       * 
+ * + * string value = 7 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GitToken) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GitToken) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.GitToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.BlockUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * the ID of a User to block
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + *
+     * the ID of a User to block
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + *
+     * reason is the reason for blocking the user
+     * 
+ * + * string reason = 2 [json_name = "reason"]; + * @return The reason. + */ + java.lang.String getReason(); + /** + *
+     * reason is the reason for blocking the user
+     * 
+ * + * string reason = 2 [json_name = "reason"]; + * @return The bytes for reason. + */ + com.google.protobuf.ByteString + getReasonBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.BlockUserRequest} + */ + public static final class BlockUserRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.BlockUserRequest) + BlockUserRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + BlockUserRequest.class.getName()); + } + // Use BlockUserRequest.newBuilder() to construct. + private BlockUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private BlockUserRequest() { + userId_ = ""; + reason_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest.Builder.class); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + *
+     * the ID of a User to block
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + *
+     * the ID of a User to block
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REASON_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object reason_ = ""; + /** + *
+     * reason is the reason for blocking the user
+     * 
+ * + * string reason = 2 [json_name = "reason"]; + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + /** + *
+     * reason is the reason for blocking the user
+     * 
+ * + * string reason = 2 [json_name = "reason"]; + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getReason() + .equals(other.getReason())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.BlockUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.BlockUserRequest) + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + reason_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reason_ = reason_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + *
+       * the ID of a User to block
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the ID of a User to block
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the ID of a User to block
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * the ID of a User to block
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * the ID of a User to block
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + /** + *
+       * reason is the reason for blocking the user
+       * 
+ * + * string reason = 2 [json_name = "reason"]; + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * reason is the reason for blocking the user
+       * 
+ * + * string reason = 2 [json_name = "reason"]; + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * reason is the reason for blocking the user
+       * 
+ * + * string reason = 2 [json_name = "reason"]; + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + reason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * reason is the reason for blocking the user
+       * 
+ * + * string reason = 2 [json_name = "reason"]; + * @return This builder for chaining. + */ + public Builder clearReason() { + reason_ = getDefaultInstance().getReason(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * reason is the reason for blocking the user
+       * 
+ * + * string reason = 2 [json_name = "reason"]; + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + reason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.BlockUserRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.BlockUserRequest) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.BlockUserResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.BlockUserResponse} + */ + public static final class BlockUserResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.BlockUserResponse) + BlockUserResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + BlockUserResponse.class.getName()); + } + // Use BlockUserResponse.newBuilder() to construct. + private BlockUserResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private BlockUserResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse other = (io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.BlockUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.BlockUserResponse) + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse.class, io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.internal_static_gitpod_experimental_v1_BlockUserResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse build() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse result = new io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.BlockUserResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.BlockUserResponse) + private static final io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockUserResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_User_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_User_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_SSHKey_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_SSHKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListSSHKeysRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListSSHKeysRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListSSHKeysResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListSSHKeysResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetSSHKeyRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetSSHKeyRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetSSHKeyResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetSSHKeyResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetGitTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetGitTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetGitTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetGitTokenResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GitToken_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GitToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_BlockUserRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_BlockUserRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_BlockUserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_BlockUserResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!gitpod/experimental/v1/user.proto\022\026git" + + "pod.experimental.v1\032\037google/protobuf/tim" + + "estamp.proto\"\204\001\n\004User\022\016\n\002id\030\001 \001(\tR\002id\022\022\n" + + "\004name\030\002 \001(\tR\004name\022\035\n\navatar_url\030\003 \001(\tR\ta" + + "vatarUrl\0229\n\ncreated_at\030\005 \001(\0132\032.google.pr" + + "otobuf.TimestampR\tcreatedAt\"y\n\006SSHKey\022\016\n" + + "\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\020\n\003key" + + "\030\003 \001(\tR\003key\0229\n\ncreated_at\030\004 \001(\0132\032.google" + + ".protobuf.TimestampR\tcreatedAt\"\035\n\033GetAut" + + "henticatedUserRequest\"P\n\034GetAuthenticate" + + "dUserResponse\0220\n\004user\030\001 \001(\0132\034.gitpod.exp" + + "erimental.v1.UserR\004user\"\024\n\022ListSSHKeysRe" + + "quest\"I\n\023ListSSHKeysResponse\0222\n\004keys\030\001 \003" + + "(\0132\036.gitpod.experimental.v1.SSHKeyR\004keys" + + "\";\n\023CreateSSHKeyRequest\022\022\n\004name\030\001 \001(\tR\004n" + + "ame\022\020\n\003key\030\002 \001(\tR\003key\"H\n\024CreateSSHKeyRes" + + "ponse\0220\n\003key\030\001 \001(\0132\036.gitpod.experimental" + + ".v1.SSHKeyR\003key\")\n\020GetSSHKeyRequest\022\025\n\006k" + + "ey_id\030\001 \001(\tR\005keyId\"E\n\021GetSSHKeyResponse\022" + + "0\n\003key\030\001 \001(\0132\036.gitpod.experimental.v1.SS" + + "HKeyR\003key\",\n\023DeleteSSHKeyRequest\022\025\n\006key_" + + "id\030\001 \001(\tR\005keyId\"\026\n\024DeleteSSHKeyResponse\"" + + "(\n\022GetGitTokenRequest\022\022\n\004host\030\001 \001(\tR\004hos" + + "t\"M\n\023GetGitTokenResponse\0226\n\005token\030\001 \001(\0132" + + " .gitpod.experimental.v1.GitTokenR\005token" + + "\"\326\001\n\010GitToken\022\037\n\013expiry_date\030\001 \001(\tR\nexpi" + + "ryDate\022\031\n\010id_token\030\002 \001(\tR\007idToken\022#\n\rref" + + "resh_token\030\003 \001(\tR\014refreshToken\022\026\n\006scopes" + + "\030\004 \003(\tR\006scopes\022\037\n\013update_date\030\005 \001(\tR\nupd" + + "ateDate\022\032\n\010username\030\006 \001(\tR\010username\022\024\n\005v" + + "alue\030\007 \001(\tR\005value\"C\n\020BlockUserRequest\022\027\n" + + "\007user_id\030\001 \001(\tR\006userId\022\026\n\006reason\030\002 \001(\tR\006" + + "reason\"\023\n\021BlockUserResponse2\211\006\n\013UserServ" + + "ice\022\203\001\n\024GetAuthenticatedUser\0223.gitpod.ex" + + "perimental.v1.GetAuthenticatedUserReques" + + "t\0324.gitpod.experimental.v1.GetAuthentica" + + "tedUserResponse\"\000\022h\n\013ListSSHKeys\022*.gitpo" + + "d.experimental.v1.ListSSHKeysRequest\032+.g" + + "itpod.experimental.v1.ListSSHKeysRespons" + + "e\"\000\022k\n\014CreateSSHKey\022+.gitpod.experimenta" + + "l.v1.CreateSSHKeyRequest\032,.gitpod.experi" + + "mental.v1.CreateSSHKeyResponse\"\000\022b\n\tGetS" + + "SHKey\022(.gitpod.experimental.v1.GetSSHKey" + + "Request\032).gitpod.experimental.v1.GetSSHK" + + "eyResponse\"\000\022k\n\014DeleteSSHKey\022+.gitpod.ex" + + "perimental.v1.DeleteSSHKeyRequest\032,.gitp" + + "od.experimental.v1.DeleteSSHKeyResponse\"" + + "\000\022h\n\013GetGitToken\022*.gitpod.experimental.v" + + "1.GetGitTokenRequest\032+.gitpod.experiment" + + "al.v1.GetGitTokenResponse\"\000\022b\n\tBlockUser" + + "\022(.gitpod.experimental.v1.BlockUserReque" + + "st\032).gitpod.experimental.v1.BlockUserRes" + + "ponse\"\000Bk\n#io.gitpod.publicapi.experimen" + + "tal.v1ZDgithub.com/gitpod-io/gitpod/comp" + + "onents/public-api/go/experimental/v1b\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_experimental_v1_User_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_User_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_User_descriptor, + new java.lang.String[] { "Id", "Name", "AvatarUrl", "CreatedAt", }); + internal_static_gitpod_experimental_v1_SSHKey_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_SSHKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_SSHKey_descriptor, + new java.lang.String[] { "Id", "Name", "Key", "CreatedAt", }); + internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetAuthenticatedUserRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetAuthenticatedUserResponse_descriptor, + new java.lang.String[] { "User", }); + internal_static_gitpod_experimental_v1_ListSSHKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_experimental_v1_ListSSHKeysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListSSHKeysRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_ListSSHKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_experimental_v1_ListSSHKeysResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListSSHKeysResponse_descriptor, + new java.lang.String[] { "Keys", }); + internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateSSHKeyRequest_descriptor, + new java.lang.String[] { "Name", "Key", }); + internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateSSHKeyResponse_descriptor, + new java.lang.String[] { "Key", }); + internal_static_gitpod_experimental_v1_GetSSHKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_experimental_v1_GetSSHKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetSSHKeyRequest_descriptor, + new java.lang.String[] { "KeyId", }); + internal_static_gitpod_experimental_v1_GetSSHKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_experimental_v1_GetSSHKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetSSHKeyResponse_descriptor, + new java.lang.String[] { "Key", }); + internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteSSHKeyRequest_descriptor, + new java.lang.String[] { "KeyId", }); + internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteSSHKeyResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_GetGitTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_experimental_v1_GetGitTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetGitTokenRequest_descriptor, + new java.lang.String[] { "Host", }); + internal_static_gitpod_experimental_v1_GetGitTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_experimental_v1_GetGitTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetGitTokenResponse_descriptor, + new java.lang.String[] { "Token", }); + internal_static_gitpod_experimental_v1_GitToken_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_experimental_v1_GitToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GitToken_descriptor, + new java.lang.String[] { "ExpiryDate", "IdToken", "RefreshToken", "Scopes", "UpdateDate", "Username", "Value", }); + internal_static_gitpod_experimental_v1_BlockUserRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_experimental_v1_BlockUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_BlockUserRequest_descriptor, + new java.lang.String[] { "UserId", "Reason", }); + internal_static_gitpod_experimental_v1_BlockUserResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_gitpod_experimental_v1_BlockUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_BlockUserResponse_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserServiceClient.kt new file mode 100644 index 00000000000000..916c0f63c3c458 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserServiceClient.kt @@ -0,0 +1,126 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/user.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class UserServiceClient( + private val client: ProtocolClientInterface, +) : UserServiceClientInterface { + /** + * GetAuthenticatedUser gets the user info. + */ + override suspend fun getAuthenticatedUser(request: UserOuterClass.GetAuthenticatedUserRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.UserService/GetAuthenticatedUser", + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserRequest::class, + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetAuthenticatedUserResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListSSHKeys lists the public SSH keys. + */ + override suspend fun listSSHKeys(request: UserOuterClass.ListSSHKeysRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.UserService/ListSSHKeys", + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysRequest::class, + io.gitpod.publicapi.experimental.v1.UserOuterClass.ListSSHKeysResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * CreateSSHKey adds a public SSH key. + */ + override suspend fun createSSHKey(request: UserOuterClass.CreateSSHKeyRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.UserService/CreateSSHKey", + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyRequest::class, + io.gitpod.publicapi.experimental.v1.UserOuterClass.CreateSSHKeyResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetSSHKey retrieves an ssh key by ID. + */ + override suspend fun getSSHKey(request: UserOuterClass.GetSSHKeyRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.UserService/GetSSHKey", + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyRequest::class, + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetSSHKeyResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteSSHKey removes a public SSH key. + */ + override suspend fun deleteSSHKey(request: UserOuterClass.DeleteSSHKeyRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.UserService/DeleteSSHKey", + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyRequest::class, + io.gitpod.publicapi.experimental.v1.UserOuterClass.DeleteSSHKeyResponse::class, + StreamType.UNARY, + ), + ) + + + override suspend fun getGitToken(request: UserOuterClass.GetGitTokenRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.UserService/GetGitToken", + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenRequest::class, + io.gitpod.publicapi.experimental.v1.UserOuterClass.GetGitTokenResponse::class, + StreamType.UNARY, + ), + ) + + + override suspend fun blockUser(request: UserOuterClass.BlockUserRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.UserService/BlockUser", + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserRequest::class, + io.gitpod.publicapi.experimental.v1.UserOuterClass.BlockUserResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserServiceClientInterface.kt new file mode 100644 index 00000000000000..c6ecefda6a92c7 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/UserServiceClientInterface.kt @@ -0,0 +1,50 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/user.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface UserServiceClientInterface { + /** + * GetAuthenticatedUser gets the user info. + */ + public suspend fun getAuthenticatedUser(request: UserOuterClass.GetAuthenticatedUserRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * ListSSHKeys lists the public SSH keys. + */ + public suspend fun listSSHKeys(request: UserOuterClass.ListSSHKeysRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * CreateSSHKey adds a public SSH key. + */ + public suspend fun createSSHKey(request: UserOuterClass.CreateSSHKeyRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * GetSSHKey retrieves an ssh key by ID. + */ + public suspend fun getSSHKey(request: UserOuterClass.GetSSHKeyRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * DeleteSSHKey removes a public SSH key. + */ + public suspend fun deleteSSHKey(request: UserOuterClass.DeleteSSHKeyRequest, headers: Headers = + emptyMap()): ResponseMessage + + public suspend fun getGitToken(request: UserOuterClass.GetGitTokenRequest, headers: Headers = + emptyMap()): ResponseMessage + + public suspend fun blockUser(request: UserOuterClass.BlockUserRequest, headers: Headers = + emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java new file mode 100644 index 00000000000000..a2afa080ef4e24 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java @@ -0,0 +1,33149 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/experimental/v1/workspaces.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.experimental.v1; + +public final class Workspaces { + private Workspaces() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Workspaces.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * PortPolicy defines the accssbility policy of a workspace port is guarded by an authentication in the proxy
+   * 
+ * + * Protobuf enum {@code gitpod.experimental.v1.PortPolicy} + */ + public enum PortPolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PORT_POLICY_UNSPECIFIED = 0; + */ + PORT_POLICY_UNSPECIFIED(0), + /** + *
+     * Private means the port is accessible by the workspace owner only using the workspace port URL
+     * 
+ * + * PORT_POLICY_PRIVATE = 1; + */ + PORT_POLICY_PRIVATE(1), + /** + *
+     * Public means the port is accessible by everybody using the workspace port URL
+     * 
+ * + * PORT_POLICY_PUBLIC = 2; + */ + PORT_POLICY_PUBLIC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PortPolicy.class.getName()); + } + /** + * PORT_POLICY_UNSPECIFIED = 0; + */ + public static final int PORT_POLICY_UNSPECIFIED_VALUE = 0; + /** + *
+     * Private means the port is accessible by the workspace owner only using the workspace port URL
+     * 
+ * + * PORT_POLICY_PRIVATE = 1; + */ + public static final int PORT_POLICY_PRIVATE_VALUE = 1; + /** + *
+     * Public means the port is accessible by everybody using the workspace port URL
+     * 
+ * + * PORT_POLICY_PUBLIC = 2; + */ + public static final int PORT_POLICY_PUBLIC_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PortPolicy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PortPolicy forNumber(int value) { + switch (value) { + case 0: return PORT_POLICY_UNSPECIFIED; + case 1: return PORT_POLICY_PRIVATE; + case 2: return PORT_POLICY_PUBLIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PortPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PortPolicy findValueByNumber(int number) { + return PortPolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.getDescriptor().getEnumTypes().get(0); + } + + private static final PortPolicy[] VALUES = values(); + + public static PortPolicy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PortPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.experimental.v1.PortPolicy) + } + + /** + *
+   * PortProtocol defines the backend protocol of port
+   * 
+ * + * Protobuf enum {@code gitpod.experimental.v1.PortProtocol} + */ + public enum PortProtocol + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PORT_PROTOCOL_UNSPECIFIED = 0; + */ + PORT_PROTOCOL_UNSPECIFIED(0), + /** + *
+     * Http means the port backend is http
+     * 
+ * + * PORT_PROTOCOL_HTTP = 1; + */ + PORT_PROTOCOL_HTTP(1), + /** + *
+     * Https means the port backend is https
+     * 
+ * + * PORT_PROTOCOL_HTTPS = 2; + */ + PORT_PROTOCOL_HTTPS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PortProtocol.class.getName()); + } + /** + * PORT_PROTOCOL_UNSPECIFIED = 0; + */ + public static final int PORT_PROTOCOL_UNSPECIFIED_VALUE = 0; + /** + *
+     * Http means the port backend is http
+     * 
+ * + * PORT_PROTOCOL_HTTP = 1; + */ + public static final int PORT_PROTOCOL_HTTP_VALUE = 1; + /** + *
+     * Https means the port backend is https
+     * 
+ * + * PORT_PROTOCOL_HTTPS = 2; + */ + public static final int PORT_PROTOCOL_HTTPS_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PortProtocol valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PortProtocol forNumber(int value) { + switch (value) { + case 0: return PORT_PROTOCOL_UNSPECIFIED; + case 1: return PORT_PROTOCOL_HTTP; + case 2: return PORT_PROTOCOL_HTTPS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PortProtocol> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PortProtocol findValueByNumber(int number) { + return PortProtocol.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.getDescriptor().getEnumTypes().get(1); + } + + private static final PortProtocol[] VALUES = values(); + + public static PortProtocol valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PortProtocol(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.experimental.v1.PortProtocol) + } + + /** + *
+   * Admission level describes who can access a workspace instance and its ports.
+   * 
+ * + * Protobuf enum {@code gitpod.experimental.v1.AdmissionLevel} + */ + public enum AdmissionLevel + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ADMISSION_LEVEL_UNSPECIFIED = 0; + */ + ADMISSION_LEVEL_UNSPECIFIED(0), + /** + *
+     * ADMISSION_LEVEL_OWNER_ONLY means the workspace can only be accessed using the owner token
+     * 
+ * + * ADMISSION_LEVEL_OWNER_ONLY = 1; + */ + ADMISSION_LEVEL_OWNER_ONLY(1), + /** + *
+     * ADMISSION_LEVEL_EVERYONE means the workspace (including ports) can be accessed by everyone.
+     * 
+ * + * ADMISSION_LEVEL_EVERYONE = 2; + */ + ADMISSION_LEVEL_EVERYONE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + AdmissionLevel.class.getName()); + } + /** + * ADMISSION_LEVEL_UNSPECIFIED = 0; + */ + public static final int ADMISSION_LEVEL_UNSPECIFIED_VALUE = 0; + /** + *
+     * ADMISSION_LEVEL_OWNER_ONLY means the workspace can only be accessed using the owner token
+     * 
+ * + * ADMISSION_LEVEL_OWNER_ONLY = 1; + */ + public static final int ADMISSION_LEVEL_OWNER_ONLY_VALUE = 1; + /** + *
+     * ADMISSION_LEVEL_EVERYONE means the workspace (including ports) can be accessed by everyone.
+     * 
+ * + * ADMISSION_LEVEL_EVERYONE = 2; + */ + public static final int ADMISSION_LEVEL_EVERYONE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AdmissionLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AdmissionLevel forNumber(int value) { + switch (value) { + case 0: return ADMISSION_LEVEL_UNSPECIFIED; + case 1: return ADMISSION_LEVEL_OWNER_ONLY; + case 2: return ADMISSION_LEVEL_EVERYONE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AdmissionLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AdmissionLevel findValueByNumber(int number) { + return AdmissionLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.getDescriptor().getEnumTypes().get(2); + } + + private static final AdmissionLevel[] VALUES = values(); + + public static AdmissionLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AdmissionLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.experimental.v1.AdmissionLevel) + } + + public interface ListWorkspacesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListWorkspacesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination(); + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder(); + + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + * @return Whether the fieldMask field is set. + */ + boolean hasFieldMask(); + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + * @return The fieldMask. + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); + + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListWorkspacesRequest} + */ + public static final class ListWorkspacesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListWorkspacesRequest) + ListWorkspacesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspacesRequest.class.getName()); + } + // Use ListWorkspacesRequest.newBuilder() to construct. + private ListWorkspacesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspacesRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination pagination_; + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination() { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + + public static final int FIELD_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask fieldMask_; + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + * @return Whether the fieldMask field is set. + */ + @java.lang.Override + public boolean hasFieldMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + * @return The fieldMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getFieldMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFieldMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (hasFieldMask() != other.hasFieldMask()) return false; + if (hasFieldMask()) { + if (!getFieldMask() + .equals(other.getFieldMask())) return false; + } + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListWorkspacesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListWorkspacesRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getFieldMaskFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + fieldMask_ = null; + if (fieldMaskBuilder_ != null) { + fieldMaskBuilder_.dispose(); + fieldMaskBuilder_ = null; + } + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fieldMask_ = fieldMaskBuilder_ == null + ? fieldMask_ + : fieldMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.organizationId_ = organizationId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getFieldMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder> paginationBuilder_; + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.experimental.v1.Pagination pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.Pagination.Builder, io.gitpod.publicapi.experimental.v1.PaginationOuterClass.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private com.google.protobuf.FieldMask fieldMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_; + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + * @return Whether the fieldMask field is set. + */ + public boolean hasFieldMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + * @return The fieldMask. + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + } else { + fieldMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + */ + public Builder setFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + fieldMask_ != null && + fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getFieldMaskBuilder().mergeFrom(value); + } else { + fieldMask_ = value; + } + } else { + fieldMaskBuilder_.mergeFrom(value); + } + if (fieldMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + */ + public Builder clearFieldMask() { + bitField0_ = (bitField0_ & ~0x00000002); + fieldMask_ = null; + if (fieldMaskBuilder_ != null) { + fieldMaskBuilder_.dispose(); + fieldMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * .google.protobuf.FieldMask field_mask = 2 [json_name = "fieldMask"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), + getParentForChildren(), + isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListWorkspacesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListWorkspacesRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspacesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListWorkspacesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListWorkspacesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string next_page_token = 1 [json_name = "nextPageToken"]; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * string next_page_token = 1 [json_name = "nextPageToken"]; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + java.util.List + getResultList(); + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult(int index); + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + int getResultCount(); + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + java.util.List + getResultOrBuilderList(); + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListWorkspacesResponse} + */ + public static final class ListWorkspacesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListWorkspacesResponse) + ListWorkspacesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspacesResponse.class.getName()); + } + // Use ListWorkspacesResponse.newBuilder() to construct. + private ListWorkspacesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspacesResponse() { + nextPageToken_ = ""; + result_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse.Builder.class); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * string next_page_token = 1 [json_name = "nextPageToken"]; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * string next_page_token = 1 [json_name = "nextPageToken"]; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESULT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List result_; + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + @java.lang.Override + public java.util.List getResultList() { + return result_; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + @java.lang.Override + public java.util.List + getResultOrBuilderList() { + return result_; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + @java.lang.Override + public int getResultCount() { + return result_.size(); + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult(int index) { + return result_.get(index); + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder( + int index) { + return result_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, nextPageToken_); + } + for (int i = 0; i < result_.size(); i++) { + output.writeMessage(2, result_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, nextPageToken_); + } + for (int i = 0; i < result_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, result_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse) obj; + + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getResultList() + .equals(other.getResultList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListWorkspacesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListWorkspacesResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nextPageToken_ = ""; + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + } else { + result_ = null; + resultBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspacesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse result) { + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse.getDefaultInstance()) return this; + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000002); + resultBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.parser(), + extensionRegistry); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(m); + } else { + resultBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object nextPageToken_ = ""; + /** + * string next_page_token = 1 [json_name = "nextPageToken"]; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string next_page_token = 1 [json_name = "nextPageToken"]; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string next_page_token = 1 [json_name = "nextPageToken"]; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string next_page_token = 1 [json_name = "nextPageToken"]; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string next_page_token = 1 [json_name = "nextPageToken"]; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List result_ = + java.util.Collections.emptyList(); + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder> resultBuilder_; + + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public java.util.List getResultList() { + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public int getResultCount() { + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult(int index) { + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public Builder setResult( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public Builder setResult( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public Builder addResult(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public Builder addResult( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public Builder addResult( + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public Builder addResult( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public Builder addAllResult( + java.lang.Iterable values) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public Builder clearResult() { + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resultBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public Builder removeResult(int index) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder getResultBuilder( + int index) { + return getResultFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder( + int index) { + if (resultBuilder_ == null) { + return result_.get(index); } else { + return resultBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public java.util.List + getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); + } + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder addResultBuilder( + int index) { + return getResultFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.Workspace result = 2 [json_name = "result"]; + */ + public java.util.List + getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder>( + result_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListWorkspacesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListWorkspacesResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspacesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetWorkspaceRequest} + */ + public static final class GetWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetWorkspaceRequest) + GetWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceRequest.class.getName()); + } + // Use GetWorkspaceRequest.newBuilder() to construct. + private GetWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetWorkspaceRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetWorkspaceRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + boolean hasResult(); + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return The result. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult(); + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetWorkspaceResponse} + */ + public static final class GetWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetWorkspaceResponse) + GetWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceResponse.class.getName()); + } + // Use GetWorkspaceResponse.newBuilder() to construct. + private GetWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse.Builder.class); + } + + private int bitField0_; + public static final int RESULT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Workspaces.Workspace result_; + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + @java.lang.Override + public boolean hasResult() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return The result. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult() { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder() { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getResult()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResult()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse) obj; + + if (hasResult() != other.hasResult()) return false; + if (hasResult()) { + if (!getResult() + .equals(other.getResult())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResult()) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetWorkspaceResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); + resultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = resultBuilder_ == null + ? result_ + : resultBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse.getDefaultInstance()) return this; + if (other.hasResult()) { + mergeResult(other.getResult()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Workspaces.Workspace result_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder> resultBuilder_; + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + public boolean hasResult() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return The result. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult() { + if (resultBuilder_ == null) { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } else { + return resultBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder setResult(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + } else { + resultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder setResult( + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder builderForValue) { + if (resultBuilder_ == null) { + result_ = builderForValue.build(); + } else { + resultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder mergeResult(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace value) { + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + result_ != null && + result_ != io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); + } else { + result_ = value; + } + } else { + resultBuilder_.mergeFrom(value); + } + if (result_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000001); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); + resultBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder getResultBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getResultFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilder(); + } else { + return result_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder>( + getResult(), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetWorkspaceResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StreamWorkspaceStatusRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.StreamWorkspaceStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.StreamWorkspaceStatusRequest} + */ + public static final class StreamWorkspaceStatusRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.StreamWorkspaceStatusRequest) + StreamWorkspaceStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StreamWorkspaceStatusRequest.class.getName()); + } + // Use StreamWorkspaceStatusRequest.newBuilder() to construct. + private StreamWorkspaceStatusRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StreamWorkspaceStatusRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.StreamWorkspaceStatusRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.StreamWorkspaceStatusRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.StreamWorkspaceStatusRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.StreamWorkspaceStatusRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamWorkspaceStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StreamWorkspaceStatusResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.StreamWorkspaceStatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + boolean hasResult(); + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + * @return The result. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getResult(); + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getResultOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.StreamWorkspaceStatusResponse} + */ + public static final class StreamWorkspaceStatusResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.StreamWorkspaceStatusResponse) + StreamWorkspaceStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StreamWorkspaceStatusResponse.class.getName()); + } + // Use StreamWorkspaceStatusResponse.newBuilder() to construct. + private StreamWorkspaceStatusResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StreamWorkspaceStatusResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse.Builder.class); + } + + private int bitField0_; + public static final int RESULT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result_; + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + @java.lang.Override + public boolean hasResult() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + * @return The result. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getResult() { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : result_; + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getResultOrBuilder() { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : result_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getResult()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResult()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse) obj; + + if (hasResult() != other.hasResult()) return false; + if (hasResult()) { + if (!getResult() + .equals(other.getResult())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResult()) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.StreamWorkspaceStatusResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.StreamWorkspaceStatusResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); + resultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = resultBuilder_ == null + ? result_ + : resultBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse.getDefaultInstance()) return this; + if (other.hasResult()) { + mergeResult(other.getResult()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder> resultBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + public boolean hasResult() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + * @return The result. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getResult() { + if (resultBuilder_ == null) { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : result_; + } else { + return resultBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + */ + public Builder setResult(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + } else { + resultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + */ + public Builder setResult( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder builderForValue) { + if (resultBuilder_ == null) { + result_ = builderForValue.build(); + } else { + resultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + */ + public Builder mergeResult(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus value) { + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + result_ != null && + result_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); + } else { + result_ = value; + } + } else { + resultBuilder_.mergeFrom(value); + } + if (result_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000001); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); + resultBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder getResultBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getResultFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getResultOrBuilder() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilder(); + } else { + return result_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : result_; + } + } + /** + * .gitpod.experimental.v1.WorkspaceStatus result = 1 [json_name = "result"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder>( + getResult(), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.StreamWorkspaceStatusResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.StreamWorkspaceStatusResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamWorkspaceStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOwnerTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetOwnerTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetOwnerTokenRequest} + */ + public static final class GetOwnerTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetOwnerTokenRequest) + GetOwnerTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOwnerTokenRequest.class.getName()); + } + // Use GetOwnerTokenRequest.newBuilder() to construct. + private GetOwnerTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOwnerTokenRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetOwnerTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetOwnerTokenRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetOwnerTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetOwnerTokenRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOwnerTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOwnerTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetOwnerTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string token = 1 [json_name = "token"]; + * @return The token. + */ + java.lang.String getToken(); + /** + * string token = 1 [json_name = "token"]; + * @return The bytes for token. + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetOwnerTokenResponse} + */ + public static final class GetOwnerTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetOwnerTokenResponse) + GetOwnerTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOwnerTokenResponse.class.getName()); + } + // Use GetOwnerTokenResponse.newBuilder() to construct. + private GetOwnerTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOwnerTokenResponse() { + token_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse.Builder.class); + } + + public static final int TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + * string token = 1 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + * string token = 1 [json_name = "token"]; + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, token_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, token_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse) obj; + + if (!getToken() + .equals(other.getToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetOwnerTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetOwnerTokenResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = token_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse.getDefaultInstance()) return this; + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object token_ = ""; + /** + * string token = 1 [json_name = "token"]; + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string token = 1 [json_name = "token"]; + * @return The bytes for token. + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string token = 1 [json_name = "token"]; + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string token = 1 [json_name = "token"]; + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string token = 1 [json_name = "token"]; + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetOwnerTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetOwnerTokenResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOwnerTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateAndStartWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateAndStartWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string idempotency_token = 1 [json_name = "idempotencyToken"]; + * @return The idempotencyToken. + */ + java.lang.String getIdempotencyToken(); + /** + * string idempotency_token = 1 [json_name = "idempotencyToken"]; + * @return The bytes for idempotencyToken. + */ + com.google.protobuf.ByteString + getIdempotencyTokenBytes(); + + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return Whether the contextUrl field is set. + */ + boolean hasContextUrl(); + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + java.lang.String getContextUrl(); + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + com.google.protobuf.ByteString + getContextUrlBytes(); + + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return Whether the prebuildId field is set. + */ + boolean hasPrebuildId(); + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + java.lang.String getPrebuildId(); + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + com.google.protobuf.ByteString + getPrebuildIdBytes(); + + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + * @return Whether the startSpec field is set. + */ + boolean hasStartSpec(); + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + * @return The startSpec. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec getStartSpec(); + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpecOrBuilder getStartSpecOrBuilder(); + + /** + * string organization_id = 6 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 6 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * bool ignore_running_workspace_on_same_commit = 7 [json_name = "ignoreRunningWorkspaceOnSameCommit"]; + * @return The ignoreRunningWorkspaceOnSameCommit. + */ + boolean getIgnoreRunningWorkspaceOnSameCommit(); + + /** + * bool ignore_running_prebuild = 8 [json_name = "ignoreRunningPrebuild"]; + * @return The ignoreRunningPrebuild. + */ + boolean getIgnoreRunningPrebuild(); + + /** + * bool allow_using_previous_prebuilds = 9 [json_name = "allowUsingPreviousPrebuilds"]; + * @return The allowUsingPreviousPrebuilds. + */ + boolean getAllowUsingPreviousPrebuilds(); + + /** + * bool force_default_config = 10 [json_name = "forceDefaultConfig"]; + * @return The forceDefaultConfig. + */ + boolean getForceDefaultConfig(); + + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest.SourceCase getSourceCase(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateAndStartWorkspaceRequest} + */ + public static final class CreateAndStartWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateAndStartWorkspaceRequest) + CreateAndStartWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateAndStartWorkspaceRequest.class.getName()); + } + // Use CreateAndStartWorkspaceRequest.newBuilder() to construct. + private CreateAndStartWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateAndStartWorkspaceRequest() { + idempotencyToken_ = ""; + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest.Builder.class); + } + + private int bitField0_; + private int sourceCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object source_; + public enum SourceCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTEXT_URL(2), + PREBUILD_ID(3), + SOURCE_NOT_SET(0); + private final int value; + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: return CONTEXT_URL; + case 3: return PREBUILD_ID; + case 0: return SOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public static final int IDEMPOTENCY_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object idempotencyToken_ = ""; + /** + * string idempotency_token = 1 [json_name = "idempotencyToken"]; + * @return The idempotencyToken. + */ + @java.lang.Override + public java.lang.String getIdempotencyToken() { + java.lang.Object ref = idempotencyToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + idempotencyToken_ = s; + return s; + } + } + /** + * string idempotency_token = 1 [json_name = "idempotencyToken"]; + * @return The bytes for idempotencyToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdempotencyTokenBytes() { + java.lang.Object ref = idempotencyToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idempotencyToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTEXT_URL_FIELD_NUMBER = 2; + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return Whether the contextUrl field is set. + */ + public boolean hasContextUrl() { + return sourceCase_ == 2; + } + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + public java.lang.String getContextUrl() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } + } + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREBUILD_ID_FIELD_NUMBER = 3; + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return Whether the prebuildId field is set. + */ + public boolean hasPrebuildId() { + return sourceCase_ == 3; + } + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + public java.lang.String getPrebuildId() { + java.lang.Object ref = ""; + if (sourceCase_ == 3) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 3) { + source_ = s; + } + return s; + } + } + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 3) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 3) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_SPEC_FIELD_NUMBER = 5; + private io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec startSpec_; + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + * @return Whether the startSpec field is set. + */ + @java.lang.Override + public boolean hasStartSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + * @return The startSpec. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec getStartSpec() { + return startSpec_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.getDefaultInstance() : startSpec_; + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpecOrBuilder getStartSpecOrBuilder() { + return startSpec_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.getDefaultInstance() : startSpec_; + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 6 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 6 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IGNORE_RUNNING_WORKSPACE_ON_SAME_COMMIT_FIELD_NUMBER = 7; + private boolean ignoreRunningWorkspaceOnSameCommit_ = false; + /** + * bool ignore_running_workspace_on_same_commit = 7 [json_name = "ignoreRunningWorkspaceOnSameCommit"]; + * @return The ignoreRunningWorkspaceOnSameCommit. + */ + @java.lang.Override + public boolean getIgnoreRunningWorkspaceOnSameCommit() { + return ignoreRunningWorkspaceOnSameCommit_; + } + + public static final int IGNORE_RUNNING_PREBUILD_FIELD_NUMBER = 8; + private boolean ignoreRunningPrebuild_ = false; + /** + * bool ignore_running_prebuild = 8 [json_name = "ignoreRunningPrebuild"]; + * @return The ignoreRunningPrebuild. + */ + @java.lang.Override + public boolean getIgnoreRunningPrebuild() { + return ignoreRunningPrebuild_; + } + + public static final int ALLOW_USING_PREVIOUS_PREBUILDS_FIELD_NUMBER = 9; + private boolean allowUsingPreviousPrebuilds_ = false; + /** + * bool allow_using_previous_prebuilds = 9 [json_name = "allowUsingPreviousPrebuilds"]; + * @return The allowUsingPreviousPrebuilds. + */ + @java.lang.Override + public boolean getAllowUsingPreviousPrebuilds() { + return allowUsingPreviousPrebuilds_; + } + + public static final int FORCE_DEFAULT_CONFIG_FIELD_NUMBER = 10; + private boolean forceDefaultConfig_ = false; + /** + * bool force_default_config = 10 [json_name = "forceDefaultConfig"]; + * @return The forceDefaultConfig. + */ + @java.lang.Override + public boolean getForceDefaultConfig() { + return forceDefaultConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(idempotencyToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, idempotencyToken_); + } + if (sourceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); + } + if (sourceCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getStartSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, organizationId_); + } + if (ignoreRunningWorkspaceOnSameCommit_ != false) { + output.writeBool(7, ignoreRunningWorkspaceOnSameCommit_); + } + if (ignoreRunningPrebuild_ != false) { + output.writeBool(8, ignoreRunningPrebuild_); + } + if (allowUsingPreviousPrebuilds_ != false) { + output.writeBool(9, allowUsingPreviousPrebuilds_); + } + if (forceDefaultConfig_ != false) { + output.writeBool(10, forceDefaultConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(idempotencyToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, idempotencyToken_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); + } + if (sourceCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, organizationId_); + } + if (ignoreRunningWorkspaceOnSameCommit_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, ignoreRunningWorkspaceOnSameCommit_); + } + if (ignoreRunningPrebuild_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, ignoreRunningPrebuild_); + } + if (allowUsingPreviousPrebuilds_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, allowUsingPreviousPrebuilds_); + } + if (forceDefaultConfig_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, forceDefaultConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest) obj; + + if (!getIdempotencyToken() + .equals(other.getIdempotencyToken())) return false; + if (hasStartSpec() != other.hasStartSpec()) return false; + if (hasStartSpec()) { + if (!getStartSpec() + .equals(other.getStartSpec())) return false; + } + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (getIgnoreRunningWorkspaceOnSameCommit() + != other.getIgnoreRunningWorkspaceOnSameCommit()) return false; + if (getIgnoreRunningPrebuild() + != other.getIgnoreRunningPrebuild()) return false; + if (getAllowUsingPreviousPrebuilds() + != other.getAllowUsingPreviousPrebuilds()) return false; + if (getForceDefaultConfig() + != other.getForceDefaultConfig()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getContextUrl() + .equals(other.getContextUrl())) return false; + break; + case 3: + if (!getPrebuildId() + .equals(other.getPrebuildId())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IDEMPOTENCY_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getIdempotencyToken().hashCode(); + if (hasStartSpec()) { + hash = (37 * hash) + START_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getStartSpec().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + IGNORE_RUNNING_WORKSPACE_ON_SAME_COMMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreRunningWorkspaceOnSameCommit()); + hash = (37 * hash) + IGNORE_RUNNING_PREBUILD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreRunningPrebuild()); + hash = (37 * hash) + ALLOW_USING_PREVIOUS_PREBUILDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowUsingPreviousPrebuilds()); + hash = (37 * hash) + FORCE_DEFAULT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForceDefaultConfig()); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + CONTEXT_URL_FIELD_NUMBER; + hash = (53 * hash) + getContextUrl().hashCode(); + break; + case 3: + hash = (37 * hash) + PREBUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateAndStartWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateAndStartWorkspaceRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStartSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + idempotencyToken_ = ""; + startSpec_ = null; + if (startSpecBuilder_ != null) { + startSpecBuilder_.dispose(); + startSpecBuilder_ = null; + } + organizationId_ = ""; + ignoreRunningWorkspaceOnSameCommit_ = false; + ignoreRunningPrebuild_ = false; + allowUsingPreviousPrebuilds_ = false; + forceDefaultConfig_ = false; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.idempotencyToken_ = idempotencyToken_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startSpec_ = startSpecBuilder_ == null + ? startSpec_ + : startSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ignoreRunningWorkspaceOnSameCommit_ = ignoreRunningWorkspaceOnSameCommit_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreRunningPrebuild_ = ignoreRunningPrebuild_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.allowUsingPreviousPrebuilds_ = allowUsingPreviousPrebuilds_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.forceDefaultConfig_ = forceDefaultConfig_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getIdempotencyToken().isEmpty()) { + idempotencyToken_ = other.idempotencyToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStartSpec()) { + mergeStartSpec(other.getStartSpec()); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getIgnoreRunningWorkspaceOnSameCommit() != false) { + setIgnoreRunningWorkspaceOnSameCommit(other.getIgnoreRunningWorkspaceOnSameCommit()); + } + if (other.getIgnoreRunningPrebuild() != false) { + setIgnoreRunningPrebuild(other.getIgnoreRunningPrebuild()); + } + if (other.getAllowUsingPreviousPrebuilds() != false) { + setAllowUsingPreviousPrebuilds(other.getAllowUsingPreviousPrebuilds()); + } + if (other.getForceDefaultConfig() != false) { + setForceDefaultConfig(other.getForceDefaultConfig()); + } + switch (other.getSourceCase()) { + case CONTEXT_URL: { + sourceCase_ = 2; + source_ = other.source_; + onChanged(); + break; + } + case PREBUILD_ID: { + sourceCase_ = 3; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + idempotencyToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + source_ = s; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 3; + source_ = s; + break; + } // case 26 + case 42: { + input.readMessage( + getStartSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: { + ignoreRunningWorkspaceOnSameCommit_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: { + ignoreRunningPrebuild_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: { + allowUsingPreviousPrebuilds_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 80: { + forceDefaultConfig_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int sourceCase_ = 0; + private java.lang.Object source_; + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object idempotencyToken_ = ""; + /** + * string idempotency_token = 1 [json_name = "idempotencyToken"]; + * @return The idempotencyToken. + */ + public java.lang.String getIdempotencyToken() { + java.lang.Object ref = idempotencyToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + idempotencyToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string idempotency_token = 1 [json_name = "idempotencyToken"]; + * @return The bytes for idempotencyToken. + */ + public com.google.protobuf.ByteString + getIdempotencyTokenBytes() { + java.lang.Object ref = idempotencyToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idempotencyToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string idempotency_token = 1 [json_name = "idempotencyToken"]; + * @param value The idempotencyToken to set. + * @return This builder for chaining. + */ + public Builder setIdempotencyToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + idempotencyToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string idempotency_token = 1 [json_name = "idempotencyToken"]; + * @return This builder for chaining. + */ + public Builder clearIdempotencyToken() { + idempotencyToken_ = getDefaultInstance().getIdempotencyToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string idempotency_token = 1 [json_name = "idempotencyToken"]; + * @param value The bytes for idempotencyToken to set. + * @return This builder for chaining. + */ + public Builder setIdempotencyTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + idempotencyToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return Whether the contextUrl field is set. + */ + @java.lang.Override + public boolean hasContextUrl() { + return sourceCase_ == 2; + } + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + @java.lang.Override + public java.lang.String getContextUrl() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @param value The contextUrl to set. + * @return This builder for chaining. + */ + public Builder setContextUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @return This builder for chaining. + */ + public Builder clearContextUrl() { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + /** + * string context_url = 2 [json_name = "contextUrl"]; + * @param value The bytes for contextUrl to set. + * @return This builder for chaining. + */ + public Builder setContextUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return Whether the prebuildId field is set. + */ + @java.lang.Override + public boolean hasPrebuildId() { + return sourceCase_ == 3; + } + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + @java.lang.Override + public java.lang.String getPrebuildId() { + java.lang.Object ref = ""; + if (sourceCase_ == 3) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 3) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 3) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 3) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @param value The prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + sourceCase_ = 3; + source_ = value; + onChanged(); + return this; + } + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildId() { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + /** + * string prebuild_id = 3 [json_name = "prebuildId"]; + * @param value The bytes for prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + sourceCase_ = 3; + source_ = value; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec startSpec_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpecOrBuilder> startSpecBuilder_; + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + * @return Whether the startSpec field is set. + */ + public boolean hasStartSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + * @return The startSpec. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec getStartSpec() { + if (startSpecBuilder_ == null) { + return startSpec_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.getDefaultInstance() : startSpec_; + } else { + return startSpecBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + */ + public Builder setStartSpec(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec value) { + if (startSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startSpec_ = value; + } else { + startSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + */ + public Builder setStartSpec( + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.Builder builderForValue) { + if (startSpecBuilder_ == null) { + startSpec_ = builderForValue.build(); + } else { + startSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + */ + public Builder mergeStartSpec(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec value) { + if (startSpecBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + startSpec_ != null && + startSpec_ != io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.getDefaultInstance()) { + getStartSpecBuilder().mergeFrom(value); + } else { + startSpec_ = value; + } + } else { + startSpecBuilder_.mergeFrom(value); + } + if (startSpec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + */ + public Builder clearStartSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + startSpec_ = null; + if (startSpecBuilder_ != null) { + startSpecBuilder_.dispose(); + startSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.Builder getStartSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStartSpecFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpecOrBuilder getStartSpecOrBuilder() { + if (startSpecBuilder_ != null) { + return startSpecBuilder_.getMessageOrBuilder(); + } else { + return startSpec_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.getDefaultInstance() : startSpec_; + } + } + /** + * .gitpod.experimental.v1.StartWorkspaceSpec start_spec = 5 [json_name = "startSpec"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpecOrBuilder> + getStartSpecFieldBuilder() { + if (startSpecBuilder_ == null) { + startSpecBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpecOrBuilder>( + getStartSpec(), + getParentForChildren(), + isClean()); + startSpec_ = null; + } + return startSpecBuilder_; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 6 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 6 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 6 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string organization_id = 6 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string organization_id = 6 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean ignoreRunningWorkspaceOnSameCommit_ ; + /** + * bool ignore_running_workspace_on_same_commit = 7 [json_name = "ignoreRunningWorkspaceOnSameCommit"]; + * @return The ignoreRunningWorkspaceOnSameCommit. + */ + @java.lang.Override + public boolean getIgnoreRunningWorkspaceOnSameCommit() { + return ignoreRunningWorkspaceOnSameCommit_; + } + /** + * bool ignore_running_workspace_on_same_commit = 7 [json_name = "ignoreRunningWorkspaceOnSameCommit"]; + * @param value The ignoreRunningWorkspaceOnSameCommit to set. + * @return This builder for chaining. + */ + public Builder setIgnoreRunningWorkspaceOnSameCommit(boolean value) { + + ignoreRunningWorkspaceOnSameCommit_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * bool ignore_running_workspace_on_same_commit = 7 [json_name = "ignoreRunningWorkspaceOnSameCommit"]; + * @return This builder for chaining. + */ + public Builder clearIgnoreRunningWorkspaceOnSameCommit() { + bitField0_ = (bitField0_ & ~0x00000020); + ignoreRunningWorkspaceOnSameCommit_ = false; + onChanged(); + return this; + } + + private boolean ignoreRunningPrebuild_ ; + /** + * bool ignore_running_prebuild = 8 [json_name = "ignoreRunningPrebuild"]; + * @return The ignoreRunningPrebuild. + */ + @java.lang.Override + public boolean getIgnoreRunningPrebuild() { + return ignoreRunningPrebuild_; + } + /** + * bool ignore_running_prebuild = 8 [json_name = "ignoreRunningPrebuild"]; + * @param value The ignoreRunningPrebuild to set. + * @return This builder for chaining. + */ + public Builder setIgnoreRunningPrebuild(boolean value) { + + ignoreRunningPrebuild_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * bool ignore_running_prebuild = 8 [json_name = "ignoreRunningPrebuild"]; + * @return This builder for chaining. + */ + public Builder clearIgnoreRunningPrebuild() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreRunningPrebuild_ = false; + onChanged(); + return this; + } + + private boolean allowUsingPreviousPrebuilds_ ; + /** + * bool allow_using_previous_prebuilds = 9 [json_name = "allowUsingPreviousPrebuilds"]; + * @return The allowUsingPreviousPrebuilds. + */ + @java.lang.Override + public boolean getAllowUsingPreviousPrebuilds() { + return allowUsingPreviousPrebuilds_; + } + /** + * bool allow_using_previous_prebuilds = 9 [json_name = "allowUsingPreviousPrebuilds"]; + * @param value The allowUsingPreviousPrebuilds to set. + * @return This builder for chaining. + */ + public Builder setAllowUsingPreviousPrebuilds(boolean value) { + + allowUsingPreviousPrebuilds_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * bool allow_using_previous_prebuilds = 9 [json_name = "allowUsingPreviousPrebuilds"]; + * @return This builder for chaining. + */ + public Builder clearAllowUsingPreviousPrebuilds() { + bitField0_ = (bitField0_ & ~0x00000080); + allowUsingPreviousPrebuilds_ = false; + onChanged(); + return this; + } + + private boolean forceDefaultConfig_ ; + /** + * bool force_default_config = 10 [json_name = "forceDefaultConfig"]; + * @return The forceDefaultConfig. + */ + @java.lang.Override + public boolean getForceDefaultConfig() { + return forceDefaultConfig_; + } + /** + * bool force_default_config = 10 [json_name = "forceDefaultConfig"]; + * @param value The forceDefaultConfig to set. + * @return This builder for chaining. + */ + public Builder setForceDefaultConfig(boolean value) { + + forceDefaultConfig_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * bool force_default_config = 10 [json_name = "forceDefaultConfig"]; + * @return This builder for chaining. + */ + public Builder clearForceDefaultConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + forceDefaultConfig_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateAndStartWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateAndStartWorkspaceRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAndStartWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateAndStartWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.CreateAndStartWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateAndStartWorkspaceResponse} + */ + public static final class CreateAndStartWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.CreateAndStartWorkspaceResponse) + CreateAndStartWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateAndStartWorkspaceResponse.class.getName()); + } + // Use CreateAndStartWorkspaceResponse.newBuilder() to construct. + private CreateAndStartWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateAndStartWorkspaceResponse() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.CreateAndStartWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.CreateAndStartWorkspaceResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.CreateAndStartWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.CreateAndStartWorkspaceResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAndStartWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StartWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.StartWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.StartWorkspaceRequest} + */ + public static final class StartWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.StartWorkspaceRequest) + StartWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StartWorkspaceRequest.class.getName()); + } + // Use StartWorkspaceRequest.newBuilder() to construct. + private StartWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StartWorkspaceRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.StartWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.StartWorkspaceRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.StartWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.StartWorkspaceRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StartWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.StartWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + boolean hasResult(); + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return The result. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult(); + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.StartWorkspaceResponse} + */ + public static final class StartWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.StartWorkspaceResponse) + StartWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StartWorkspaceResponse.class.getName()); + } + // Use StartWorkspaceResponse.newBuilder() to construct. + private StartWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StartWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse.Builder.class); + } + + private int bitField0_; + public static final int RESULT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Workspaces.Workspace result_; + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + @java.lang.Override + public boolean hasResult() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return The result. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult() { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder() { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getResult()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResult()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse) obj; + + if (hasResult() != other.hasResult()) return false; + if (hasResult()) { + if (!getResult() + .equals(other.getResult())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResult()) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.StartWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.StartWorkspaceResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); + resultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = resultBuilder_ == null + ? result_ + : resultBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse.getDefaultInstance()) return this; + if (other.hasResult()) { + mergeResult(other.getResult()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Workspaces.Workspace result_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder> resultBuilder_; + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + public boolean hasResult() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return The result. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult() { + if (resultBuilder_ == null) { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } else { + return resultBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder setResult(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + } else { + resultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder setResult( + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder builderForValue) { + if (resultBuilder_ == null) { + result_ = builderForValue.build(); + } else { + resultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder mergeResult(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace value) { + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + result_ != null && + result_ != io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); + } else { + result_ = value; + } + } else { + resultBuilder_.mergeFrom(value); + } + if (result_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000001); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); + resultBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder getResultBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getResultFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilder(); + } else { + return result_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder>( + getResult(), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.StartWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.StartWorkspaceResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StopWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.StopWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.StopWorkspaceRequest} + */ + public static final class StopWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.StopWorkspaceRequest) + StopWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StopWorkspaceRequest.class.getName()); + } + // Use StopWorkspaceRequest.newBuilder() to construct. + private StopWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StopWorkspaceRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.StopWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.StopWorkspaceRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.StopWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.StopWorkspaceRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StopWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.StopWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + boolean hasResult(); + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return The result. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult(); + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.StopWorkspaceResponse} + */ + public static final class StopWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.StopWorkspaceResponse) + StopWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StopWorkspaceResponse.class.getName()); + } + // Use StopWorkspaceResponse.newBuilder() to construct. + private StopWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StopWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse.Builder.class); + } + + private int bitField0_; + public static final int RESULT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Workspaces.Workspace result_; + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + @java.lang.Override + public boolean hasResult() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return The result. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult() { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder() { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getResult()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResult()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse) obj; + + if (hasResult() != other.hasResult()) return false; + if (hasResult()) { + if (!getResult() + .equals(other.getResult())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResult()) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.StopWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.StopWorkspaceResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); + resultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StopWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = resultBuilder_ == null + ? result_ + : resultBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse.getDefaultInstance()) return this; + if (other.hasResult()) { + mergeResult(other.getResult()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Workspaces.Workspace result_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder> resultBuilder_; + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return Whether the result field is set. + */ + public boolean hasResult() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + * @return The result. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getResult() { + if (resultBuilder_ == null) { + return result_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } else { + return resultBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder setResult(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + } else { + resultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder setResult( + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder builderForValue) { + if (resultBuilder_ == null) { + result_ = builderForValue.build(); + } else { + resultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder mergeResult(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace value) { + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + result_ != null && + result_ != io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); + } else { + result_ = value; + } + } else { + resultBuilder_.mergeFrom(value); + } + if (result_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000001); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); + resultBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder getResultBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getResultFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder getResultOrBuilder() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilder(); + } else { + return result_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance() : result_; + } + } + /** + * .gitpod.experimental.v1.Workspace result = 1 [json_name = "result"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder>( + getResult(), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.StopWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.StopWorkspaceResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteWorkspaceRequest} + */ + public static final class DeleteWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteWorkspaceRequest) + DeleteWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteWorkspaceRequest.class.getName()); + } + // Use DeleteWorkspaceRequest.newBuilder() to construct. + private DeleteWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteWorkspaceRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteWorkspaceRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteWorkspaceRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.DeleteWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteWorkspaceResponse} + */ + public static final class DeleteWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.DeleteWorkspaceResponse) + DeleteWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteWorkspaceResponse.class.getName()); + } + // Use DeleteWorkspaceResponse.newBuilder() to construct. + private DeleteWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.DeleteWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.DeleteWorkspaceResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.DeleteWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.DeleteWorkspaceResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListWorkspaceClassesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListWorkspaceClassesRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListWorkspaceClassesRequest} + */ + public static final class ListWorkspaceClassesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListWorkspaceClassesRequest) + ListWorkspaceClassesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspaceClassesRequest.class.getName()); + } + // Use ListWorkspaceClassesRequest.newBuilder() to construct. + private ListWorkspaceClassesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspaceClassesRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListWorkspaceClassesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListWorkspaceClassesRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListWorkspaceClassesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListWorkspaceClassesRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspaceClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListWorkspaceClassesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.ListWorkspaceClassesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + java.util.List + getResultList(); + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass getResult(int index); + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + int getResultCount(); + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + java.util.List + getResultOrBuilderList(); + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClassOrBuilder getResultOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListWorkspaceClassesResponse} + */ + public static final class ListWorkspaceClassesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.ListWorkspaceClassesResponse) + ListWorkspaceClassesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspaceClassesResponse.class.getName()); + } + // Use ListWorkspaceClassesResponse.newBuilder() to construct. + private ListWorkspaceClassesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspaceClassesResponse() { + result_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse.Builder.class); + } + + public static final int RESULT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List result_; + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + @java.lang.Override + public java.util.List getResultList() { + return result_; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + @java.lang.Override + public java.util.List + getResultOrBuilderList() { + return result_; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + @java.lang.Override + public int getResultCount() { + return result_.size(); + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass getResult(int index) { + return result_.get(index); + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClassOrBuilder getResultOrBuilder( + int index) { + return result_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < result_.size(); i++) { + output.writeMessage(1, result_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < result_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, result_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse) obj; + + if (!getResultList() + .equals(other.getResultList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.ListWorkspaceClassesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.ListWorkspaceClassesResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + } else { + result_ = null; + resultBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse result) { + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse.getDefaultInstance()) return this; + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000001); + resultBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.parser(), + extensionRegistry); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(m); + } else { + resultBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List result_ = + java.util.Collections.emptyList(); + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClassOrBuilder> resultBuilder_; + + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public java.util.List getResultList() { + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public int getResultCount() { + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass getResult(int index) { + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public Builder setResult( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public Builder setResult( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public Builder addResult(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public Builder addResult( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public Builder addResult( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public Builder addResult( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public Builder addAllResult( + java.lang.Iterable values) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public Builder clearResult() { + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public Builder removeResult(int index) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder getResultBuilder( + int index) { + return getResultFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClassOrBuilder getResultOrBuilder( + int index) { + if (resultBuilder_ == null) { + return result_.get(index); } else { + return resultBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public java.util.List + getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); + } + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder addResultBuilder( + int index) { + return getResultFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.getDefaultInstance()); + } + /** + * repeated .gitpod.experimental.v1.WorkspaceClass result = 1 [json_name = "result"]; + */ + public java.util.List + getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClassOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClassOrBuilder>( + result_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.ListWorkspaceClassesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.ListWorkspaceClassesResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspaceClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.Workspace) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id is the ID of the workspace
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id is the ID of the workspace
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + *
+     * owner_id is the ID of the user who created this workspace
+     * 
+ * + * string owner_id = 2 [json_name = "ownerId"]; + * @return The ownerId. + */ + java.lang.String getOwnerId(); + /** + *
+     * owner_id is the ID of the user who created this workspace
+     * 
+ * + * string owner_id = 2 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + + /** + *
+     * project_id is the ID of the project which this workspace belongs to
+     * 
+ * + * string project_id = 3 [json_name = "projectId"]; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + *
+     * project_id is the ID of the project which this workspace belongs to
+     * 
+ * + * string project_id = 3 [json_name = "projectId"]; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+     * context reports the original context the workspace was created from
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + *
+     * context reports the original context the workspace was created from
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + * @return The context. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getContext(); + /** + *
+     * context reports the original context the workspace was created from
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder getContextOrBuilder(); + + /** + *
+     * description is a human readable description of the workspace
+     * 
+ * + * string description = 5 [json_name = "description"]; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * description is a human readable description of the workspace
+     * 
+ * + * string description = 5 [json_name = "description"]; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * status is the current status of this Workspace.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+     * status is the current status of this Workspace.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * @return The status. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getStatus(); + /** + *
+     * status is the current status of this Workspace.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * Workspace describes a single workspace
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.Workspace} + */ + public static final class Workspace extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.Workspace) + WorkspaceOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Workspace.class.getName()); + } + // Use Workspace.newBuilder() to construct. + private Workspace(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Workspace() { + workspaceId_ = ""; + ownerId_ = ""; + projectId_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Workspace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Workspace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.class, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id is the ID of the workspace
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id is the ID of the workspace
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object ownerId_ = ""; + /** + *
+     * owner_id is the ID of the user who created this workspace
+     * 
+ * + * string owner_id = 2 [json_name = "ownerId"]; + * @return The ownerId. + */ + @java.lang.Override + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } + } + /** + *
+     * owner_id is the ID of the user who created this workspace
+     * 
+ * + * string owner_id = 2 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+     * project_id is the ID of the project which this workspace belongs to
+     * 
+ * + * string project_id = 3 [json_name = "projectId"]; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+     * project_id is the ID of the project which this workspace belongs to
+     * 
+ * + * string project_id = 3 [json_name = "projectId"]; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTEXT_FIELD_NUMBER = 4; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext context_; + /** + *
+     * context reports the original context the workspace was created from
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * context reports the original context the workspace was created from
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + * @return The context. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getContext() { + return context_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance() : context_; + } + /** + *
+     * context reports the original context the workspace was created from
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder getContextOrBuilder() { + return context_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance() : context_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+     * description is a human readable description of the workspace
+     * 
+ * + * string description = 5 [json_name = "description"]; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * description is a human readable description of the workspace
+     * 
+ * + * string description = 5 [json_name = "description"]; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 6; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus status_; + /** + *
+     * status is the current status of this Workspace.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * status is the current status of this Workspace.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getStatus() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_; + } + /** + *
+     * status is the current status of this Workspace.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ownerId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, ownerId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, projectId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getContext()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ownerId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, ownerId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, projectId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getContext()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.Workspace)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace other = (io.gitpod.publicapi.experimental.v1.Workspaces.Workspace) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) return false; + } + if (!getDescription() + .equals(other.getDescription())) return false; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + if (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Workspace describes a single workspace
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.Workspace} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.Workspace) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Workspace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Workspace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.class, io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getContextFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + ownerId_ = ""; + projectId_ = ""; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + description_ = ""; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Workspace_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace build() { + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.Workspace result = new io.gitpod.publicapi.experimental.v1.Workspaces.Workspace(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ownerId_ = ownerId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.projectId_ = projectId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.context_ = contextBuilder_ == null + ? context_ + : contextBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.Workspace) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.Workspace)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.Workspace other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.Workspace.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasContext()) { + mergeContext(other.getContext()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + ownerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id is the ID of the workspace
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id is the ID of the workspace
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id is the ID of the workspace
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id is the ID of the workspace
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id is the ID of the workspace
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ownerId_ = ""; + /** + *
+       * owner_id is the ID of the user who created this workspace
+       * 
+ * + * string owner_id = 2 [json_name = "ownerId"]; + * @return The ownerId. + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * owner_id is the ID of the user who created this workspace
+       * 
+ * + * string owner_id = 2 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * owner_id is the ID of the user who created this workspace
+       * 
+ * + * string owner_id = 2 [json_name = "ownerId"]; + * @param value The ownerId to set. + * @return This builder for chaining. + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ownerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * owner_id is the ID of the user who created this workspace
+       * 
+ * + * string owner_id = 2 [json_name = "ownerId"]; + * @return This builder for chaining. + */ + public Builder clearOwnerId() { + ownerId_ = getDefaultInstance().getOwnerId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * owner_id is the ID of the user who created this workspace
+       * 
+ * + * string owner_id = 2 [json_name = "ownerId"]; + * @param value The bytes for ownerId to set. + * @return This builder for chaining. + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ownerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+       * project_id is the ID of the project which this workspace belongs to
+       * 
+ * + * string project_id = 3 [json_name = "projectId"]; + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * project_id is the ID of the project which this workspace belongs to
+       * 
+ * + * string project_id = 3 [json_name = "projectId"]; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * project_id is the ID of the project which this workspace belongs to
+       * 
+ * + * string project_id = 3 [json_name = "projectId"]; + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + projectId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * project_id is the ID of the project which this workspace belongs to
+       * 
+ * + * string project_id = 3 [json_name = "projectId"]; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * project_id is the ID of the project which this workspace belongs to
+       * 
+ * + * string project_id = 3 [json_name = "projectId"]; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext context_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder> contextBuilder_; + /** + *
+       * context reports the original context the workspace was created from
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + * @return Whether the context field is set. + */ + public boolean hasContext() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * context reports the original context the workspace was created from
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + * @return The context. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getContext() { + if (contextBuilder_ == null) { + return context_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance() : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + *
+       * context reports the original context the workspace was created from
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + */ + public Builder setContext(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + } else { + contextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * context reports the original context the workspace was created from
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + */ + public Builder setContext( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * context reports the original context the workspace was created from
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + */ + public Builder mergeContext(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext value) { + if (contextBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + context_ != null && + context_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); + } else { + context_ = value; + } + } else { + contextBuilder_.mergeFrom(value); + } + if (context_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * context reports the original context the workspace was created from
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + */ + public Builder clearContext() { + bitField0_ = (bitField0_ & ~0x00000008); + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * context reports the original context the workspace was created from
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder getContextBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + *
+       * context reports the original context the workspace was created from
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance() : context_; + } + } + /** + *
+       * context reports the original context the workspace was created from
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext context = 4 [json_name = "context"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); + context_ = null; + } + return contextBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus status_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder> statusBuilder_; + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * @return The status. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public Builder setStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public Builder setStatus( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public Builder mergeStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + status_ != null && + status_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_; + } + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.Workspace) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.Workspace) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.Workspace DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.Workspace(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workspace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return Whether the instance field is set. + */ + boolean hasInstance(); + /** + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return The instance. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getInstance(); + /** + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder getInstanceOrBuilder(); + } + /** + *
+   * WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace.
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceStatus} + */ + public static final class WorkspaceStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceStatus) + WorkspaceStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceStatus.class.getName()); + } + // Use WorkspaceStatus.newBuilder() to construct. + private WorkspaceStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceStatus() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder.class); + } + + private int bitField0_; + public static final int INSTANCE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance instance_; + /** + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return Whether the instance field is set. + */ + @java.lang.Override + public boolean hasInstance() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return The instance. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getInstance() { + return instance_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; + } + /** + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder getInstanceOrBuilder() { + return instance_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInstance()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInstance()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus) obj; + + if (hasInstance() != other.hasInstance()) return false; + if (hasInstance()) { + if (!getInstance() + .equals(other.getInstance())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInstance()) { + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceStatus) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getInstanceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instanceBuilder_ == null + ? instance_ + : instanceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance()) return this; + if (other.hasInstance()) { + mergeInstance(other.getInstance()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance instance_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder> instanceBuilder_; + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return Whether the instance field is set. + */ + public boolean hasInstance() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return The instance. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getInstance() { + if (instanceBuilder_ == null) { + return instance_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; + } else { + return instanceBuilder_.getMessage(); + } + } + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + */ + public Builder setInstance(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance value) { + if (instanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + } else { + instanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + */ + public Builder setInstance( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder builderForValue) { + if (instanceBuilder_ == null) { + instance_ = builderForValue.build(); + } else { + instanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + */ + public Builder mergeInstance(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance value) { + if (instanceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + instance_ != null && + instance_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance()) { + getInstanceBuilder().mergeFrom(value); + } else { + instance_ = value; + } + } else { + instanceBuilder_.mergeFrom(value); + } + if (instance_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + */ + public Builder clearInstance() { + bitField0_ = (bitField0_ & ~0x00000001); + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder getInstanceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInstanceFieldBuilder().getBuilder(); + } + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder getInstanceOrBuilder() { + if (instanceBuilder_ != null) { + return instanceBuilder_.getMessageOrBuilder(); + } else { + return instance_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; + } + } + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder> + getInstanceFieldBuilder() { + if (instanceBuilder_ == null) { + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); + instance_ = null; + } + return instanceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceStatus) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceStatus) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceContextOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * All workspace context originates from a URL - this is the context URL
+     * which led to the creation of a workspace.
+     * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + java.lang.String getContextUrl(); + /** + *
+     * All workspace context originates from a URL - this is the context URL
+     * which led to the creation of a workspace.
+     * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + com.google.protobuf.ByteString + getContextUrlBytes(); + + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return Whether the git field is set. + */ + boolean hasGit(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return The git. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getGit(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getGitOrBuilder(); + + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + boolean hasPrebuild(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return The prebuild. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getPrebuild(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder getPrebuildOrBuilder(); + + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return The snapshot. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getSnapshot(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder getSnapshotOrBuilder(); + + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.DetailsCase getDetailsCase(); + } + /** + *
+   * WorkspaceContext describes the context a workspace was created from
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext} + */ + public static final class WorkspaceContext extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext) + WorkspaceContextOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceContext.class.getName()); + } + // Use WorkspaceContext.newBuilder() to construct. + private WorkspaceContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceContext() { + contextUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder.class); + } + + public interface GitProviderOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.GitProvider) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+       * 
+ * + * string type = 1 [json_name = "type"]; + * @return The type. + */ + java.lang.String getType(); + /** + *
+       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+       * 
+ * + * string type = 1 [json_name = "type"]; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+       * hostname is the git provider hostname
+       * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The hostname. + */ + java.lang.String getHostname(); + /** + *
+       * hostname is the git provider hostname
+       * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString + getHostnameBytes(); + } + /** + *
+     * GitProvider describes the git provider
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.GitProvider} + */ + public static final class GitProvider extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.GitProvider) + GitProviderOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GitProvider.class.getName()); + } + // Use GitProvider.newBuilder() to construct. + private GitProvider(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GitProvider() { + type_ = ""; + hostname_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + /** + *
+       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+       * 
+ * + * string type = 1 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + *
+       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+       * 
+ * + * string type = 1 [json_name = "type"]; + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOSTNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + /** + *
+       * hostname is the git provider hostname
+       * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } + } + /** + *
+       * hostname is the git provider hostname
+       * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, hostname_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, hostname_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider) obj; + + if (!getType() + .equals(other.getType())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * GitProvider describes the git provider
+       * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.GitProvider} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.GitProvider) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + hostname_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hostname_ = hostname_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object type_ = ""; + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object hostname_ = ""; + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + hostname_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.GitProvider) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.GitProvider) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RepositoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Repository) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string owner = 2 [json_name = "owner"]; + * @return The owner. + */ + java.lang.String getOwner(); + /** + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. + */ + com.google.protobuf.ByteString + getOwnerBytes(); + } + /** + *
+     * Repository describes the originating repository
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Repository} + */ + public static final class Repository extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Repository) + RepositoryOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Repository.class.getName()); + } + // Use Repository.newBuilder() to construct. + private Repository(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Repository() { + name_ = ""; + owner_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object owner_ = ""; + /** + * string owner = 2 [json_name = "owner"]; + * @return The owner. + */ + @java.lang.Override + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } + } + /** + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, owner_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, owner_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getOwner() + .equals(other.getOwner())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Repository describes the originating repository
+       * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Repository} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Repository) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + owner_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.owner_ = owner_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOwner().isEmpty()) { + owner_ = other.owner_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + owner_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object owner_ = ""; + /** + * string owner = 2 [json_name = "owner"]; + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString + getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string owner = 2 [json_name = "owner"]; + * @param value The owner to set. + * @return This builder for chaining. + */ + public Builder setOwner( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + owner_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string owner = 2 [json_name = "owner"]; + * @return This builder for chaining. + */ + public Builder clearOwner() { + owner_ = getDefaultInstance().getOwner(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string owner = 2 [json_name = "owner"]; + * @param value The bytes for owner to set. + * @return This builder for chaining. + */ + public Builder setOwnerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + owner_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Repository) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Repository) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Repository parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GitOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Git) + com.google.protobuf.MessageOrBuilder { + + /** + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The normalizedContextUrl. + */ + java.lang.String getNormalizedContextUrl(); + /** + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The bytes for normalizedContextUrl. + */ + com.google.protobuf.ByteString + getNormalizedContextUrlBytes(); + + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return Whether the repository field is set. + */ + boolean hasRepository(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return The repository. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getRepository(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder(); + + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return Whether the provider field is set. + */ + boolean hasProvider(); + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return The provider. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getProvider(); + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder getProviderOrBuilder(); + } + /** + *
+     * Explicit Git context
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Git} + */ + public static final class Git extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Git) + GitOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Git.class.getName()); + } + // Use Git.newBuilder() to construct. + private Git(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Git() { + normalizedContextUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder.class); + } + + private int bitField0_; + public static final int NORMALIZED_CONTEXT_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object normalizedContextUrl_ = ""; + /** + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The normalizedContextUrl. + */ + @java.lang.Override + public java.lang.String getNormalizedContextUrl() { + java.lang.Object ref = normalizedContextUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + normalizedContextUrl_ = s; + return s; + } + } + /** + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The bytes for normalizedContextUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNormalizedContextUrlBytes() { + java.lang.Object ref = normalizedContextUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + normalizedContextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository repository_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return The repository. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getRepository() { + return repository_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder() { + return repository_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; + } + + public static final int PROVIDER_FIELD_NUMBER = 3; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider provider_; + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return Whether the provider field is set. + */ + @java.lang.Override + public boolean hasProvider() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return The provider. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getProvider() { + return provider_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + } + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder getProviderOrBuilder() { + return provider_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(normalizedContextUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, normalizedContextUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRepository()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getProvider()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(normalizedContextUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, normalizedContextUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRepository()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProvider()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) obj; + + if (!getNormalizedContextUrl() + .equals(other.getNormalizedContextUrl())) return false; + if (hasRepository() != other.hasRepository()) return false; + if (hasRepository()) { + if (!getRepository() + .equals(other.getRepository())) return false; + } + if (hasProvider() != other.hasProvider()) return false; + if (hasProvider()) { + if (!getProvider() + .equals(other.getProvider())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NORMALIZED_CONTEXT_URL_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedContextUrl().hashCode(); + if (hasRepository()) { + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + } + if (hasProvider()) { + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Explicit Git context
+       * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Git} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Git) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getRepositoryFieldBuilder(); + getProviderFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + normalizedContextUrl_ = ""; + repository_ = null; + if (repositoryBuilder_ != null) { + repositoryBuilder_.dispose(); + repositoryBuilder_ = null; + } + provider_ = null; + if (providerBuilder_ != null) { + providerBuilder_.dispose(); + providerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.normalizedContextUrl_ = normalizedContextUrl_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.repository_ = repositoryBuilder_ == null + ? repository_ + : repositoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.provider_ = providerBuilder_ == null + ? provider_ + : providerBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance()) return this; + if (!other.getNormalizedContextUrl().isEmpty()) { + normalizedContextUrl_ = other.normalizedContextUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRepository()) { + mergeRepository(other.getRepository()); + } + if (other.hasProvider()) { + mergeProvider(other.getProvider()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + normalizedContextUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRepositoryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getProviderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object normalizedContextUrl_ = ""; + /** + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The normalizedContextUrl. + */ + public java.lang.String getNormalizedContextUrl() { + java.lang.Object ref = normalizedContextUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + normalizedContextUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The bytes for normalizedContextUrl. + */ + public com.google.protobuf.ByteString + getNormalizedContextUrlBytes() { + java.lang.Object ref = normalizedContextUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + normalizedContextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @param value The normalizedContextUrl to set. + * @return This builder for chaining. + */ + public Builder setNormalizedContextUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + normalizedContextUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return This builder for chaining. + */ + public Builder clearNormalizedContextUrl() { + normalizedContextUrl_ = getDefaultInstance().getNormalizedContextUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @param value The bytes for normalizedContextUrl to set. + * @return This builder for chaining. + */ + public Builder setNormalizedContextUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + normalizedContextUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository repository_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder> repositoryBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return Whether the repository field is set. + */ + public boolean hasRepository() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return The repository. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getRepository() { + if (repositoryBuilder_ == null) { + return repository_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; + } else { + return repositoryBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + public Builder setRepository(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; + } else { + repositoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + public Builder setRepository( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + repository_ = builderForValue.build(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + public Builder mergeRepository(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository value) { + if (repositoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + repository_ != null && + repository_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance()) { + getRepositoryBuilder().mergeFrom(value); + } else { + repository_ = value; + } + } else { + repositoryBuilder_.mergeFrom(value); + } + if (repository_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + public Builder clearRepository() { + bitField0_ = (bitField0_ & ~0x00000002); + repository_ = null; + if (repositoryBuilder_ != null) { + repositoryBuilder_.dispose(); + repositoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder getRepositoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRepositoryFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder() { + if (repositoryBuilder_ != null) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + return repository_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; + } + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder> + getRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + repositoryBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder>( + getRepository(), + getParentForChildren(), + isClean()); + repository_ = null; + } + return repositoryBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider provider_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder> providerBuilder_; + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return Whether the provider field is set. + */ + public boolean hasProvider() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return The provider. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getProvider() { + if (providerBuilder_ == null) { + return provider_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + } else { + return providerBuilder_.getMessage(); + } + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public Builder setProvider(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider value) { + if (providerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + provider_ = value; + } else { + providerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public Builder setProvider( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder builderForValue) { + if (providerBuilder_ == null) { + provider_ = builderForValue.build(); + } else { + providerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public Builder mergeProvider(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider value) { + if (providerBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + provider_ != null && + provider_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance()) { + getProviderBuilder().mergeFrom(value); + } else { + provider_ = value; + } + } else { + providerBuilder_.mergeFrom(value); + } + if (provider_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public Builder clearProvider() { + bitField0_ = (bitField0_ & ~0x00000004); + provider_ = null; + if (providerBuilder_ != null) { + providerBuilder_.dispose(); + providerBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder getProviderBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getProviderFieldBuilder().getBuilder(); + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder getProviderOrBuilder() { + if (providerBuilder_ != null) { + return providerBuilder_.getMessageOrBuilder(); + } else { + return provider_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + } + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder> + getProviderFieldBuilder() { + if (providerBuilder_ == null) { + providerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder>( + getProvider(), + getParentForChildren(), + isClean()); + provider_ = null; + } + return providerBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Git) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Git) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Git parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrebuildOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Prebuild) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return Whether the originalContext field is set. + */ + boolean hasOriginalContext(); + /** + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return The originalContext. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getOriginalContext(); + /** + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getOriginalContextOrBuilder(); + + /** + *
+       * prebuild_id is the ID of the prebuild which was used to create this workspace
+       * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + java.lang.String getPrebuildId(); + /** + *
+       * prebuild_id is the ID of the prebuild which was used to create this workspace
+       * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + com.google.protobuf.ByteString + getPrebuildIdBytes(); + } + /** + *
+     * Workspace was created from a prebuild
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Prebuild} + */ + public static final class Prebuild extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Prebuild) + PrebuildOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Prebuild.class.getName()); + } + // Use Prebuild.newBuilder() to construct. + private Prebuild(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Prebuild() { + prebuildId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder.class); + } + + private int bitField0_; + public static final int ORIGINAL_CONTEXT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git originalContext_; + /** + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return Whether the originalContext field is set. + */ + @java.lang.Override + public boolean hasOriginalContext() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return The originalContext. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getOriginalContext() { + return originalContext_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; + } + /** + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getOriginalContextOrBuilder() { + return originalContext_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; + } + + public static final int PREBUILD_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object prebuildId_ = ""; + /** + *
+       * prebuild_id is the ID of the prebuild which was used to create this workspace
+       * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + @java.lang.Override + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } + } + /** + *
+       * prebuild_id is the ID of the prebuild which was used to create this workspace
+       * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOriginalContext()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, prebuildId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOriginalContext()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, prebuildId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) obj; + + if (hasOriginalContext() != other.hasOriginalContext()) return false; + if (hasOriginalContext()) { + if (!getOriginalContext() + .equals(other.getOriginalContext())) return false; + } + if (!getPrebuildId() + .equals(other.getPrebuildId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOriginalContext()) { + hash = (37 * hash) + ORIGINAL_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getOriginalContext().hashCode(); + } + hash = (37 * hash) + PREBUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Workspace was created from a prebuild
+       * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Prebuild} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Prebuild) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getOriginalContextFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + originalContext_ = null; + if (originalContextBuilder_ != null) { + originalContextBuilder_.dispose(); + originalContextBuilder_ = null; + } + prebuildId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originalContext_ = originalContextBuilder_ == null + ? originalContext_ + : originalContextBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.prebuildId_ = prebuildId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance()) return this; + if (other.hasOriginalContext()) { + mergeOriginalContext(other.getOriginalContext()); + } + if (!other.getPrebuildId().isEmpty()) { + prebuildId_ = other.prebuildId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getOriginalContextFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + prebuildId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git originalContext_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> originalContextBuilder_; + /** + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return Whether the originalContext field is set. + */ + public boolean hasOriginalContext() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return The originalContext. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getOriginalContext() { + if (originalContextBuilder_ == null) { + return originalContext_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; + } else { + return originalContextBuilder_.getMessage(); + } + } + /** + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + public Builder setOriginalContext(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { + if (originalContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + originalContext_ = value; + } else { + originalContextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + public Builder setOriginalContext( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder builderForValue) { + if (originalContextBuilder_ == null) { + originalContext_ = builderForValue.build(); + } else { + originalContextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + public Builder mergeOriginalContext(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { + if (originalContextBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + originalContext_ != null && + originalContext_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance()) { + getOriginalContextBuilder().mergeFrom(value); + } else { + originalContext_ = value; + } + } else { + originalContextBuilder_.mergeFrom(value); + } + if (originalContext_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + public Builder clearOriginalContext() { + bitField0_ = (bitField0_ & ~0x00000001); + originalContext_ = null; + if (originalContextBuilder_ != null) { + originalContextBuilder_.dispose(); + originalContextBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder getOriginalContextBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOriginalContextFieldBuilder().getBuilder(); + } + /** + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getOriginalContextOrBuilder() { + if (originalContextBuilder_ != null) { + return originalContextBuilder_.getMessageOrBuilder(); + } else { + return originalContext_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; + } + } + /** + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> + getOriginalContextFieldBuilder() { + if (originalContextBuilder_ == null) { + originalContextBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder>( + getOriginalContext(), + getParentForChildren(), + isClean()); + originalContext_ = null; + } + return originalContextBuilder_; + } + + private java.lang.Object prebuildId_ = ""; + /** + *
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
+         * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
+         * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
+         * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @param value The prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prebuildId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
+         * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildId() { + prebuildId_ = getDefaultInstance().getPrebuildId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
+         * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @param value The bytes for prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prebuildId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Prebuild) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Prebuild) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Prebuild parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SnapshotOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Snapshot) + com.google.protobuf.MessageOrBuilder { + + /** + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. + */ + java.lang.String getSnapshotId(); + /** + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. + */ + com.google.protobuf.ByteString + getSnapshotIdBytes(); + } + /** + *
+     * Snapshot context points to the snapshot which the workspace was created from
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Snapshot} + */ + public static final class Snapshot extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Snapshot) + SnapshotOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Snapshot.class.getName()); + } + // Use Snapshot.newBuilder() to construct. + private Snapshot(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Snapshot() { + snapshotId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder.class); + } + + public static final int SNAPSHOT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object snapshotId_ = ""; + /** + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. + */ + @java.lang.Override + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotId_ = s; + return s; + } + } + /** + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, snapshotId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snapshotId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) obj; + + if (!getSnapshotId() + .equals(other.getSnapshotId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Snapshot context points to the snapshot which the workspace was created from
+       * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Snapshot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Snapshot) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + snapshotId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshotId_ = snapshotId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance()) return this; + if (!other.getSnapshotId().isEmpty()) { + snapshotId_ = other.snapshotId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + snapshotId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object snapshotId_ = ""; + /** + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. + */ + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. + */ + public com.google.protobuf.ByteString + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @param value The snapshotId to set. + * @return This builder for chaining. + */ + public Builder setSnapshotId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + snapshotId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return This builder for chaining. + */ + public Builder clearSnapshotId() { + snapshotId_ = getDefaultInstance().getSnapshotId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @param value The bytes for snapshotId to set. + * @return This builder for chaining. + */ + public Builder setSnapshotIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + snapshotId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Snapshot) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Snapshot) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int detailsCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object details_; + public enum DetailsCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GIT(2), + PREBUILD(3), + SNAPSHOT(4), + DETAILS_NOT_SET(0); + private final int value; + private DetailsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DetailsCase valueOf(int value) { + return forNumber(value); + } + + public static DetailsCase forNumber(int value) { + switch (value) { + case 2: return GIT; + case 3: return PREBUILD; + case 4: return SNAPSHOT; + case 0: return DETAILS_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DetailsCase + getDetailsCase() { + return DetailsCase.forNumber( + detailsCase_); + } + + public static final int CONTEXT_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object contextUrl_ = ""; + /** + *
+     * All workspace context originates from a URL - this is the context URL
+     * which led to the creation of a workspace.
+     * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + @java.lang.Override + public java.lang.String getContextUrl() { + java.lang.Object ref = contextUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextUrl_ = s; + return s; + } + } + /** + *
+     * All workspace context originates from a URL - this is the context URL
+     * which led to the creation of a workspace.
+     * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = contextUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIT_FIELD_NUMBER = 2; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return Whether the git field is set. + */ + @java.lang.Override + public boolean hasGit() { + return detailsCase_ == 2; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return The git. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getGit() { + if (detailsCase_ == 2) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getGitOrBuilder() { + if (detailsCase_ == 2) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } + + public static final int PREBUILD_FIELD_NUMBER = 3; + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + @java.lang.Override + public boolean hasPrebuild() { + return detailsCase_ == 3; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getPrebuild() { + if (detailsCase_ == 3) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder getPrebuildOrBuilder() { + if (detailsCase_ == 3) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } + + public static final int SNAPSHOT_FIELD_NUMBER = 4; + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return detailsCase_ == 4; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return The snapshot. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getSnapshot() { + if (detailsCase_ == 4) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder getSnapshotOrBuilder() { + if (detailsCase_ == 4) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, contextUrl_); + } + if (detailsCase_ == 2) { + output.writeMessage(2, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_); + } + if (detailsCase_ == 3) { + output.writeMessage(3, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_); + } + if (detailsCase_ == 4) { + output.writeMessage(4, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contextUrl_); + } + if (detailsCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_); + } + if (detailsCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_); + } + if (detailsCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext) obj; + + if (!getContextUrl() + .equals(other.getContextUrl())) return false; + if (!getDetailsCase().equals(other.getDetailsCase())) return false; + switch (detailsCase_) { + case 2: + if (!getGit() + .equals(other.getGit())) return false; + break; + case 3: + if (!getPrebuild() + .equals(other.getPrebuild())) return false; + break; + case 4: + if (!getSnapshot() + .equals(other.getSnapshot())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTEXT_URL_FIELD_NUMBER; + hash = (53 * hash) + getContextUrl().hashCode(); + switch (detailsCase_) { + case 2: + hash = (37 * hash) + GIT_FIELD_NUMBER; + hash = (53 * hash) + getGit().hashCode(); + break; + case 3: + hash = (37 * hash) + PREBUILD_FIELD_NUMBER; + hash = (53 * hash) + getPrebuild().hashCode(); + break; + case 4: + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceContext describes the context a workspace was created from
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextUrl_ = ""; + if (gitBuilder_ != null) { + gitBuilder_.clear(); + } + if (prebuildBuilder_ != null) { + prebuildBuilder_.clear(); + } + if (snapshotBuilder_ != null) { + snapshotBuilder_.clear(); + } + detailsCase_ = 0; + details_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contextUrl_ = contextUrl_; + } + } + + private void buildPartialOneofs(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result) { + result.detailsCase_ = detailsCase_; + result.details_ = this.details_; + if (detailsCase_ == 2 && + gitBuilder_ != null) { + result.details_ = gitBuilder_.build(); + } + if (detailsCase_ == 3 && + prebuildBuilder_ != null) { + result.details_ = prebuildBuilder_.build(); + } + if (detailsCase_ == 4 && + snapshotBuilder_ != null) { + result.details_ = snapshotBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance()) return this; + if (!other.getContextUrl().isEmpty()) { + contextUrl_ = other.contextUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getDetailsCase()) { + case GIT: { + mergeGit(other.getGit()); + break; + } + case PREBUILD: { + mergePrebuild(other.getPrebuild()); + break; + } + case SNAPSHOT: { + mergeSnapshot(other.getSnapshot()); + break; + } + case DETAILS_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + contextUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGitFieldBuilder().getBuilder(), + extensionRegistry); + detailsCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getPrebuildFieldBuilder().getBuilder(), + extensionRegistry); + detailsCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getSnapshotFieldBuilder().getBuilder(), + extensionRegistry); + detailsCase_ = 4; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int detailsCase_ = 0; + private java.lang.Object details_; + public DetailsCase + getDetailsCase() { + return DetailsCase.forNumber( + detailsCase_); + } + + public Builder clearDetails() { + detailsCase_ = 0; + details_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object contextUrl_ = ""; + /** + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + public java.lang.String getContextUrl() { + java.lang.Object ref = contextUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = contextUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @param value The contextUrl to set. + * @return This builder for chaining. + */ + public Builder setContextUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + contextUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return This builder for chaining. + */ + public Builder clearContextUrl() { + contextUrl_ = getDefaultInstance().getContextUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @param value The bytes for contextUrl to set. + * @return This builder for chaining. + */ + public Builder setContextUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + contextUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> gitBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return Whether the git field is set. + */ + @java.lang.Override + public boolean hasGit() { + return detailsCase_ == 2; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return The git. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getGit() { + if (gitBuilder_ == null) { + if (detailsCase_ == 2) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } else { + if (detailsCase_ == 2) { + return gitBuilder_.getMessage(); + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public Builder setGit(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { + if (gitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + gitBuilder_.setMessage(value); + } + detailsCase_ = 2; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public Builder setGit( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder builderForValue) { + if (gitBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + gitBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 2; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public Builder mergeGit(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { + if (gitBuilder_ == null) { + if (detailsCase_ == 2 && + details_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance()) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.newBuilder((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_) + .mergeFrom(value).buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 2) { + gitBuilder_.mergeFrom(value); + } else { + gitBuilder_.setMessage(value); + } + } + detailsCase_ = 2; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public Builder clearGit() { + if (gitBuilder_ == null) { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + } + gitBuilder_.clear(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder getGitBuilder() { + return getGitFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getGitOrBuilder() { + if ((detailsCase_ == 2) && (gitBuilder_ != null)) { + return gitBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 2) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> + getGitFieldBuilder() { + if (gitBuilder_ == null) { + if (!(detailsCase_ == 2)) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } + gitBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder>( + (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 2; + onChanged(); + return gitBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder> prebuildBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + @java.lang.Override + public boolean hasPrebuild() { + return detailsCase_ == 3; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getPrebuild() { + if (prebuildBuilder_ == null) { + if (detailsCase_ == 3) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } else { + if (detailsCase_ == 3) { + return prebuildBuilder_.getMessage(); + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public Builder setPrebuild(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild value) { + if (prebuildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + prebuildBuilder_.setMessage(value); + } + detailsCase_ = 3; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public Builder setPrebuild( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder builderForValue) { + if (prebuildBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + prebuildBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 3; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public Builder mergePrebuild(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild value) { + if (prebuildBuilder_ == null) { + if (detailsCase_ == 3 && + details_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance()) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.newBuilder((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_) + .mergeFrom(value).buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 3) { + prebuildBuilder_.mergeFrom(value); + } else { + prebuildBuilder_.setMessage(value); + } + } + detailsCase_ = 3; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public Builder clearPrebuild() { + if (prebuildBuilder_ == null) { + if (detailsCase_ == 3) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 3) { + detailsCase_ = 0; + details_ = null; + } + prebuildBuilder_.clear(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder getPrebuildBuilder() { + return getPrebuildFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder getPrebuildOrBuilder() { + if ((detailsCase_ == 3) && (prebuildBuilder_ != null)) { + return prebuildBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 3) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder> + getPrebuildFieldBuilder() { + if (prebuildBuilder_ == null) { + if (!(detailsCase_ == 3)) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } + prebuildBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder>( + (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 3; + onChanged(); + return prebuildBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder> snapshotBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return detailsCase_ == 4; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return The snapshot. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getSnapshot() { + if (snapshotBuilder_ == null) { + if (detailsCase_ == 4) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } else { + if (detailsCase_ == 4) { + return snapshotBuilder_.getMessage(); + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public Builder setSnapshot(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + snapshotBuilder_.setMessage(value); + } + detailsCase_ = 4; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public Builder setSnapshot( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder builderForValue) { + if (snapshotBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 4; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public Builder mergeSnapshot(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot value) { + if (snapshotBuilder_ == null) { + if (detailsCase_ == 4 && + details_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance()) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.newBuilder((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_) + .mergeFrom(value).buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 4) { + snapshotBuilder_.mergeFrom(value); + } else { + snapshotBuilder_.setMessage(value); + } + } + detailsCase_ = 4; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public Builder clearSnapshot() { + if (snapshotBuilder_ == null) { + if (detailsCase_ == 4) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 4) { + detailsCase_ = 0; + details_ = null; + } + snapshotBuilder_.clear(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder getSnapshotBuilder() { + return getSnapshotFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder getSnapshotOrBuilder() { + if ((detailsCase_ == 4) && (snapshotBuilder_ != null)) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 4) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder> + getSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + if (!(detailsCase_ == 4)) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder>( + (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 4; + onChanged(); + return snapshotBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceInstanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstance) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Instance ID is the unique identifier of the workspace instance
+     * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The instanceId. + */ + java.lang.String getInstanceId(); + /** + *
+     * Instance ID is the unique identifier of the workspace instance
+     * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The bytes for instanceId. + */ + com.google.protobuf.ByteString + getInstanceIdBytes(); + + /** + *
+     * Workspace ID is the unique identifier of the workspace this instance belongs to
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * Workspace ID is the unique identifier of the workspace this instance belongs to
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return The status. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getStatus(); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * WorkspaceInstance describes a single workspace instance
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstance} + */ + public static final class WorkspaceInstance extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstance) + WorkspaceInstanceOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceInstance.class.getName()); + } + // Use WorkspaceInstance.newBuilder() to construct. + private WorkspaceInstance(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceInstance() { + instanceId_ = ""; + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder.class); + } + + private int bitField0_; + public static final int INSTANCE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + /** + *
+     * Instance ID is the unique identifier of the workspace instance
+     * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The instanceId. + */ + @java.lang.Override + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } + } + /** + *
+     * Instance ID is the unique identifier of the workspace instance
+     * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The bytes for instanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * Workspace ID is the unique identifier of the workspace this instance belongs to
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * Workspace ID is the unique identifier of the workspace this instance belongs to
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATED_AT_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createdAt_; + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus status_; + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getStatus() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreatedAt()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreatedAt()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance) obj; + + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstanceId().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceInstance describes a single workspace instance
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceInstance) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceId_ = ""; + workspaceId_ = ""; + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceId_ = instanceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspaceId_ = workspaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance()) return this; + if (!other.getInstanceId().isEmpty()) { + instanceId_ = other.instanceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCreatedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object instanceId_ = ""; + /** + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The instanceId. + */ + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The bytes for instanceId. + */ + public com.google.protobuf.ByteString + getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @param value The instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + instanceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return This builder for chaining. + */ + public Builder clearInstanceId() { + instanceId_ = getDefaultInstance().getInstanceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @param value The bytes for instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + instanceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000004); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus status_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder> statusBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return The status. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public Builder setStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public Builder setStatus( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public Builder mergeStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + status_ != null && + status_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; + } + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceInstance) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceInstance) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceInstanceStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstanceStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * version of the status update. Workspace instances themselves are unversioned,
+     * but their statuus has different versions.
+     * The value of this field has no semantic meaning (e.g. don't interpret it as
+     * as a timestemp), but it can be used to impose a partial order.
+     * If a.status_version < b.status_version then a was the status before b.
+     * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @return The statusVersion. + */ + long getStatusVersion(); + + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @return The enum numeric value on the wire for phase. + */ + int getPhaseValue(); + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @return The phase. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase getPhase(); + + /** + *
+     * conditions detail the current state of the workspace instance
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + * @return Whether the conditions field is set. + */ + boolean hasConditions(); + /** + *
+     * conditions detail the current state of the workspace instance
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + * @return The conditions. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getConditions(); + /** + *
+     * conditions detail the current state of the workspace instance
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder getConditionsOrBuilder(); + + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 4 [json_name = "message"]; + * @return The message. + */ + java.lang.String getMessage(); + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 4 [json_name = "message"]; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
+     * URL contains the endpoint at which the workspace instance is available
+     * 
+ * + * string url = 5 [json_name = "url"]; + * @return The url. + */ + java.lang.String getUrl(); + /** + *
+     * URL contains the endpoint at which the workspace instance is available
+     * 
+ * + * string url = 5 [json_name = "url"]; + * @return The bytes for url. + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + *
+     * Admission describes who can access a workspace instance and its ports.
+     * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + int getAdmissionValue(); + /** + *
+     * Admission describes who can access a workspace instance and its ports.
+     * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @return The admission. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel getAdmission(); + + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + java.util.List + getPortsList(); + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.Port getPorts(int index); + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + int getPortsCount(); + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + java.util.List + getPortsOrBuilderList(); + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.PortOrBuilder getPortsOrBuilder( + int index); + + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @return A list containing the recentFolders. + */ + java.util.List + getRecentFoldersList(); + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @return The count of recentFolders. + */ + int getRecentFoldersCount(); + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param index The index of the element to return. + * @return The recentFolders at the given index. + */ + java.lang.String getRecentFolders(int index); + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param index The index of the value to return. + * @return The bytes of the recentFolders at the given index. + */ + com.google.protobuf.ByteString + getRecentFoldersBytes(int index); + + /** + *
+     * gitStatus details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+     * indicate the absence of a working copy.
+     * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + * @return Whether the gitStatus field is set. + */ + boolean hasGitStatus(); + /** + *
+     * gitStatus details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+     * indicate the absence of a working copy.
+     * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + * @return The gitStatus. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getGitStatus(); + /** + *
+     * gitStatus details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+     * indicate the absence of a working copy.
+     * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getGitStatusOrBuilder(); + } + /** + *
+   * WorkspaceStatus describes a workspace status
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus} + */ + public static final class WorkspaceInstanceStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstanceStatus) + WorkspaceInstanceStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceInstanceStatus.class.getName()); + } + // Use WorkspaceInstanceStatus.newBuilder() to construct. + private WorkspaceInstanceStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceInstanceStatus() { + phase_ = 0; + message_ = ""; + url_ = ""; + admission_ = 0; + ports_ = java.util.Collections.emptyList(); + recentFolders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder.class); + } + + /** + *
+     * Phase is a simple, high-level summary of where the workspace instance is in its lifecycle.
+     * The phase is not intended to be a comprehensive rollup of observations of the workspace state,
+     * nor is it intended to be a comprehensive state machine.
+     * (based on  https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)
+     * 
+ * + * Protobuf enum {@code gitpod.experimental.v1.WorkspaceInstanceStatus.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
+       * a workspace. This phase is usually accompanied by an error.
+       * 
+ * + * PHASE_UNSPECIFIED = 0; + */ + PHASE_UNSPECIFIED(0), + /** + *
+       * Preparing means that we haven't actually started the workspace instance just yet, but rather
+       * are still preparing for launch.
+       * 
+ * + * PHASE_PREPARING = 1; + */ + PHASE_PREPARING(1), + /** + *
+       * ImageBuild indicates that there's an image build running for this workspace.
+       * 
+ * + * PHASE_IMAGEBUILD = 2; + */ + PHASE_IMAGEBUILD(2), + /** + *
+       * Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
+       * some space within the cluster. If for example the cluster needs to scale up to accomodate the
+       * workspace, the workspace will be in Pending state until that happened.
+       * 
+ * + * PHASE_PENDING = 3; + */ + PHASE_PENDING(3), + /** + *
+       * Creating means the workspace is currently being created. That includes downloading the images required
+       * to run the workspace over the network. The time spent in this phase varies widely and depends on the current
+       * network speed, image size and cache states.
+       * 
+ * + * PHASE_CREATING = 4; + */ + PHASE_CREATING(4), + /** + *
+       * Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
+       * clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
+       * 
+ * + * PHASE_INITIALIZING = 5; + */ + PHASE_INITIALIZING(5), + /** + *
+       * Running means the workspace is able to actively perform work, either by serving a user through Theia,
+       * or as a headless workspace.
+       * 
+ * + * PHASE_RUNNING = 6; + */ + PHASE_RUNNING(6), + /** + *
+       * Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
+       * When in this state, we expect it to become running or stopping anytime soon.
+       * 
+ * + * PHASE_INTERRUPTED = 7; + */ + PHASE_INTERRUPTED(7), + /** + *
+       * Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
+       * 
+ * + * PHASE_STOPPING = 8; + */ + PHASE_STOPPING(8), + /** + *
+       * Stopped means the workspace ended regularly because it was shut down.
+       * 
+ * + * PHASE_STOPPED = 9; + */ + PHASE_STOPPED(9), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Phase.class.getName()); + } + /** + *
+       * Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
+       * a workspace. This phase is usually accompanied by an error.
+       * 
+ * + * PHASE_UNSPECIFIED = 0; + */ + public static final int PHASE_UNSPECIFIED_VALUE = 0; + /** + *
+       * Preparing means that we haven't actually started the workspace instance just yet, but rather
+       * are still preparing for launch.
+       * 
+ * + * PHASE_PREPARING = 1; + */ + public static final int PHASE_PREPARING_VALUE = 1; + /** + *
+       * ImageBuild indicates that there's an image build running for this workspace.
+       * 
+ * + * PHASE_IMAGEBUILD = 2; + */ + public static final int PHASE_IMAGEBUILD_VALUE = 2; + /** + *
+       * Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
+       * some space within the cluster. If for example the cluster needs to scale up to accomodate the
+       * workspace, the workspace will be in Pending state until that happened.
+       * 
+ * + * PHASE_PENDING = 3; + */ + public static final int PHASE_PENDING_VALUE = 3; + /** + *
+       * Creating means the workspace is currently being created. That includes downloading the images required
+       * to run the workspace over the network. The time spent in this phase varies widely and depends on the current
+       * network speed, image size and cache states.
+       * 
+ * + * PHASE_CREATING = 4; + */ + public static final int PHASE_CREATING_VALUE = 4; + /** + *
+       * Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
+       * clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
+       * 
+ * + * PHASE_INITIALIZING = 5; + */ + public static final int PHASE_INITIALIZING_VALUE = 5; + /** + *
+       * Running means the workspace is able to actively perform work, either by serving a user through Theia,
+       * or as a headless workspace.
+       * 
+ * + * PHASE_RUNNING = 6; + */ + public static final int PHASE_RUNNING_VALUE = 6; + /** + *
+       * Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
+       * When in this state, we expect it to become running or stopping anytime soon.
+       * 
+ * + * PHASE_INTERRUPTED = 7; + */ + public static final int PHASE_INTERRUPTED_VALUE = 7; + /** + *
+       * Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
+       * 
+ * + * PHASE_STOPPING = 8; + */ + public static final int PHASE_STOPPING_VALUE = 8; + /** + *
+       * Stopped means the workspace ended regularly because it was shut down.
+       * 
+ * + * PHASE_STOPPED = 9; + */ + public static final int PHASE_STOPPED_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Phase forNumber(int value) { + switch (value) { + case 0: return PHASE_UNSPECIFIED; + case 1: return PHASE_PREPARING; + case 2: return PHASE_IMAGEBUILD; + case 3: return PHASE_PENDING; + case 4: return PHASE_CREATING; + case 5: return PHASE_INITIALIZING; + case 6: return PHASE_RUNNING; + case 7: return PHASE_INTERRUPTED; + case 8: return PHASE_STOPPING; + case 9: return PHASE_STOPPED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.Phase) + } + + public interface ConditionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+       * This field is filled exclusively when caused by system errors.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The failed. + */ + java.lang.String getFailed(); + /** + *
+       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+       * This field is filled exclusively when caused by system errors.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The bytes for failed. + */ + com.google.protobuf.ByteString + getFailedBytes(); + + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The timeout. + */ + java.lang.String getTimeout(); + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The bytes for timeout. + */ + com.google.protobuf.ByteString + getTimeoutBytes(); + + /** + *
+       * first_user_activity is the time when MarkActive was first called on the workspace
+       * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return Whether the firstUserActivity field is set. + */ + boolean hasFirstUserActivity(); + /** + *
+       * first_user_activity is the time when MarkActive was first called on the workspace
+       * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return The firstUserActivity. + */ + com.google.protobuf.Timestamp getFirstUserActivity(); + /** + *
+       * first_user_activity is the time when MarkActive was first called on the workspace
+       * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + com.google.protobuf.TimestampOrBuilder getFirstUserActivityOrBuilder(); + + /** + *
+       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+       * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return Whether the stoppedByRequest field is set. + */ + boolean hasStoppedByRequest(); + /** + *
+       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+       * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return The stoppedByRequest. + */ + boolean getStoppedByRequest(); + } + /** + *
+     * Conditions gives more detailed information as to the state of the workspace. Which condition actually
+     * has a value depends on the phase the workspace is in.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions} + */ + public static final class Conditions extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + ConditionsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Conditions.class.getName()); + } + // Use Conditions.newBuilder() to construct. + private Conditions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Conditions() { + failed_ = ""; + timeout_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder.class); + } + + private int bitField0_; + public static final int FAILED_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object failed_ = ""; + /** + *
+       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+       * This field is filled exclusively when caused by system errors.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The failed. + */ + @java.lang.Override + public java.lang.String getFailed() { + java.lang.Object ref = failed_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failed_ = s; + return s; + } + } + /** + *
+       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+       * This field is filled exclusively when caused by system errors.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The bytes for failed. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFailedBytes() { + java.lang.Object ref = failed_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object timeout_ = ""; + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The timeout. + */ + @java.lang.Override + public java.lang.String getTimeout() { + java.lang.Object ref = timeout_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeout_ = s; + return s; + } + } + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The bytes for timeout. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTimeoutBytes() { + java.lang.Object ref = timeout_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timeout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIRST_USER_ACTIVITY_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp firstUserActivity_; + /** + *
+       * first_user_activity is the time when MarkActive was first called on the workspace
+       * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return Whether the firstUserActivity field is set. + */ + @java.lang.Override + public boolean hasFirstUserActivity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * first_user_activity is the time when MarkActive was first called on the workspace
+       * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return The firstUserActivity. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFirstUserActivity() { + return firstUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; + } + /** + *
+       * first_user_activity is the time when MarkActive was first called on the workspace
+       * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFirstUserActivityOrBuilder() { + return firstUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; + } + + public static final int STOPPED_BY_REQUEST_FIELD_NUMBER = 11; + private boolean stoppedByRequest_ = false; + /** + *
+       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+       * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return Whether the stoppedByRequest field is set. + */ + @java.lang.Override + public boolean hasStoppedByRequest() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+       * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return The stoppedByRequest. + */ + @java.lang.Override + public boolean getStoppedByRequest() { + return stoppedByRequest_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failed_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, failed_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeout_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, timeout_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getFirstUserActivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(11, stoppedByRequest_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failed_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, failed_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeout_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, timeout_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getFirstUserActivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, stoppedByRequest_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions) obj; + + if (!getFailed() + .equals(other.getFailed())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; + if (hasFirstUserActivity() != other.hasFirstUserActivity()) return false; + if (hasFirstUserActivity()) { + if (!getFirstUserActivity() + .equals(other.getFirstUserActivity())) return false; + } + if (hasStoppedByRequest() != other.hasStoppedByRequest()) return false; + if (hasStoppedByRequest()) { + if (getStoppedByRequest() + != other.getStoppedByRequest()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FAILED_FIELD_NUMBER; + hash = (53 * hash) + getFailed().hashCode(); + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + if (hasFirstUserActivity()) { + hash = (37 * hash) + FIRST_USER_ACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getFirstUserActivity().hashCode(); + } + if (hasStoppedByRequest()) { + hash = (37 * hash) + STOPPED_BY_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStoppedByRequest()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Conditions gives more detailed information as to the state of the workspace. Which condition actually
+       * has a value depends on the phase the workspace is in.
+       * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getFirstUserActivityFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + failed_ = ""; + timeout_ = ""; + firstUserActivity_ = null; + if (firstUserActivityBuilder_ != null) { + firstUserActivityBuilder_.dispose(); + firstUserActivityBuilder_ = null; + } + stoppedByRequest_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.failed_ = failed_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timeout_ = timeout_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.firstUserActivity_ = firstUserActivityBuilder_ == null + ? firstUserActivity_ + : firstUserActivityBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.stoppedByRequest_ = stoppedByRequest_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance()) return this; + if (!other.getFailed().isEmpty()) { + failed_ = other.failed_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTimeout().isEmpty()) { + timeout_ = other.timeout_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFirstUserActivity()) { + mergeFirstUserActivity(other.getFirstUserActivity()); + } + if (other.hasStoppedByRequest()) { + setStoppedByRequest(other.getStoppedByRequest()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + failed_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + timeout_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 74: { + input.readMessage( + getFirstUserActivityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 74 + case 88: { + stoppedByRequest_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object failed_ = ""; + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The failed. + */ + public java.lang.String getFailed() { + java.lang.Object ref = failed_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failed_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The bytes for failed. + */ + public com.google.protobuf.ByteString + getFailedBytes() { + java.lang.Object ref = failed_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @param value The failed to set. + * @return This builder for chaining. + */ + public Builder setFailed( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + failed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return This builder for chaining. + */ + public Builder clearFailed() { + failed_ = getDefaultInstance().getFailed(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @param value The bytes for failed to set. + * @return This builder for chaining. + */ + public Builder setFailedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + failed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object timeout_ = ""; + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The timeout. + */ + public java.lang.String getTimeout() { + java.lang.Object ref = timeout_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeout_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The bytes for timeout. + */ + public com.google.protobuf.ByteString + getTimeoutBytes() { + java.lang.Object ref = timeout_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timeout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @param value The timeout to set. + * @return This builder for chaining. + */ + public Builder setTimeout( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + timeout_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return This builder for chaining. + */ + public Builder clearTimeout() { + timeout_ = getDefaultInstance().getTimeout(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @param value The bytes for timeout to set. + * @return This builder for chaining. + */ + public Builder setTimeoutBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + timeout_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp firstUserActivity_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> firstUserActivityBuilder_; + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return Whether the firstUserActivity field is set. + */ + public boolean hasFirstUserActivity() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return The firstUserActivity. + */ + public com.google.protobuf.Timestamp getFirstUserActivity() { + if (firstUserActivityBuilder_ == null) { + return firstUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; + } else { + return firstUserActivityBuilder_.getMessage(); + } + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public Builder setFirstUserActivity(com.google.protobuf.Timestamp value) { + if (firstUserActivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firstUserActivity_ = value; + } else { + firstUserActivityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public Builder setFirstUserActivity( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (firstUserActivityBuilder_ == null) { + firstUserActivity_ = builderForValue.build(); + } else { + firstUserActivityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public Builder mergeFirstUserActivity(com.google.protobuf.Timestamp value) { + if (firstUserActivityBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + firstUserActivity_ != null && + firstUserActivity_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFirstUserActivityBuilder().mergeFrom(value); + } else { + firstUserActivity_ = value; + } + } else { + firstUserActivityBuilder_.mergeFrom(value); + } + if (firstUserActivity_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public Builder clearFirstUserActivity() { + bitField0_ = (bitField0_ & ~0x00000004); + firstUserActivity_ = null; + if (firstUserActivityBuilder_ != null) { + firstUserActivityBuilder_.dispose(); + firstUserActivityBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public com.google.protobuf.Timestamp.Builder getFirstUserActivityBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFirstUserActivityFieldBuilder().getBuilder(); + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public com.google.protobuf.TimestampOrBuilder getFirstUserActivityOrBuilder() { + if (firstUserActivityBuilder_ != null) { + return firstUserActivityBuilder_.getMessageOrBuilder(); + } else { + return firstUserActivity_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; + } + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getFirstUserActivityFieldBuilder() { + if (firstUserActivityBuilder_ == null) { + firstUserActivityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getFirstUserActivity(), + getParentForChildren(), + isClean()); + firstUserActivity_ = null; + } + return firstUserActivityBuilder_; + } + + private boolean stoppedByRequest_ ; + /** + *
+         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return Whether the stoppedByRequest field is set. + */ + @java.lang.Override + public boolean hasStoppedByRequest() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return The stoppedByRequest. + */ + @java.lang.Override + public boolean getStoppedByRequest() { + return stoppedByRequest_; + } + /** + *
+         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @param value The stoppedByRequest to set. + * @return This builder for chaining. + */ + public Builder setStoppedByRequest(boolean value) { + + stoppedByRequest_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return This builder for chaining. + */ + public Builder clearStoppedByRequest() { + bitField0_ = (bitField0_ & ~0x00000008); + stoppedByRequest_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Conditions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int STATUS_VERSION_FIELD_NUMBER = 1; + private long statusVersion_ = 0L; + /** + *
+     * version of the status update. Workspace instances themselves are unversioned,
+     * but their statuus has different versions.
+     * The value of this field has no semantic meaning (e.g. don't interpret it as
+     * as a timestemp), but it can be used to impose a partial order.
+     * If a.status_version < b.status_version then a was the status before b.
+     * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @return The statusVersion. + */ + @java.lang.Override + public long getStatusVersion() { + return statusVersion_; + } + + public static final int PHASE_FIELD_NUMBER = 2; + private int phase_ = 0; + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @return The enum numeric value on the wire for phase. + */ + @java.lang.Override public int getPhaseValue() { + return phase_; + } + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @return The phase. + */ + @java.lang.Override public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase getPhase() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase result = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase.forNumber(phase_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase.UNRECOGNIZED : result; + } + + public static final int CONDITIONS_FIELD_NUMBER = 3; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions conditions_; + /** + *
+     * conditions detail the current state of the workspace instance
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + * @return Whether the conditions field is set. + */ + @java.lang.Override + public boolean hasConditions() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * conditions detail the current state of the workspace instance
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + * @return The conditions. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getConditions() { + return conditions_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance() : conditions_; + } + /** + *
+     * conditions detail the current state of the workspace instance
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder getConditionsOrBuilder() { + return conditions_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance() : conditions_; + } + + public static final int MESSAGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 4 [json_name = "message"]; + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 4 [json_name = "message"]; + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + *
+     * URL contains the endpoint at which the workspace instance is available
+     * 
+ * + * string url = 5 [json_name = "url"]; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + *
+     * URL contains the endpoint at which the workspace instance is available
+     * 
+ * + * string url = 5 [json_name = "url"]; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMISSION_FIELD_NUMBER = 6; + private int admission_ = 0; + /** + *
+     * Admission describes who can access a workspace instance and its ports.
+     * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+     * Admission describes who can access a workspace instance and its ports.
+     * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override public io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel getAdmission() { + io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel result = io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel.UNRECOGNIZED : result; + } + + public static final int PORTS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private java.util.List ports_; + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + @java.lang.Override + public java.util.List getPortsList() { + return ports_; + } + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + @java.lang.Override + public java.util.List + getPortsOrBuilderList() { + return ports_; + } + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + @java.lang.Override + public int getPortsCount() { + return ports_.size(); + } + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Port getPorts(int index) { + return ports_.get(index); + } + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortOrBuilder getPortsOrBuilder( + int index) { + return ports_.get(index); + } + + public static final int RECENT_FOLDERS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList recentFolders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @return A list containing the recentFolders. + */ + public com.google.protobuf.ProtocolStringList + getRecentFoldersList() { + return recentFolders_; + } + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @return The count of recentFolders. + */ + public int getRecentFoldersCount() { + return recentFolders_.size(); + } + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param index The index of the element to return. + * @return The recentFolders at the given index. + */ + public java.lang.String getRecentFolders(int index) { + return recentFolders_.get(index); + } + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param index The index of the value to return. + * @return The bytes of the recentFolders at the given index. + */ + public com.google.protobuf.ByteString + getRecentFoldersBytes(int index) { + return recentFolders_.getByteString(index); + } + + public static final int GIT_STATUS_FIELD_NUMBER = 9; + private io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus gitStatus_; + /** + *
+     * gitStatus details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+     * indicate the absence of a working copy.
+     * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + * @return Whether the gitStatus field is set. + */ + @java.lang.Override + public boolean hasGitStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * gitStatus details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+     * indicate the absence of a working copy.
+     * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + * @return The gitStatus. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getGitStatus() { + return gitStatus_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance() : gitStatus_; + } + /** + *
+     * gitStatus details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+     * indicate the absence of a working copy.
+     * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getGitStatusOrBuilder() { + return gitStatus_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance() : gitStatus_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (statusVersion_ != 0L) { + output.writeUInt64(1, statusVersion_); + } + if (phase_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase.PHASE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, phase_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getConditions()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, message_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, url_); + } + if (admission_ != io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel.ADMISSION_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(6, admission_); + } + for (int i = 0; i < ports_.size(); i++) { + output.writeMessage(7, ports_.get(i)); + } + for (int i = 0; i < recentFolders_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, recentFolders_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getGitStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (statusVersion_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, statusVersion_); + } + if (phase_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase.PHASE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, phase_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConditions()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, message_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, url_); + } + if (admission_ != io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel.ADMISSION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, admission_); + } + for (int i = 0; i < ports_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, ports_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < recentFolders_.size(); i++) { + dataSize += computeStringSizeNoTag(recentFolders_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecentFoldersList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getGitStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus) obj; + + if (getStatusVersion() + != other.getStatusVersion()) return false; + if (phase_ != other.phase_) return false; + if (hasConditions() != other.hasConditions()) return false; + if (hasConditions()) { + if (!getConditions() + .equals(other.getConditions())) return false; + } + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (admission_ != other.admission_) return false; + if (!getPortsList() + .equals(other.getPortsList())) return false; + if (!getRecentFoldersList() + .equals(other.getRecentFoldersList())) return false; + if (hasGitStatus() != other.hasGitStatus()) return false; + if (hasGitStatus()) { + if (!getGitStatus() + .equals(other.getGitStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATUS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStatusVersion()); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasConditions()) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditions().hashCode(); + } + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + ADMISSION_FIELD_NUMBER; + hash = (53 * hash) + admission_; + if (getPortsCount() > 0) { + hash = (37 * hash) + PORTS_FIELD_NUMBER; + hash = (53 * hash) + getPortsList().hashCode(); + } + if (getRecentFoldersCount() > 0) { + hash = (37 * hash) + RECENT_FOLDERS_FIELD_NUMBER; + hash = (53 * hash) + getRecentFoldersList().hashCode(); + } + if (hasGitStatus()) { + hash = (37 * hash) + GIT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getGitStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceStatus describes a workspace status
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceInstanceStatus) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + getPortsFieldBuilder(); + getGitStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + statusVersion_ = 0L; + phase_ = 0; + conditions_ = null; + if (conditionsBuilder_ != null) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + } + message_ = ""; + url_ = ""; + admission_ = 0; + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + } else { + ports_ = null; + portsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + recentFolders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + gitStatus_ = null; + if (gitStatusBuilder_ != null) { + gitStatusBuilder_.dispose(); + gitStatusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus result) { + if (portsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.ports_ = ports_; + } else { + result.ports_ = portsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.statusVersion_ = statusVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.phase_ = phase_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.conditions_ = conditionsBuilder_ == null + ? conditions_ + : conditionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.admission_ = admission_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + recentFolders_.makeImmutable(); + result.recentFolders_ = recentFolders_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.gitStatus_ = gitStatusBuilder_ == null + ? gitStatus_ + : gitStatusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance()) return this; + if (other.getStatusVersion() != 0L) { + setStatusVersion(other.getStatusVersion()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasConditions()) { + mergeConditions(other.getConditions()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.admission_ != 0) { + setAdmissionValue(other.getAdmissionValue()); + } + if (portsBuilder_ == null) { + if (!other.ports_.isEmpty()) { + if (ports_.isEmpty()) { + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensurePortsIsMutable(); + ports_.addAll(other.ports_); + } + onChanged(); + } + } else { + if (!other.ports_.isEmpty()) { + if (portsBuilder_.isEmpty()) { + portsBuilder_.dispose(); + portsBuilder_ = null; + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + portsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPortsFieldBuilder() : null; + } else { + portsBuilder_.addAllMessages(other.ports_); + } + } + } + if (!other.recentFolders_.isEmpty()) { + if (recentFolders_.isEmpty()) { + recentFolders_ = other.recentFolders_; + bitField0_ |= 0x00000080; + } else { + ensureRecentFoldersIsMutable(); + recentFolders_.addAll(other.recentFolders_); + } + onChanged(); + } + if (other.hasGitStatus()) { + mergeGitStatus(other.getGitStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + statusVersion_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + phase_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getConditionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + admission_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + io.gitpod.publicapi.experimental.v1.Workspaces.Port m = + input.readMessage( + io.gitpod.publicapi.experimental.v1.Workspaces.Port.parser(), + extensionRegistry); + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(m); + } else { + portsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRecentFoldersIsMutable(); + recentFolders_.add(s); + break; + } // case 66 + case 74: { + input.readMessage( + getGitStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long statusVersion_ ; + /** + *
+       * version of the status update. Workspace instances themselves are unversioned,
+       * but their statuus has different versions.
+       * The value of this field has no semantic meaning (e.g. don't interpret it as
+       * as a timestemp), but it can be used to impose a partial order.
+       * If a.status_version < b.status_version then a was the status before b.
+       * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @return The statusVersion. + */ + @java.lang.Override + public long getStatusVersion() { + return statusVersion_; + } + /** + *
+       * version of the status update. Workspace instances themselves are unversioned,
+       * but their statuus has different versions.
+       * The value of this field has no semantic meaning (e.g. don't interpret it as
+       * as a timestemp), but it can be used to impose a partial order.
+       * If a.status_version < b.status_version then a was the status before b.
+       * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @param value The statusVersion to set. + * @return This builder for chaining. + */ + public Builder setStatusVersion(long value) { + + statusVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * version of the status update. Workspace instances themselves are unversioned,
+       * but their statuus has different versions.
+       * The value of this field has no semantic meaning (e.g. don't interpret it as
+       * as a timestemp), but it can be used to impose a partial order.
+       * If a.status_version < b.status_version then a was the status before b.
+       * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @return This builder for chaining. + */ + public Builder clearStatusVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + statusVersion_ = 0L; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @return The enum numeric value on the wire for phase. + */ + @java.lang.Override public int getPhaseValue() { + return phase_; + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @param value The enum numeric value on the wire for phase to set. + * @return This builder for chaining. + */ + public Builder setPhaseValue(int value) { + phase_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @return The phase. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase getPhase() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase result = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase.forNumber(phase_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase.UNRECOGNIZED : result; + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @param value The phase to set. + * @return This builder for chaining. + */ + public Builder setPhase(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @return This builder for chaining. + */ + public Builder clearPhase() { + bitField0_ = (bitField0_ & ~0x00000002); + phase_ = 0; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions conditions_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder> conditionsBuilder_; + /** + *
+       * conditions detail the current state of the workspace instance
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + * @return Whether the conditions field is set. + */ + public boolean hasConditions() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * conditions detail the current state of the workspace instance
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + * @return The conditions. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getConditions() { + if (conditionsBuilder_ == null) { + return conditions_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance() : conditions_; + } else { + return conditionsBuilder_.getMessage(); + } + } + /** + *
+       * conditions detail the current state of the workspace instance
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + public Builder setConditions(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conditions_ = value; + } else { + conditionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * conditions detail the current state of the workspace instance
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + public Builder setConditions( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder builderForValue) { + if (conditionsBuilder_ == null) { + conditions_ = builderForValue.build(); + } else { + conditionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * conditions detail the current state of the workspace instance
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + public Builder mergeConditions(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions value) { + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + conditions_ != null && + conditions_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance()) { + getConditionsBuilder().mergeFrom(value); + } else { + conditions_ = value; + } + } else { + conditionsBuilder_.mergeFrom(value); + } + if (conditions_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * conditions detail the current state of the workspace instance
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + public Builder clearConditions() { + bitField0_ = (bitField0_ & ~0x00000004); + conditions_ = null; + if (conditionsBuilder_ != null) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * conditions detail the current state of the workspace instance
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder getConditionsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getConditionsFieldBuilder().getBuilder(); + } + /** + *
+       * conditions detail the current state of the workspace instance
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder getConditionsOrBuilder() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilder(); + } else { + return conditions_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance() : conditions_; + } + } + /** + *
+       * conditions detail the current state of the workspace instance
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder>( + getConditions(), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private java.lang.Object message_ = ""; + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 4 [json_name = "message"]; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 4 [json_name = "message"]; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 4 [json_name = "message"]; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + message_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 4 [json_name = "message"]; + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 4 [json_name = "message"]; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + /** + *
+       * URL contains the endpoint at which the workspace instance is available
+       * 
+ * + * string url = 5 [json_name = "url"]; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL contains the endpoint at which the workspace instance is available
+       * 
+ * + * string url = 5 [json_name = "url"]; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL contains the endpoint at which the workspace instance is available
+       * 
+ * + * string url = 5 [json_name = "url"]; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + url_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * URL contains the endpoint at which the workspace instance is available
+       * 
+ * + * string url = 5 [json_name = "url"]; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * URL contains the endpoint at which the workspace instance is available
+       * 
+ * + * string url = 5 [json_name = "url"]; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int admission_ = 0; + /** + *
+       * Admission describes who can access a workspace instance and its ports.
+       * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+       * Admission describes who can access a workspace instance and its ports.
+       * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @param value The enum numeric value on the wire for admission to set. + * @return This builder for chaining. + */ + public Builder setAdmissionValue(int value) { + admission_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * Admission describes who can access a workspace instance and its ports.
+       * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel getAdmission() { + io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel result = io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel.UNRECOGNIZED : result; + } + /** + *
+       * Admission describes who can access a workspace instance and its ports.
+       * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @param value The admission to set. + * @return This builder for chaining. + */ + public Builder setAdmission(io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + admission_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Admission describes who can access a workspace instance and its ports.
+       * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @return This builder for chaining. + */ + public Builder clearAdmission() { + bitField0_ = (bitField0_ & ~0x00000020); + admission_ = 0; + onChanged(); + return this; + } + + private java.util.List ports_ = + java.util.Collections.emptyList(); + private void ensurePortsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + ports_ = new java.util.ArrayList(ports_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Port, io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.PortOrBuilder> portsBuilder_; + + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public java.util.List getPortsList() { + if (portsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ports_); + } else { + return portsBuilder_.getMessageList(); + } + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public int getPortsCount() { + if (portsBuilder_ == null) { + return ports_.size(); + } else { + return portsBuilder_.getCount(); + } + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Port getPorts(int index) { + if (portsBuilder_ == null) { + return ports_.get(index); + } else { + return portsBuilder_.getMessage(index); + } + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public Builder setPorts( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.Port value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.set(index, value); + onChanged(); + } else { + portsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public Builder setPorts( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.set(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public Builder addPorts(io.gitpod.publicapi.experimental.v1.Workspaces.Port value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(value); + onChanged(); + } else { + portsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public Builder addPorts( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.Port value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(index, value); + onChanged(); + } else { + portsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public Builder addPorts( + io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public Builder addPorts( + int index, io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public Builder addAllPorts( + java.lang.Iterable values) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); + onChanged(); + } else { + portsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public Builder clearPorts() { + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + portsBuilder_.clear(); + } + return this; + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public Builder removePorts(int index) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.remove(index); + onChanged(); + } else { + portsBuilder_.remove(index); + } + return this; + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder getPortsBuilder( + int index) { + return getPortsFieldBuilder().getBuilder(index); + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.PortOrBuilder getPortsOrBuilder( + int index) { + if (portsBuilder_ == null) { + return ports_.get(index); } else { + return portsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public java.util.List + getPortsOrBuilderList() { + if (portsBuilder_ != null) { + return portsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ports_); + } + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder addPortsBuilder() { + return getPortsFieldBuilder().addBuilder( + io.gitpod.publicapi.experimental.v1.Workspaces.Port.getDefaultInstance()); + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder addPortsBuilder( + int index) { + return getPortsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.experimental.v1.Workspaces.Port.getDefaultInstance()); + } + /** + *
+       * ports is the list of exposed ports in the workspace.
+       * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + public java.util.List + getPortsBuilderList() { + return getPortsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Port, io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.PortOrBuilder> + getPortsFieldBuilder() { + if (portsBuilder_ == null) { + portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.Port, io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.PortOrBuilder>( + ports_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + ports_ = null; + } + return portsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList recentFolders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRecentFoldersIsMutable() { + if (!recentFolders_.isModifiable()) { + recentFolders_ = new com.google.protobuf.LazyStringArrayList(recentFolders_); + } + bitField0_ |= 0x00000080; + } + /** + *
+       * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+       * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @return A list containing the recentFolders. + */ + public com.google.protobuf.ProtocolStringList + getRecentFoldersList() { + recentFolders_.makeImmutable(); + return recentFolders_; + } + /** + *
+       * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+       * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @return The count of recentFolders. + */ + public int getRecentFoldersCount() { + return recentFolders_.size(); + } + /** + *
+       * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+       * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param index The index of the element to return. + * @return The recentFolders at the given index. + */ + public java.lang.String getRecentFolders(int index) { + return recentFolders_.get(index); + } + /** + *
+       * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+       * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param index The index of the value to return. + * @return The bytes of the recentFolders at the given index. + */ + public com.google.protobuf.ByteString + getRecentFoldersBytes(int index) { + return recentFolders_.getByteString(index); + } + /** + *
+       * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+       * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param index The index to set the value at. + * @param value The recentFolders to set. + * @return This builder for chaining. + */ + public Builder setRecentFolders( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRecentFoldersIsMutable(); + recentFolders_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+       * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param value The recentFolders to add. + * @return This builder for chaining. + */ + public Builder addRecentFolders( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRecentFoldersIsMutable(); + recentFolders_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+       * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param values The recentFolders to add. + * @return This builder for chaining. + */ + public Builder addAllRecentFolders( + java.lang.Iterable values) { + ensureRecentFoldersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recentFolders_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+       * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @return This builder for chaining. + */ + public Builder clearRecentFolders() { + recentFolders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + onChanged(); + return this; + } + /** + *
+       * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+       * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param value The bytes of the recentFolders to add. + * @return This builder for chaining. + */ + public Builder addRecentFoldersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRecentFoldersIsMutable(); + recentFolders_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus gitStatus_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder> gitStatusBuilder_; + /** + *
+       * gitStatus details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+       * indicate the absence of a working copy.
+       * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + * @return Whether the gitStatus field is set. + */ + public boolean hasGitStatus() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+       * gitStatus details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+       * indicate the absence of a working copy.
+       * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + * @return The gitStatus. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getGitStatus() { + if (gitStatusBuilder_ == null) { + return gitStatus_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance() : gitStatus_; + } else { + return gitStatusBuilder_.getMessage(); + } + } + /** + *
+       * gitStatus details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+       * indicate the absence of a working copy.
+       * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + public Builder setGitStatus(io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus value) { + if (gitStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gitStatus_ = value; + } else { + gitStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * gitStatus details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+       * indicate the absence of a working copy.
+       * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + public Builder setGitStatus( + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder builderForValue) { + if (gitStatusBuilder_ == null) { + gitStatus_ = builderForValue.build(); + } else { + gitStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * gitStatus details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+       * indicate the absence of a working copy.
+       * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + public Builder mergeGitStatus(io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus value) { + if (gitStatusBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + gitStatus_ != null && + gitStatus_ != io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance()) { + getGitStatusBuilder().mergeFrom(value); + } else { + gitStatus_ = value; + } + } else { + gitStatusBuilder_.mergeFrom(value); + } + if (gitStatus_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + *
+       * gitStatus details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+       * indicate the absence of a working copy.
+       * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + public Builder clearGitStatus() { + bitField0_ = (bitField0_ & ~0x00000100); + gitStatus_ = null; + if (gitStatusBuilder_ != null) { + gitStatusBuilder_.dispose(); + gitStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * gitStatus details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+       * indicate the absence of a working copy.
+       * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder getGitStatusBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getGitStatusFieldBuilder().getBuilder(); + } + /** + *
+       * gitStatus details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+       * indicate the absence of a working copy.
+       * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getGitStatusOrBuilder() { + if (gitStatusBuilder_ != null) { + return gitStatusBuilder_.getMessageOrBuilder(); + } else { + return gitStatus_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance() : gitStatus_; + } + } + /** + *
+       * gitStatus details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+       * indicate the absence of a working copy.
+       * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder> + getGitStatusFieldBuilder() { + if (gitStatusBuilder_ == null) { + gitStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder>( + getGitStatus(), + getParentForChildren(), + isClean()); + gitStatus_ = null; + } + return gitStatusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceInstanceStatus) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceInstanceStatus) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceInstanceStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PortOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.Port) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * port number
+     * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return The port. + */ + long getPort(); + + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The enum numeric value on the wire for policy. + */ + int getPolicyValue(); + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The policy. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy getPolicy(); + + /** + *
+     * url that can be used to access the port
+     * 
+ * + * string url = 3 [json_name = "url"]; + * @return The url. + */ + java.lang.String getUrl(); + /** + *
+     * url that can be used to access the port
+     * 
+ * + * string url = 3 [json_name = "url"]; + * @return The bytes for url. + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 4 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + int getProtocolValue(); + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 4 [json_name = "protocol"]; + * @return The protocol. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol getProtocol(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.Port} + */ + public static final class Port extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.Port) + PortOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Port.class.getName()); + } + // Use Port.newBuilder() to construct. + private Port(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Port() { + policy_ = 0; + url_ = ""; + protocol_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Port_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Port_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.Port.class, io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder.class); + } + + public static final int PORT_FIELD_NUMBER = 1; + private long port_ = 0L; + /** + *
+     * port number
+     * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return The port. + */ + @java.lang.Override + public long getPort() { + return port_; + } + + public static final int POLICY_FIELD_NUMBER = 2; + private int policy_ = 0; + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override public int getPolicyValue() { + return policy_; + } + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The policy. + */ + @java.lang.Override public io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy getPolicy() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy result = io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.forNumber(policy_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.UNRECOGNIZED : result; + } + + public static final int URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + *
+     * url that can be used to access the port
+     * 
+ * + * string url = 3 [json_name = "url"]; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + *
+     * url that can be used to access the port
+     * 
+ * + * string url = 3 [json_name = "url"]; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOCOL_FIELD_NUMBER = 4; + private int protocol_ = 0; + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 4 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override public int getProtocolValue() { + return protocol_; + } + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 4 [json_name = "protocol"]; + * @return The protocol. + */ + @java.lang.Override public io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol getProtocol() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol result = io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.forNumber(protocol_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (port_ != 0L) { + output.writeUInt64(1, port_); + } + if (policy_ != io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.PORT_POLICY_UNSPECIFIED.getNumber()) { + output.writeEnum(2, policy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, url_); + } + if (protocol_ != io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.PORT_PROTOCOL_UNSPECIFIED.getNumber()) { + output.writeEnum(4, protocol_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (port_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, port_); + } + if (policy_ != io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.PORT_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, policy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, url_); + } + if (protocol_ != io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.PORT_PROTOCOL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, protocol_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.Port)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.Port other = (io.gitpod.publicapi.experimental.v1.Workspaces.Port) obj; + + if (getPort() + != other.getPort()) return false; + if (policy_ != other.policy_) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (protocol_ != other.protocol_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPort()); + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + policy_; + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + protocol_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.Port prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.Port} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.Port) + io.gitpod.publicapi.experimental.v1.Workspaces.PortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Port_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Port_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.Port.class, io.gitpod.publicapi.experimental.v1.Workspaces.Port.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.Port.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + port_ = 0L; + policy_ = 0; + url_ = ""; + protocol_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_Port_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Port getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.Port.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Port build() { + io.gitpod.publicapi.experimental.v1.Workspaces.Port result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Port buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.Port result = new io.gitpod.publicapi.experimental.v1.Workspaces.Port(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.Port result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policy_ = policy_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.protocol_ = protocol_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.Port) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.Port)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.Port other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.Port.getDefaultInstance()) return this; + if (other.getPort() != 0L) { + setPort(other.getPort()); + } + if (other.policy_ != 0) { + setPolicyValue(other.getPolicyValue()); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.protocol_ != 0) { + setProtocolValue(other.getProtocolValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + port_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + policy_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + protocol_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long port_ ; + /** + *
+       * port number
+       * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return The port. + */ + @java.lang.Override + public long getPort() { + return port_; + } + /** + *
+       * port number
+       * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(long value) { + + port_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * port number
+       * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000001); + port_ = 0L; + onChanged(); + return this; + } + + private int policy_ = 0; + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override public int getPolicyValue() { + return policy_; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @param value The enum numeric value on the wire for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyValue(int value) { + policy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The policy. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy getPolicy() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy result = io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.forNumber(policy_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.UNRECOGNIZED : result; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy(io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + policy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return This builder for chaining. + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000002); + policy_ = 0; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + url_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int protocol_ = 0; + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 4 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override public int getProtocolValue() { + return protocol_; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 4 [json_name = "protocol"]; + * @param value The enum numeric value on the wire for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolValue(int value) { + protocol_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 4 [json_name = "protocol"]; + * @return The protocol. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol getProtocol() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol result = io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.forNumber(protocol_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.UNRECOGNIZED : result; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 4 [json_name = "protocol"]; + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + protocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 4 [json_name = "protocol"]; + * @return This builder for chaining. + */ + public Builder clearProtocol() { + bitField0_ = (bitField0_ & ~0x00000008); + protocol_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.Port) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.Port) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.Port DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.Port(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.Port getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Port parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Port getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StartWorkspaceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.StartWorkspaceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + * @return Whether the ideSettings field is set. + */ + boolean hasIdeSettings(); + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + * @return The ideSettings. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings getIdeSettings(); + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettingsOrBuilder getIdeSettingsOrBuilder(); + + /** + * string region = 3 [json_name = "region"]; + * @return The region. + */ + java.lang.String getRegion(); + /** + * string region = 3 [json_name = "region"]; + * @return The bytes for region. + */ + com.google.protobuf.ByteString + getRegionBytes(); + } + /** + *
+   * StartWorkspaceSpec influences the workspace start
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.StartWorkspaceSpec} + */ + public static final class StartWorkspaceSpec extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.StartWorkspaceSpec) + StartWorkspaceSpecOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StartWorkspaceSpec.class.getName()); + } + // Use StartWorkspaceSpec.newBuilder() to construct. + private StartWorkspaceSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StartWorkspaceSpec() { + workspaceClass_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.class, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDE_SETTINGS_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings ideSettings_; + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + * @return Whether the ideSettings field is set. + */ + @java.lang.Override + public boolean hasIdeSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + * @return The ideSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings getIdeSettings() { + return ideSettings_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.getDefaultInstance() : ideSettings_; + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.IDESettingsOrBuilder getIdeSettingsOrBuilder() { + return ideSettings_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.getDefaultInstance() : ideSettings_; + } + + public static final int REGION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * string region = 3 [json_name = "region"]; + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } + } + /** + * string region = 3 [json_name = "region"]; + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceClass_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getIdeSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, region_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceClass_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getIdeSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, region_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec other = (io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec) obj; + + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + if (hasIdeSettings() != other.hasIdeSettings()) return false; + if (hasIdeSettings()) { + if (!getIdeSettings() + .equals(other.getIdeSettings())) return false; + } + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + if (hasIdeSettings()) { + hash = (37 * hash) + IDE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getIdeSettings().hashCode(); + } + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * StartWorkspaceSpec influences the workspace start
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.StartWorkspaceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.StartWorkspaceSpec) + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.class, io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getIdeSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceClass_ = ""; + ideSettings_ = null; + if (ideSettingsBuilder_ != null) { + ideSettingsBuilder_.dispose(); + ideSettingsBuilder_ = null; + } + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec build() { + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec result = new io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceClass_ = workspaceClass_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ideSettings_ = ideSettingsBuilder_ == null + ? ideSettings_ + : ideSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec.getDefaultInstance()) return this; + if (!other.getWorkspaceClass().isEmpty()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIdeSettings()) { + mergeIdeSettings(other.getIdeSettings()); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getIdeSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceClass_ = ""; + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings ideSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings, io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.IDESettingsOrBuilder> ideSettingsBuilder_; + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + * @return Whether the ideSettings field is set. + */ + public boolean hasIdeSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + * @return The ideSettings. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings getIdeSettings() { + if (ideSettingsBuilder_ == null) { + return ideSettings_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.getDefaultInstance() : ideSettings_; + } else { + return ideSettingsBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + */ + public Builder setIdeSettings(io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings value) { + if (ideSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ideSettings_ = value; + } else { + ideSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + */ + public Builder setIdeSettings( + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.Builder builderForValue) { + if (ideSettingsBuilder_ == null) { + ideSettings_ = builderForValue.build(); + } else { + ideSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + */ + public Builder mergeIdeSettings(io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings value) { + if (ideSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + ideSettings_ != null && + ideSettings_ != io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.getDefaultInstance()) { + getIdeSettingsBuilder().mergeFrom(value); + } else { + ideSettings_ = value; + } + } else { + ideSettingsBuilder_.mergeFrom(value); + } + if (ideSettings_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + */ + public Builder clearIdeSettings() { + bitField0_ = (bitField0_ & ~0x00000002); + ideSettings_ = null; + if (ideSettingsBuilder_ != null) { + ideSettingsBuilder_.dispose(); + ideSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.Builder getIdeSettingsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getIdeSettingsFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.IDESettingsOrBuilder getIdeSettingsOrBuilder() { + if (ideSettingsBuilder_ != null) { + return ideSettingsBuilder_.getMessageOrBuilder(); + } else { + return ideSettings_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.getDefaultInstance() : ideSettings_; + } + } + /** + * .gitpod.experimental.v1.IDESettings ide_settings = 2 [json_name = "ideSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings, io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.IDESettingsOrBuilder> + getIdeSettingsFieldBuilder() { + if (ideSettingsBuilder_ == null) { + ideSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings, io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.IDESettingsOrBuilder>( + getIdeSettings(), + getParentForChildren(), + isClean()); + ideSettings_ = null; + } + return ideSettingsBuilder_; + } + + private java.lang.Object region_ = ""; + /** + * string region = 3 [json_name = "region"]; + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string region = 3 [json_name = "region"]; + * @return The bytes for region. + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string region = 3 [json_name = "region"]; + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string region = 3 [json_name = "region"]; + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string region = 3 [json_name = "region"]; + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.StartWorkspaceSpec) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.StartWorkspaceSpec) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkspaceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IDESettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.IDESettings) + com.google.protobuf.MessageOrBuilder { + + /** + * string default_ide = 1 [json_name = "defaultIde"]; + * @return The defaultIde. + */ + java.lang.String getDefaultIde(); + /** + * string default_ide = 1 [json_name = "defaultIde"]; + * @return The bytes for defaultIde. + */ + com.google.protobuf.ByteString + getDefaultIdeBytes(); + + /** + * bool use_latest_version = 2 [json_name = "useLatestVersion"]; + * @return The useLatestVersion. + */ + boolean getUseLatestVersion(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.IDESettings} + */ + public static final class IDESettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.IDESettings) + IDESettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + IDESettings.class.getName()); + } + // Use IDESettings.newBuilder() to construct. + private IDESettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private IDESettings() { + defaultIde_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_IDESettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_IDESettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.class, io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.Builder.class); + } + + public static final int DEFAULT_IDE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object defaultIde_ = ""; + /** + * string default_ide = 1 [json_name = "defaultIde"]; + * @return The defaultIde. + */ + @java.lang.Override + public java.lang.String getDefaultIde() { + java.lang.Object ref = defaultIde_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultIde_ = s; + return s; + } + } + /** + * string default_ide = 1 [json_name = "defaultIde"]; + * @return The bytes for defaultIde. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDefaultIdeBytes() { + java.lang.Object ref = defaultIde_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultIde_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_LATEST_VERSION_FIELD_NUMBER = 2; + private boolean useLatestVersion_ = false; + /** + * bool use_latest_version = 2 [json_name = "useLatestVersion"]; + * @return The useLatestVersion. + */ + @java.lang.Override + public boolean getUseLatestVersion() { + return useLatestVersion_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultIde_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, defaultIde_); + } + if (useLatestVersion_ != false) { + output.writeBool(2, useLatestVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultIde_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, defaultIde_); + } + if (useLatestVersion_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, useLatestVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings other = (io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings) obj; + + if (!getDefaultIde() + .equals(other.getDefaultIde())) return false; + if (getUseLatestVersion() + != other.getUseLatestVersion()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_IDE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultIde().hashCode(); + hash = (37 * hash) + USE_LATEST_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseLatestVersion()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.IDESettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.IDESettings) + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_IDESettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_IDESettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.class, io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultIde_ = ""; + useLatestVersion_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_IDESettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings build() { + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings result = new io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultIde_ = defaultIde_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useLatestVersion_ = useLatestVersion_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings.getDefaultInstance()) return this; + if (!other.getDefaultIde().isEmpty()) { + defaultIde_ = other.defaultIde_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getUseLatestVersion() != false) { + setUseLatestVersion(other.getUseLatestVersion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + defaultIde_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + useLatestVersion_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object defaultIde_ = ""; + /** + * string default_ide = 1 [json_name = "defaultIde"]; + * @return The defaultIde. + */ + public java.lang.String getDefaultIde() { + java.lang.Object ref = defaultIde_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultIde_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string default_ide = 1 [json_name = "defaultIde"]; + * @return The bytes for defaultIde. + */ + public com.google.protobuf.ByteString + getDefaultIdeBytes() { + java.lang.Object ref = defaultIde_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultIde_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string default_ide = 1 [json_name = "defaultIde"]; + * @param value The defaultIde to set. + * @return This builder for chaining. + */ + public Builder setDefaultIde( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + defaultIde_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string default_ide = 1 [json_name = "defaultIde"]; + * @return This builder for chaining. + */ + public Builder clearDefaultIde() { + defaultIde_ = getDefaultInstance().getDefaultIde(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string default_ide = 1 [json_name = "defaultIde"]; + * @param value The bytes for defaultIde to set. + * @return This builder for chaining. + */ + public Builder setDefaultIdeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + defaultIde_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean useLatestVersion_ ; + /** + * bool use_latest_version = 2 [json_name = "useLatestVersion"]; + * @return The useLatestVersion. + */ + @java.lang.Override + public boolean getUseLatestVersion() { + return useLatestVersion_; + } + /** + * bool use_latest_version = 2 [json_name = "useLatestVersion"]; + * @param value The useLatestVersion to set. + * @return This builder for chaining. + */ + public Builder setUseLatestVersion(boolean value) { + + useLatestVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool use_latest_version = 2 [json_name = "useLatestVersion"]; + * @return This builder for chaining. + */ + public Builder clearUseLatestVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + useLatestVersion_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.IDESettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.IDESettings) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IDESettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.IDESettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PortSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.PortSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * port number
+     * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return The port. + */ + long getPort(); + + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The enum numeric value on the wire for policy. + */ + int getPolicyValue(); + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The policy. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy getPolicy(); + + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 3 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + int getProtocolValue(); + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 3 [json_name = "protocol"]; + * @return The protocol. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol getProtocol(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.PortSpec} + */ + public static final class PortSpec extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.PortSpec) + PortSpecOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PortSpec.class.getName()); + } + // Use PortSpec.newBuilder() to construct. + private PortSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PortSpec() { + policy_ = 0; + protocol_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_PortSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_PortSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.class, io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.Builder.class); + } + + public static final int PORT_FIELD_NUMBER = 1; + private long port_ = 0L; + /** + *
+     * port number
+     * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return The port. + */ + @java.lang.Override + public long getPort() { + return port_; + } + + public static final int POLICY_FIELD_NUMBER = 2; + private int policy_ = 0; + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override public int getPolicyValue() { + return policy_; + } + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The policy. + */ + @java.lang.Override public io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy getPolicy() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy result = io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.forNumber(policy_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.UNRECOGNIZED : result; + } + + public static final int PROTOCOL_FIELD_NUMBER = 3; + private int protocol_ = 0; + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 3 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override public int getProtocolValue() { + return protocol_; + } + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 3 [json_name = "protocol"]; + * @return The protocol. + */ + @java.lang.Override public io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol getProtocol() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol result = io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.forNumber(protocol_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (port_ != 0L) { + output.writeUInt64(1, port_); + } + if (policy_ != io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.PORT_POLICY_UNSPECIFIED.getNumber()) { + output.writeEnum(2, policy_); + } + if (protocol_ != io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.PORT_PROTOCOL_UNSPECIFIED.getNumber()) { + output.writeEnum(3, protocol_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (port_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, port_); + } + if (policy_ != io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.PORT_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, policy_); + } + if (protocol_ != io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.PORT_PROTOCOL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, protocol_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec other = (io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec) obj; + + if (getPort() + != other.getPort()) return false; + if (policy_ != other.policy_) return false; + if (protocol_ != other.protocol_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPort()); + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + policy_; + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + protocol_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.PortSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.PortSpec) + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_PortSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_PortSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.class, io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + port_ = 0L; + policy_ = 0; + protocol_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_PortSpec_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec build() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec result = new io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policy_ = policy_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.protocol_ = protocol_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.getDefaultInstance()) return this; + if (other.getPort() != 0L) { + setPort(other.getPort()); + } + if (other.policy_ != 0) { + setPolicyValue(other.getPolicyValue()); + } + if (other.protocol_ != 0) { + setProtocolValue(other.getProtocolValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + port_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + policy_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + protocol_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long port_ ; + /** + *
+       * port number
+       * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return The port. + */ + @java.lang.Override + public long getPort() { + return port_; + } + /** + *
+       * port number
+       * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(long value) { + + port_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * port number
+       * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000001); + port_ = 0L; + onChanged(); + return this; + } + + private int policy_ = 0; + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override public int getPolicyValue() { + return policy_; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @param value The enum numeric value on the wire for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyValue(int value) { + policy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return The policy. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy getPolicy() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy result = io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.forNumber(policy_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy.UNRECOGNIZED : result; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy(io.gitpod.publicapi.experimental.v1.Workspaces.PortPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + policy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.experimental.v1.PortPolicy policy = 2 [json_name = "policy"]; + * @return This builder for chaining. + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000002); + policy_ = 0; + onChanged(); + return this; + } + + private int protocol_ = 0; + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 3 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override public int getProtocolValue() { + return protocol_; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 3 [json_name = "protocol"]; + * @param value The enum numeric value on the wire for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolValue(int value) { + protocol_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 3 [json_name = "protocol"]; + * @return The protocol. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol getProtocol() { + io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol result = io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.forNumber(protocol_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol.UNRECOGNIZED : result; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 3 [json_name = "protocol"]; + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(io.gitpod.publicapi.experimental.v1.Workspaces.PortProtocol value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + protocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.experimental.v1.PortProtocol protocol = 3 [json_name = "protocol"]; + * @return This builder for chaining. + */ + public Builder clearProtocol() { + bitField0_ = (bitField0_ & ~0x00000004); + protocol_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.PortSpec) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.PortSpec) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdatePortRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdatePortRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + * @return Whether the port field is set. + */ + boolean hasPort(); + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + * @return The port. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec getPort(); + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpecOrBuilder getPortOrBuilder(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdatePortRequest} + */ + public static final class UpdatePortRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdatePortRequest) + UpdatePortRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdatePortRequest.class.getName()); + } + // Use UpdatePortRequest.newBuilder() to construct. + private UpdatePortRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdatePortRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec port_; + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + * @return Whether the port field is set. + */ + @java.lang.Override + public boolean hasPort() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + * @return The port. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec getPort() { + return port_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.getDefaultInstance() : port_; + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.PortSpecOrBuilder getPortOrBuilder() { + return port_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.getDefaultInstance() : port_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPort()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPort()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (hasPort() != other.hasPort()) return false; + if (hasPort()) { + if (!getPort() + .equals(other.getPort())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + if (hasPort()) { + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdatePortRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdatePortRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPortFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + port_ = null; + if (portBuilder_ != null) { + portBuilder_.dispose(); + portBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = portBuilder_ == null + ? port_ + : portBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPort()) { + mergePort(other.getPort()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPortFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec port_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec, io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.PortSpecOrBuilder> portBuilder_; + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + * @return Whether the port field is set. + */ + public boolean hasPort() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + * @return The port. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec getPort() { + if (portBuilder_ == null) { + return port_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.getDefaultInstance() : port_; + } else { + return portBuilder_.getMessage(); + } + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + */ + public Builder setPort(io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec value) { + if (portBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + port_ = value; + } else { + portBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + */ + public Builder setPort( + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.Builder builderForValue) { + if (portBuilder_ == null) { + port_ = builderForValue.build(); + } else { + portBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + */ + public Builder mergePort(io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec value) { + if (portBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + port_ != null && + port_ != io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.getDefaultInstance()) { + getPortBuilder().mergeFrom(value); + } else { + port_ = value; + } + } else { + portBuilder_.mergeFrom(value); + } + if (port_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = null; + if (portBuilder_ != null) { + portBuilder_.dispose(); + portBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.Builder getPortBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPortFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.PortSpecOrBuilder getPortOrBuilder() { + if (portBuilder_ != null) { + return portBuilder_.getMessageOrBuilder(); + } else { + return port_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.getDefaultInstance() : port_; + } + } + /** + * .gitpod.experimental.v1.PortSpec port = 2 [json_name = "port"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec, io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.PortSpecOrBuilder> + getPortFieldBuilder() { + if (portBuilder_ == null) { + portBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec, io.gitpod.publicapi.experimental.v1.Workspaces.PortSpec.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.PortSpecOrBuilder>( + getPort(), + getParentForChildren(), + isClean()); + port_ = null; + } + return portBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdatePortRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdatePortRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePortRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdatePortResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.UpdatePortResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdatePortResponse} + */ + public static final class UpdatePortResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.UpdatePortResponse) + UpdatePortResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdatePortResponse.class.getName()); + } + // Use UpdatePortResponse.newBuilder() to construct. + private UpdatePortResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdatePortResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.UpdatePortResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.UpdatePortResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.UpdatePortResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.UpdatePortResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePortResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GitStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GitStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The branch. + */ + java.lang.String getBranch(); + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The bytes for branch. + */ + com.google.protobuf.ByteString + getBranchBytes(); + + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The latestCommit. + */ + java.lang.String getLatestCommit(); + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The bytes for latestCommit. + */ + com.google.protobuf.ByteString + getLatestCommitBytes(); + + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return A list containing the uncommitedFiles. + */ + java.util.List + getUncommitedFilesList(); + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return The count of uncommitedFiles. + */ + int getUncommitedFilesCount(); + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the element to return. + * @return The uncommitedFiles at the given index. + */ + java.lang.String getUncommitedFiles(int index); + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the uncommitedFiles at the given index. + */ + com.google.protobuf.ByteString + getUncommitedFilesBytes(int index); + + /** + *
+     * the total number of uncommited files
+     * 
+ * + * int32 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @return The totalUncommitedFiles. + */ + int getTotalUncommitedFiles(); + + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return A list containing the untrackedFiles. + */ + java.util.List + getUntrackedFilesList(); + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return The count of untrackedFiles. + */ + int getUntrackedFilesCount(); + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the element to return. + * @return The untrackedFiles at the given index. + */ + java.lang.String getUntrackedFiles(int index); + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the untrackedFiles at the given index. + */ + com.google.protobuf.ByteString + getUntrackedFilesBytes(int index); + + /** + *
+     * the total number of untracked files
+     * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return The totalUntrackedFiles. + */ + int getTotalUntrackedFiles(); + + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return A list containing the unpushedCommits. + */ + java.util.List + getUnpushedCommitsList(); + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return The count of unpushedCommits. + */ + int getUnpushedCommitsCount(); + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the element to return. + * @return The unpushedCommits at the given index. + */ + java.lang.String getUnpushedCommits(int index); + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the value to return. + * @return The bytes of the unpushedCommits at the given index. + */ + com.google.protobuf.ByteString + getUnpushedCommitsBytes(int index); + + /** + *
+     * the total number of unpushed changes
+     * 
+ * + * int32 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @return The totalUnpushedCommits. + */ + int getTotalUnpushedCommits(); + } + /** + *
+   * GitStatus describes the current working copy status, akin to a combination of "git status" and "git branch"
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.GitStatus} + */ + public static final class GitStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GitStatus) + GitStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GitStatus.class.getName()); + } + // Use GitStatus.newBuilder() to construct. + private GitStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GitStatus() { + branch_ = ""; + latestCommit_ = ""; + uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GitStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GitStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder.class); + } + + public static final int BRANCH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object branch_ = ""; + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } + } + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATEST_COMMIT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object latestCommit_ = ""; + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The latestCommit. + */ + @java.lang.Override + public java.lang.String getLatestCommit() { + java.lang.Object ref = latestCommit_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestCommit_ = s; + return s; + } + } + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The bytes for latestCommit. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLatestCommitBytes() { + java.lang.Object ref = latestCommit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + latestCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNCOMMITED_FILES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return A list containing the uncommitedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUncommitedFilesList() { + return uncommitedFiles_; + } + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return The count of uncommitedFiles. + */ + public int getUncommitedFilesCount() { + return uncommitedFiles_.size(); + } + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the element to return. + * @return The uncommitedFiles at the given index. + */ + public java.lang.String getUncommitedFiles(int index) { + return uncommitedFiles_.get(index); + } + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the uncommitedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUncommitedFilesBytes(int index) { + return uncommitedFiles_.getByteString(index); + } + + public static final int TOTAL_UNCOMMITED_FILES_FIELD_NUMBER = 6; + private int totalUncommitedFiles_ = 0; + /** + *
+     * the total number of uncommited files
+     * 
+ * + * int32 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @return The totalUncommitedFiles. + */ + @java.lang.Override + public int getTotalUncommitedFiles() { + return totalUncommitedFiles_; + } + + public static final int UNTRACKED_FILES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return A list containing the untrackedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUntrackedFilesList() { + return untrackedFiles_; + } + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return The count of untrackedFiles. + */ + public int getUntrackedFilesCount() { + return untrackedFiles_.size(); + } + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the element to return. + * @return The untrackedFiles at the given index. + */ + public java.lang.String getUntrackedFiles(int index) { + return untrackedFiles_.get(index); + } + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the untrackedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUntrackedFilesBytes(int index) { + return untrackedFiles_.getByteString(index); + } + + public static final int TOTAL_UNTRACKED_FILES_FIELD_NUMBER = 7; + private int totalUntrackedFiles_ = 0; + /** + *
+     * the total number of untracked files
+     * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return The totalUntrackedFiles. + */ + @java.lang.Override + public int getTotalUntrackedFiles() { + return totalUntrackedFiles_; + } + + public static final int UNPUSHED_COMMITS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return A list containing the unpushedCommits. + */ + public com.google.protobuf.ProtocolStringList + getUnpushedCommitsList() { + return unpushedCommits_; + } + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return The count of unpushedCommits. + */ + public int getUnpushedCommitsCount() { + return unpushedCommits_.size(); + } + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the element to return. + * @return The unpushedCommits at the given index. + */ + public java.lang.String getUnpushedCommits(int index) { + return unpushedCommits_.get(index); + } + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the value to return. + * @return The bytes of the unpushedCommits at the given index. + */ + public com.google.protobuf.ByteString + getUnpushedCommitsBytes(int index) { + return unpushedCommits_.getByteString(index); + } + + public static final int TOTAL_UNPUSHED_COMMITS_FIELD_NUMBER = 8; + private int totalUnpushedCommits_ = 0; + /** + *
+     * the total number of unpushed changes
+     * 
+ * + * int32 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @return The totalUnpushedCommits. + */ + @java.lang.Override + public int getTotalUnpushedCommits() { + return totalUnpushedCommits_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestCommit_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, latestCommit_); + } + for (int i = 0; i < uncommitedFiles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, uncommitedFiles_.getRaw(i)); + } + for (int i = 0; i < untrackedFiles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, untrackedFiles_.getRaw(i)); + } + for (int i = 0; i < unpushedCommits_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, unpushedCommits_.getRaw(i)); + } + if (totalUncommitedFiles_ != 0) { + output.writeInt32(6, totalUncommitedFiles_); + } + if (totalUntrackedFiles_ != 0) { + output.writeInt32(7, totalUntrackedFiles_); + } + if (totalUnpushedCommits_ != 0) { + output.writeInt32(8, totalUnpushedCommits_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestCommit_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, latestCommit_); + } + { + int dataSize = 0; + for (int i = 0; i < uncommitedFiles_.size(); i++) { + dataSize += computeStringSizeNoTag(uncommitedFiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getUncommitedFilesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < untrackedFiles_.size(); i++) { + dataSize += computeStringSizeNoTag(untrackedFiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getUntrackedFilesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < unpushedCommits_.size(); i++) { + dataSize += computeStringSizeNoTag(unpushedCommits_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnpushedCommitsList().size(); + } + if (totalUncommitedFiles_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, totalUncommitedFiles_); + } + if (totalUntrackedFiles_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, totalUntrackedFiles_); + } + if (totalUnpushedCommits_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, totalUnpushedCommits_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus other = (io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus) obj; + + if (!getBranch() + .equals(other.getBranch())) return false; + if (!getLatestCommit() + .equals(other.getLatestCommit())) return false; + if (!getUncommitedFilesList() + .equals(other.getUncommitedFilesList())) return false; + if (getTotalUncommitedFiles() + != other.getTotalUncommitedFiles()) return false; + if (!getUntrackedFilesList() + .equals(other.getUntrackedFilesList())) return false; + if (getTotalUntrackedFiles() + != other.getTotalUntrackedFiles()) return false; + if (!getUnpushedCommitsList() + .equals(other.getUnpushedCommitsList())) return false; + if (getTotalUnpushedCommits() + != other.getTotalUnpushedCommits()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + hash = (37 * hash) + LATEST_COMMIT_FIELD_NUMBER; + hash = (53 * hash) + getLatestCommit().hashCode(); + if (getUncommitedFilesCount() > 0) { + hash = (37 * hash) + UNCOMMITED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getUncommitedFilesList().hashCode(); + } + hash = (37 * hash) + TOTAL_UNCOMMITED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getTotalUncommitedFiles(); + if (getUntrackedFilesCount() > 0) { + hash = (37 * hash) + UNTRACKED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getUntrackedFilesList().hashCode(); + } + hash = (37 * hash) + TOTAL_UNTRACKED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getTotalUntrackedFiles(); + if (getUnpushedCommitsCount() > 0) { + hash = (37 * hash) + UNPUSHED_COMMITS_FIELD_NUMBER; + hash = (53 * hash) + getUnpushedCommitsList().hashCode(); + } + hash = (37 * hash) + TOTAL_UNPUSHED_COMMITS_FIELD_NUMBER; + hash = (53 * hash) + getTotalUnpushedCommits(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * GitStatus describes the current working copy status, akin to a combination of "git status" and "git branch"
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.GitStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GitStatus) + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GitStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GitStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + branch_ = ""; + latestCommit_ = ""; + uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + totalUncommitedFiles_ = 0; + untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + totalUntrackedFiles_ = 0; + unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + totalUnpushedCommits_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GitStatus_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus build() { + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus result = new io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.branch_ = branch_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.latestCommit_ = latestCommit_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + uncommitedFiles_.makeImmutable(); + result.uncommitedFiles_ = uncommitedFiles_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.totalUncommitedFiles_ = totalUncommitedFiles_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + untrackedFiles_.makeImmutable(); + result.untrackedFiles_ = untrackedFiles_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.totalUntrackedFiles_ = totalUntrackedFiles_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + unpushedCommits_.makeImmutable(); + result.unpushedCommits_ = unpushedCommits_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.totalUnpushedCommits_ = totalUnpushedCommits_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance()) return this; + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLatestCommit().isEmpty()) { + latestCommit_ = other.latestCommit_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.uncommitedFiles_.isEmpty()) { + if (uncommitedFiles_.isEmpty()) { + uncommitedFiles_ = other.uncommitedFiles_; + bitField0_ |= 0x00000004; + } else { + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.addAll(other.uncommitedFiles_); + } + onChanged(); + } + if (other.getTotalUncommitedFiles() != 0) { + setTotalUncommitedFiles(other.getTotalUncommitedFiles()); + } + if (!other.untrackedFiles_.isEmpty()) { + if (untrackedFiles_.isEmpty()) { + untrackedFiles_ = other.untrackedFiles_; + bitField0_ |= 0x00000010; + } else { + ensureUntrackedFilesIsMutable(); + untrackedFiles_.addAll(other.untrackedFiles_); + } + onChanged(); + } + if (other.getTotalUntrackedFiles() != 0) { + setTotalUntrackedFiles(other.getTotalUntrackedFiles()); + } + if (!other.unpushedCommits_.isEmpty()) { + if (unpushedCommits_.isEmpty()) { + unpushedCommits_ = other.unpushedCommits_; + bitField0_ |= 0x00000040; + } else { + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.addAll(other.unpushedCommits_); + } + onChanged(); + } + if (other.getTotalUnpushedCommits() != 0) { + setTotalUnpushedCommits(other.getTotalUnpushedCommits()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + latestCommit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUntrackedFilesIsMutable(); + untrackedFiles_.add(s); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.add(s); + break; + } // case 42 + case 48: { + totalUncommitedFiles_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 56: { + totalUntrackedFiles_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: { + totalUnpushedCommits_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object branch_ = ""; + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + branch_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object latestCommit_ = ""; + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The latestCommit. + */ + public java.lang.String getLatestCommit() { + java.lang.Object ref = latestCommit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestCommit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The bytes for latestCommit. + */ + public com.google.protobuf.ByteString + getLatestCommitBytes() { + java.lang.Object ref = latestCommit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + latestCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @param value The latestCommit to set. + * @return This builder for chaining. + */ + public Builder setLatestCommit( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + latestCommit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return This builder for chaining. + */ + public Builder clearLatestCommit() { + latestCommit_ = getDefaultInstance().getLatestCommit(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @param value The bytes for latestCommit to set. + * @return This builder for chaining. + */ + public Builder setLatestCommitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + latestCommit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUncommitedFilesIsMutable() { + if (!uncommitedFiles_.isModifiable()) { + uncommitedFiles_ = new com.google.protobuf.LazyStringArrayList(uncommitedFiles_); + } + bitField0_ |= 0x00000004; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return A list containing the uncommitedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUncommitedFilesList() { + uncommitedFiles_.makeImmutable(); + return uncommitedFiles_; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return The count of uncommitedFiles. + */ + public int getUncommitedFilesCount() { + return uncommitedFiles_.size(); + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the element to return. + * @return The uncommitedFiles at the given index. + */ + public java.lang.String getUncommitedFiles(int index) { + return uncommitedFiles_.get(index); + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the uncommitedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUncommitedFilesBytes(int index) { + return uncommitedFiles_.getByteString(index); + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index to set the value at. + * @param value The uncommitedFiles to set. + * @return This builder for chaining. + */ + public Builder setUncommitedFiles( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param value The uncommitedFiles to add. + * @return This builder for chaining. + */ + public Builder addUncommitedFiles( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param values The uncommitedFiles to add. + * @return This builder for chaining. + */ + public Builder addAllUncommitedFiles( + java.lang.Iterable values) { + ensureUncommitedFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uncommitedFiles_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return This builder for chaining. + */ + public Builder clearUncommitedFiles() { + uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param value The bytes of the uncommitedFiles to add. + * @return This builder for chaining. + */ + public Builder addUncommitedFilesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int totalUncommitedFiles_ ; + /** + *
+       * the total number of uncommited files
+       * 
+ * + * int32 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @return The totalUncommitedFiles. + */ + @java.lang.Override + public int getTotalUncommitedFiles() { + return totalUncommitedFiles_; + } + /** + *
+       * the total number of uncommited files
+       * 
+ * + * int32 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @param value The totalUncommitedFiles to set. + * @return This builder for chaining. + */ + public Builder setTotalUncommitedFiles(int value) { + + totalUncommitedFiles_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * the total number of uncommited files
+       * 
+ * + * int32 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @return This builder for chaining. + */ + public Builder clearTotalUncommitedFiles() { + bitField0_ = (bitField0_ & ~0x00000008); + totalUncommitedFiles_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUntrackedFilesIsMutable() { + if (!untrackedFiles_.isModifiable()) { + untrackedFiles_ = new com.google.protobuf.LazyStringArrayList(untrackedFiles_); + } + bitField0_ |= 0x00000010; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return A list containing the untrackedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUntrackedFilesList() { + untrackedFiles_.makeImmutable(); + return untrackedFiles_; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return The count of untrackedFiles. + */ + public int getUntrackedFilesCount() { + return untrackedFiles_.size(); + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the element to return. + * @return The untrackedFiles at the given index. + */ + public java.lang.String getUntrackedFiles(int index) { + return untrackedFiles_.get(index); + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the untrackedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUntrackedFilesBytes(int index) { + return untrackedFiles_.getByteString(index); + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index to set the value at. + * @param value The untrackedFiles to set. + * @return This builder for chaining. + */ + public Builder setUntrackedFiles( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUntrackedFilesIsMutable(); + untrackedFiles_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param value The untrackedFiles to add. + * @return This builder for chaining. + */ + public Builder addUntrackedFiles( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUntrackedFilesIsMutable(); + untrackedFiles_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param values The untrackedFiles to add. + * @return This builder for chaining. + */ + public Builder addAllUntrackedFiles( + java.lang.Iterable values) { + ensureUntrackedFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, untrackedFiles_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return This builder for chaining. + */ + public Builder clearUntrackedFiles() { + untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param value The bytes of the untrackedFiles to add. + * @return This builder for chaining. + */ + public Builder addUntrackedFilesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUntrackedFilesIsMutable(); + untrackedFiles_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int totalUntrackedFiles_ ; + /** + *
+       * the total number of untracked files
+       * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return The totalUntrackedFiles. + */ + @java.lang.Override + public int getTotalUntrackedFiles() { + return totalUntrackedFiles_; + } + /** + *
+       * the total number of untracked files
+       * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @param value The totalUntrackedFiles to set. + * @return This builder for chaining. + */ + public Builder setTotalUntrackedFiles(int value) { + + totalUntrackedFiles_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * the total number of untracked files
+       * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return This builder for chaining. + */ + public Builder clearTotalUntrackedFiles() { + bitField0_ = (bitField0_ & ~0x00000020); + totalUntrackedFiles_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnpushedCommitsIsMutable() { + if (!unpushedCommits_.isModifiable()) { + unpushedCommits_ = new com.google.protobuf.LazyStringArrayList(unpushedCommits_); + } + bitField0_ |= 0x00000040; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return A list containing the unpushedCommits. + */ + public com.google.protobuf.ProtocolStringList + getUnpushedCommitsList() { + unpushedCommits_.makeImmutable(); + return unpushedCommits_; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return The count of unpushedCommits. + */ + public int getUnpushedCommitsCount() { + return unpushedCommits_.size(); + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the element to return. + * @return The unpushedCommits at the given index. + */ + public java.lang.String getUnpushedCommits(int index) { + return unpushedCommits_.get(index); + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the value to return. + * @return The bytes of the unpushedCommits at the given index. + */ + public com.google.protobuf.ByteString + getUnpushedCommitsBytes(int index) { + return unpushedCommits_.getByteString(index); + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index to set the value at. + * @param value The unpushedCommits to set. + * @return This builder for chaining. + */ + public Builder setUnpushedCommits( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param value The unpushedCommits to add. + * @return This builder for chaining. + */ + public Builder addUnpushedCommits( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param values The unpushedCommits to add. + * @return This builder for chaining. + */ + public Builder addAllUnpushedCommits( + java.lang.Iterable values) { + ensureUnpushedCommitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unpushedCommits_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return This builder for chaining. + */ + public Builder clearUnpushedCommits() { + unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param value The bytes of the unpushedCommits to add. + * @return This builder for chaining. + */ + public Builder addUnpushedCommitsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int totalUnpushedCommits_ ; + /** + *
+       * the total number of unpushed changes
+       * 
+ * + * int32 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @return The totalUnpushedCommits. + */ + @java.lang.Override + public int getTotalUnpushedCommits() { + return totalUnpushedCommits_; + } + /** + *
+       * the total number of unpushed changes
+       * 
+ * + * int32 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @param value The totalUnpushedCommits to set. + * @return This builder for chaining. + */ + public Builder setTotalUnpushedCommits(int value) { + + totalUnpushedCommits_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * the total number of unpushed changes
+       * 
+ * + * int32 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @return This builder for chaining. + */ + public Builder clearTotalUnpushedCommits() { + bitField0_ = (bitField0_ & ~0x00000080); + totalUnpushedCommits_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GitStatus) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GitStatus) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceClassOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceClass) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the unique identifier of the workspace class
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is the unique identifier of the workspace class
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * display_name is the human readable name of the workspace class
+     * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+     * display_name is the human readable name of the workspace class
+     * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+     * description is a human readable description of the workspace class
+     * 
+ * + * string description = 3 [json_name = "description"]; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * description is a human readable description of the workspace class
+     * 
+ * + * string description = 3 [json_name = "description"]; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * is_default indicates if this workspace class is the default one
+     * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @return The isDefault. + */ + boolean getIsDefault(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.WorkspaceClass} + */ + public static final class WorkspaceClass extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceClass) + WorkspaceClassOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceClass.class.getName()); + } + // Use WorkspaceClass.newBuilder() to construct. + private WorkspaceClass(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceClass() { + id_ = ""; + displayName_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceClass_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is the unique identifier of the workspace class
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is the unique identifier of the workspace class
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + *
+     * display_name is the human readable name of the workspace class
+     * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *
+     * display_name is the human readable name of the workspace class
+     * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+     * description is a human readable description of the workspace class
+     * 
+ * + * string description = 3 [json_name = "description"]; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * description is a human readable description of the workspace class
+     * 
+ * + * string description = 3 [json_name = "description"]; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_DEFAULT_FIELD_NUMBER = 4; + private boolean isDefault_ = false; + /** + *
+     * is_default indicates if this workspace class is the default one
+     * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @return The isDefault. + */ + @java.lang.Override + public boolean getIsDefault() { + return isDefault_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (isDefault_ != false) { + output.writeBool(4, isDefault_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (isDefault_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isDefault_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getIsDefault() + != other.getIsDefault()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + IS_DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDefault()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.WorkspaceClass} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceClass) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClassOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceClass_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + displayName_ = ""; + description_ = ""; + isDefault_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isDefault_ = isDefault_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getIsDefault() != false) { + setIsDefault(other.getIsDefault()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + isDefault_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean isDefault_ ; + /** + *
+       * is_default indicates if this workspace class is the default one
+       * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @return The isDefault. + */ + @java.lang.Override + public boolean getIsDefault() { + return isDefault_; + } + /** + *
+       * is_default indicates if this workspace class is the default one
+       * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @param value The isDefault to set. + * @return This builder for chaining. + */ + public Builder setIsDefault(boolean value) { + + isDefault_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * is_default indicates if this workspace class is the default one
+       * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @return This builder for chaining. + */ + public Builder clearIsDefault() { + bitField0_ = (bitField0_ & ~0x00000008); + isDefault_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceClass) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceClass) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceClass getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetDefaultWorkspaceImageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetDefaultWorkspaceImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return Whether the workspaceId field is set. + */ + boolean hasWorkspaceId(); + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetDefaultWorkspaceImageRequest} + */ + public static final class GetDefaultWorkspaceImageRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetDefaultWorkspaceImageRequest) + GetDefaultWorkspaceImageRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetDefaultWorkspaceImageRequest.class.getName()); + } + // Use GetDefaultWorkspaceImageRequest.newBuilder() to construct. + private GetDefaultWorkspaceImageRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetDefaultWorkspaceImageRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return Whether the workspaceId field is set. + */ + @java.lang.Override + public boolean hasWorkspaceId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest other = (io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest) obj; + + if (hasWorkspaceId() != other.hasWorkspaceId()) return false; + if (hasWorkspaceId()) { + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkspaceId()) { + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetDefaultWorkspaceImageRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetDefaultWorkspaceImageRequest) + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest build() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest result = new io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest.getDefaultInstance()) return this; + if (other.hasWorkspaceId()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return Whether the workspaceId field is set. + */ + public boolean hasWorkspaceId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetDefaultWorkspaceImageRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetDefaultWorkspaceImageRequest) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDefaultWorkspaceImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetDefaultWorkspaceImageResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.GetDefaultWorkspaceImageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * image is the image ref
+     * 
+ * + * string image = 1 [json_name = "image"]; + * @return The image. + */ + java.lang.String getImage(); + /** + *
+     * image is the image ref
+     * 
+ * + * string image = 1 [json_name = "image"]; + * @return The bytes for image. + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * source is the source of the image
+     * 
+ * + * .gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource source = 2 [json_name = "source"]; + * @return The enum numeric value on the wire for source. + */ + int getSourceValue(); + /** + *
+     * source is the source of the image
+     * 
+ * + * .gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource source = 2 [json_name = "source"]; + * @return The source. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource getSource(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetDefaultWorkspaceImageResponse} + */ + public static final class GetDefaultWorkspaceImageResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.GetDefaultWorkspaceImageResponse) + GetDefaultWorkspaceImageResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetDefaultWorkspaceImageResponse.class.getName()); + } + // Use GetDefaultWorkspaceImageResponse.newBuilder() to construct. + private GetDefaultWorkspaceImageResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetDefaultWorkspaceImageResponse() { + image_ = ""; + source_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.Builder.class); + } + + /** + * Protobuf enum {@code gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource} + */ + public enum ImageSource + implements com.google.protobuf.ProtocolMessageEnum { + /** + * IMAGE_SOURCE_UNSPECIFIED = 0; + */ + IMAGE_SOURCE_UNSPECIFIED(0), + /** + *
+       * IMAGE_SOURCE_INSTALLATION means the image from Gitpod instance install config
+       * 
+ * + * IMAGE_SOURCE_INSTALLATION = 1; + */ + IMAGE_SOURCE_INSTALLATION(1), + /** + *
+       * IMAGE_SOURCE_ORGANIZATION means the image from  Organization settings
+       * 
+ * + * IMAGE_SOURCE_ORGANIZATION = 2; + */ + IMAGE_SOURCE_ORGANIZATION(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ImageSource.class.getName()); + } + /** + * IMAGE_SOURCE_UNSPECIFIED = 0; + */ + public static final int IMAGE_SOURCE_UNSPECIFIED_VALUE = 0; + /** + *
+       * IMAGE_SOURCE_INSTALLATION means the image from Gitpod instance install config
+       * 
+ * + * IMAGE_SOURCE_INSTALLATION = 1; + */ + public static final int IMAGE_SOURCE_INSTALLATION_VALUE = 1; + /** + *
+       * IMAGE_SOURCE_ORGANIZATION means the image from  Organization settings
+       * 
+ * + * IMAGE_SOURCE_ORGANIZATION = 2; + */ + public static final int IMAGE_SOURCE_ORGANIZATION_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ImageSource valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ImageSource forNumber(int value) { + switch (value) { + case 0: return IMAGE_SOURCE_UNSPECIFIED; + case 1: return IMAGE_SOURCE_INSTALLATION; + case 2: return IMAGE_SOURCE_ORGANIZATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ImageSource> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ImageSource findValueByNumber(int number) { + return ImageSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final ImageSource[] VALUES = values(); + + public static ImageSource valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ImageSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource) + } + + public static final int IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object image_ = ""; + /** + *
+     * image is the image ref
+     * 
+ * + * string image = 1 [json_name = "image"]; + * @return The image. + */ + @java.lang.Override + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } + } + /** + *
+     * image is the image ref
+     * 
+ * + * string image = 1 [json_name = "image"]; + * @return The bytes for image. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 2; + private int source_ = 0; + /** + *
+     * source is the source of the image
+     * 
+ * + * .gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource source = 2 [json_name = "source"]; + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override public int getSourceValue() { + return source_; + } + /** + *
+     * source is the source of the image
+     * 
+ * + * .gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource source = 2 [json_name = "source"]; + * @return The source. + */ + @java.lang.Override public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource getSource() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource result = io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource.forNumber(source_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(image_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, image_); + } + if (source_ != io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource.IMAGE_SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(image_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, image_); + } + if (source_ != io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource.IMAGE_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse other = (io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (source_ != other.source_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.GetDefaultWorkspaceImageResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.GetDefaultWorkspaceImageResponse) + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.class, io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + image_ = ""; + source_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse build() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse result = new io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.image_ = image_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.source_ = source_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.getDefaultInstance()) return this; + if (!other.getImage().isEmpty()) { + image_ = other.image_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.source_ != 0) { + setSourceValue(other.getSourceValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + source_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object image_ = ""; + /** + *
+       * image is the image ref
+       * 
+ * + * string image = 1 [json_name = "image"]; + * @return The image. + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * image is the image ref
+       * 
+ * + * string image = 1 [json_name = "image"]; + * @return The bytes for image. + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * image is the image ref
+       * 
+ * + * string image = 1 [json_name = "image"]; + * @param value The image to set. + * @return This builder for chaining. + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + image_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * image is the image ref
+       * 
+ * + * string image = 1 [json_name = "image"]; + * @return This builder for chaining. + */ + public Builder clearImage() { + image_ = getDefaultInstance().getImage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * image is the image ref
+       * 
+ * + * string image = 1 [json_name = "image"]; + * @param value The bytes for image to set. + * @return This builder for chaining. + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + image_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int source_ = 0; + /** + *
+       * source is the source of the image
+       * 
+ * + * .gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource source = 2 [json_name = "source"]; + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override public int getSourceValue() { + return source_; + } + /** + *
+       * source is the source of the image
+       * 
+ * + * .gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource source = 2 [json_name = "source"]; + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + public Builder setSourceValue(int value) { + source_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * source is the source of the image
+       * 
+ * + * .gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource source = 2 [json_name = "source"]; + * @return The source. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource getSource() { + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource result = io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource.forNumber(source_); + return result == null ? io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource.UNRECOGNIZED : result; + } + /** + *
+       * source is the source of the image
+       * 
+ * + * .gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource source = 2 [json_name = "source"]; + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse.ImageSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + source_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * source is the source of the image
+       * 
+ * + * .gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource source = 2 [json_name = "source"]; + * @return This builder for chaining. + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000002); + source_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.GetDefaultWorkspaceImageResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.GetDefaultWorkspaceImageResponse) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDefaultWorkspaceImageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListWorkspacesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListWorkspacesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListWorkspacesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListWorkspacesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_StartWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_StartWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_StartWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_StartWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_StopWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_StopWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_StopWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_StopWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_Workspace_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_Workspace_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceContext_Git_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_Port_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_Port_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_StartWorkspaceSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_IDESettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_IDESettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_PortSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_PortSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdatePortRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_UpdatePortResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GitStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GitStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceClass_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'gitpod/experimental/v1/workspaces.prot" + + "o\022\026gitpod.experimental.v1\032\'gitpod/experi" + + "mental/v1/pagination.proto\032 google/proto" + + "buf/field_mask.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\277\001\n\025ListWorkspacesRequest\022" + + "B\n\npagination\030\001 \001(\0132\".gitpod.experimenta" + + "l.v1.PaginationR\npagination\0229\n\nfield_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskR\tfie" + + "ldMask\022\'\n\017organization_id\030\003 \001(\tR\016organiz" + + "ationId\"{\n\026ListWorkspacesResponse\022&\n\017nex" + + "t_page_token\030\001 \001(\tR\rnextPageToken\0229\n\006res" + + "ult\030\002 \003(\0132!.gitpod.experimental.v1.Works" + + "paceR\006result\"8\n\023GetWorkspaceRequest\022!\n\014w" + + "orkspace_id\030\001 \001(\tR\013workspaceId\"Q\n\024GetWor" + + "kspaceResponse\0229\n\006result\030\001 \001(\0132!.gitpod." + + "experimental.v1.WorkspaceR\006result\"A\n\034Str" + + "eamWorkspaceStatusRequest\022!\n\014workspace_i" + + "d\030\001 \001(\tR\013workspaceId\"`\n\035StreamWorkspaceS" + + "tatusResponse\022?\n\006result\030\001 \001(\0132\'.gitpod.e" + + "xperimental.v1.WorkspaceStatusR\006result\"9" + + "\n\024GetOwnerTokenRequest\022!\n\014workspace_id\030\001" + + " \001(\tR\013workspaceId\"-\n\025GetOwnerTokenRespon" + + "se\022\024\n\005token\030\001 \001(\tR\005token\"\225\004\n\036CreateAndSt" + + "artWorkspaceRequest\022+\n\021idempotency_token" + + "\030\001 \001(\tR\020idempotencyToken\022!\n\013context_url\030" + + "\002 \001(\tH\000R\ncontextUrl\022!\n\013prebuild_id\030\003 \001(\t" + + "H\000R\nprebuildId\022I\n\nstart_spec\030\005 \001(\0132*.git" + + "pod.experimental.v1.StartWorkspaceSpecR\t" + + "startSpec\022\'\n\017organization_id\030\006 \001(\tR\016orga" + + "nizationId\022S\n\'ignore_running_workspace_o" + + "n_same_commit\030\007 \001(\010R\"ignoreRunningWorksp" + + "aceOnSameCommit\0226\n\027ignore_running_prebui" + + "ld\030\010 \001(\010R\025ignoreRunningPrebuild\022C\n\036allow" + + "_using_previous_prebuilds\030\t \001(\010R\033allowUs" + + "ingPreviousPrebuilds\0220\n\024force_default_co" + + "nfig\030\n \001(\010R\022forceDefaultConfigB\010\n\006source" + + "\"D\n\037CreateAndStartWorkspaceResponse\022!\n\014w" + + "orkspace_id\030\001 \001(\tR\013workspaceId\":\n\025StartW" + + "orkspaceRequest\022!\n\014workspace_id\030\001 \001(\tR\013w" + + "orkspaceId\"S\n\026StartWorkspaceResponse\0229\n\006" + + "result\030\001 \001(\0132!.gitpod.experimental.v1.Wo" + + "rkspaceR\006result\"9\n\024StopWorkspaceRequest\022" + + "!\n\014workspace_id\030\001 \001(\tR\013workspaceId\"R\n\025St" + + "opWorkspaceResponse\0229\n\006result\030\001 \001(\0132!.gi" + + "tpod.experimental.v1.WorkspaceR\006result\";" + + "\n\026DeleteWorkspaceRequest\022!\n\014workspace_id" + + "\030\001 \001(\tR\013workspaceId\"\031\n\027DeleteWorkspaceRe" + + "sponse\"\035\n\033ListWorkspaceClassesRequest\"^\n" + + "\034ListWorkspaceClassesResponse\022>\n\006result\030" + + "\001 \003(\0132&.gitpod.experimental.v1.Workspace" + + "ClassR\006result\"\217\002\n\tWorkspace\022!\n\014workspace" + + "_id\030\001 \001(\tR\013workspaceId\022\031\n\010owner_id\030\002 \001(\t" + + "R\007ownerId\022\035\n\nproject_id\030\003 \001(\tR\tprojectId" + + "\022B\n\007context\030\004 \001(\0132(.gitpod.experimental." + + "v1.WorkspaceContextR\007context\022 \n\013descript" + + "ion\030\005 \001(\tR\013description\022?\n\006status\030\006 \001(\0132\'" + + ".gitpod.experimental.v1.WorkspaceStatusR" + + "\006status\"X\n\017WorkspaceStatus\022E\n\010instance\030\001" + + " \001(\0132).gitpod.experimental.v1.WorkspaceI" + + "nstanceR\010instance\"\262\006\n\020WorkspaceContext\022\037" + + "\n\013context_url\030\001 \001(\tR\ncontextUrl\022@\n\003git\030\002" + + " \001(\0132,.gitpod.experimental.v1.WorkspaceC" + + "ontext.GitH\000R\003git\022O\n\010prebuild\030\003 \001(\01321.gi" + + "tpod.experimental.v1.WorkspaceContext.Pr" + + "ebuildH\000R\010prebuild\022O\n\010snapshot\030\004 \001(\01321.g" + + "itpod.experimental.v1.WorkspaceContext.S" + + "napshotH\000R\010snapshot\032=\n\013GitProvider\022\022\n\004ty" + + "pe\030\001 \001(\tR\004type\022\032\n\010hostname\030\002 \001(\tR\010hostna" + + "me\0326\n\nRepository\022\022\n\004name\030\001 \001(\tR\004name\022\024\n\005" + + "owner\030\002 \001(\tR\005owner\032\342\001\n\003Git\0224\n\026normalized" + + "_context_url\030\001 \001(\tR\024normalizedContextUrl" + + "\022S\n\nrepository\030\002 \001(\01323.gitpod.experiment" + + "al.v1.WorkspaceContext.RepositoryR\nrepos" + + "itory\022P\n\010provider\030\003 \001(\01324.gitpod.experim" + + "ental.v1.WorkspaceContext.GitProviderR\010p" + + "rovider\032\204\001\n\010Prebuild\022W\n\020original_context" + + "\030\001 \001(\0132,.gitpod.experimental.v1.Workspac" + + "eContext.GitR\017originalContext\022\037\n\013prebuil" + + "d_id\030\002 \001(\tR\nprebuildId\032+\n\010Snapshot\022\037\n\013sn" + + "apshot_id\030\001 \001(\tR\nsnapshotIdB\t\n\007details\"\333" + + "\001\n\021WorkspaceInstance\022\037\n\013instance_id\030\001 \001(" + + "\tR\ninstanceId\022!\n\014workspace_id\030\002 \001(\tR\013wor" + + "kspaceId\0229\n\ncreated_at\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampR\tcreatedAt\022G\n\006status\030\004 " + + "\001(\0132/.gitpod.experimental.v1.WorkspaceIn" + + "stanceStatusR\006status\"\253\007\n\027WorkspaceInstan" + + "ceStatus\022%\n\016status_version\030\001 \001(\004R\rstatus" + + "Version\022K\n\005phase\030\002 \001(\01625.gitpod.experime" + + "ntal.v1.WorkspaceInstanceStatus.PhaseR\005p" + + "hase\022Z\n\nconditions\030\003 \001(\0132:.gitpod.experi" + + "mental.v1.WorkspaceInstanceStatus.Condit" + + "ionsR\nconditions\022\030\n\007message\030\004 \001(\tR\007messa" + + "ge\022\020\n\003url\030\005 \001(\tR\003url\022D\n\tadmission\030\006 \001(\0162" + + "&.gitpod.experimental.v1.AdmissionLevelR" + + "\tadmission\0222\n\005ports\030\007 \003(\0132\034.gitpod.exper" + + "imental.v1.PortR\005ports\022%\n\016recent_folders" + + "\030\010 \003(\tR\rrecentFolders\022@\n\ngit_status\030\t \001(" + + "\0132!.gitpod.experimental.v1.GitStatusR\tgi" + + "tStatus\032\324\001\n\nConditions\022\026\n\006failed\030\001 \001(\tR\006" + + "failed\022\030\n\007timeout\030\002 \001(\tR\007timeout\022J\n\023firs" + + "t_user_activity\030\t \001(\0132\032.google.protobuf." + + "TimestampR\021firstUserActivity\0221\n\022stopped_" + + "by_request\030\013 \001(\010H\000R\020stoppedByRequest\210\001\001B" + + "\025\n\023_stopped_by_request\"\331\001\n\005Phase\022\025\n\021PHAS" + + "E_UNSPECIFIED\020\000\022\023\n\017PHASE_PREPARING\020\001\022\024\n\020" + + "PHASE_IMAGEBUILD\020\002\022\021\n\rPHASE_PENDING\020\003\022\022\n" + + "\016PHASE_CREATING\020\004\022\026\n\022PHASE_INITIALIZING\020" + + "\005\022\021\n\rPHASE_RUNNING\020\006\022\025\n\021PHASE_INTERRUPTE" + + "D\020\007\022\022\n\016PHASE_STOPPING\020\010\022\021\n\rPHASE_STOPPED" + + "\020\t\"\252\001\n\004Port\022\022\n\004port\030\001 \001(\004R\004port\022:\n\006polic" + + "y\030\002 \001(\0162\".gitpod.experimental.v1.PortPol" + + "icyR\006policy\022\020\n\003url\030\003 \001(\tR\003url\022@\n\010protoco" + + "l\030\004 \001(\0162$.gitpod.experimental.v1.PortPro" + + "tocolR\010protocol\"\235\001\n\022StartWorkspaceSpec\022\'" + + "\n\017workspace_class\030\001 \001(\tR\016workspaceClass\022" + + "F\n\014ide_settings\030\002 \001(\0132#.gitpod.experimen" + + "tal.v1.IDESettingsR\013ideSettings\022\026\n\006regio" + + "n\030\003 \001(\tR\006region\"\\\n\013IDESettings\022\037\n\013defaul" + + "t_ide\030\001 \001(\tR\ndefaultIde\022,\n\022use_latest_ve" + + "rsion\030\002 \001(\010R\020useLatestVersion\"\234\001\n\010PortSp" + + "ec\022\022\n\004port\030\001 \001(\004R\004port\022:\n\006policy\030\002 \001(\0162\"" + + ".gitpod.experimental.v1.PortPolicyR\006poli" + + "cy\022@\n\010protocol\030\003 \001(\0162$.gitpod.experiment" + + "al.v1.PortProtocolR\010protocol\"l\n\021UpdatePo" + + "rtRequest\022!\n\014workspace_id\030\001 \001(\tR\013workspa" + + "ceId\0224\n\004port\030\002 \001(\0132 .gitpod.experimental" + + ".v1.PortSpecR\004port\"\024\n\022UpdatePortResponse" + + "\"\347\002\n\tGitStatus\022\026\n\006branch\030\001 \001(\tR\006branch\022#" + + "\n\rlatest_commit\030\002 \001(\tR\014latestCommit\022)\n\020u" + + "ncommited_files\030\003 \003(\tR\017uncommitedFiles\0224" + + "\n\026total_uncommited_files\030\006 \001(\005R\024totalUnc" + + "ommitedFiles\022\'\n\017untracked_files\030\004 \003(\tR\016u" + + "ntrackedFiles\0222\n\025total_untracked_files\030\007" + + " \001(\005R\023totalUntrackedFiles\022)\n\020unpushed_co" + + "mmits\030\005 \003(\tR\017unpushedCommits\0224\n\026total_un" + + "pushed_commits\030\010 \001(\005R\024totalUnpushedCommi" + + "ts\"\204\001\n\016WorkspaceClass\022\016\n\002id\030\001 \001(\tR\002id\022!\n" + + "\014display_name\030\002 \001(\tR\013displayName\022 \n\013desc" + + "ription\030\003 \001(\tR\013description\022\035\n\nis_default" + + "\030\004 \001(\010R\tisDefault\"Z\n\037GetDefaultWorkspace" + + "ImageRequest\022&\n\014workspace_id\030\001 \001(\tH\000R\013wo" + + "rkspaceId\210\001\001B\017\n\r_workspace_id\"\201\002\n GetDef" + + "aultWorkspaceImageResponse\022\024\n\005image\030\001 \001(" + + "\tR\005image\022\\\n\006source\030\002 \001(\0162D.gitpod.experi" + + "mental.v1.GetDefaultWorkspaceImageRespon" + + "se.ImageSourceR\006source\"i\n\013ImageSource\022\034\n" + + "\030IMAGE_SOURCE_UNSPECIFIED\020\000\022\035\n\031IMAGE_SOU" + + "RCE_INSTALLATION\020\001\022\035\n\031IMAGE_SOURCE_ORGAN" + + "IZATION\020\002*Z\n\nPortPolicy\022\033\n\027PORT_POLICY_U" + + "NSPECIFIED\020\000\022\027\n\023PORT_POLICY_PRIVATE\020\001\022\026\n" + + "\022PORT_POLICY_PUBLIC\020\002*^\n\014PortProtocol\022\035\n" + + "\031PORT_PROTOCOL_UNSPECIFIED\020\000\022\026\n\022PORT_PRO" + + "TOCOL_HTTP\020\001\022\027\n\023PORT_PROTOCOL_HTTPS\020\002*o\n" + + "\016AdmissionLevel\022\037\n\033ADMISSION_LEVEL_UNSPE" + + "CIFIED\020\000\022\036\n\032ADMISSION_LEVEL_OWNER_ONLY\020\001" + + "\022\034\n\030ADMISSION_LEVEL_EVERYONE\020\0022\325\n\n\021Works" + + "pacesService\022q\n\016ListWorkspaces\022-.gitpod." + + "experimental.v1.ListWorkspacesRequest\032.." + + "gitpod.experimental.v1.ListWorkspacesRes" + + "ponse\"\000\022k\n\014GetWorkspace\022+.gitpod.experim" + + "ental.v1.GetWorkspaceRequest\032,.gitpod.ex" + + "perimental.v1.GetWorkspaceResponse\"\000\022\210\001\n" + + "\025StreamWorkspaceStatus\0224.gitpod.experime" + + "ntal.v1.StreamWorkspaceStatusRequest\0325.g" + + "itpod.experimental.v1.StreamWorkspaceSta" + + "tusResponse\"\0000\001\022n\n\rGetOwnerToken\022,.gitpo" + + "d.experimental.v1.GetOwnerTokenRequest\032-" + + ".gitpod.experimental.v1.GetOwnerTokenRes" + + "ponse\"\000\022\214\001\n\027CreateAndStartWorkspace\0226.gi" + + "tpod.experimental.v1.CreateAndStartWorks" + + "paceRequest\0327.gitpod.experimental.v1.Cre" + + "ateAndStartWorkspaceResponse\"\000\022q\n\016StartW" + + "orkspace\022-.gitpod.experimental.v1.StartW" + + "orkspaceRequest\032..gitpod.experimental.v1" + + ".StartWorkspaceResponse\"\000\022n\n\rStopWorkspa" + + "ce\022,.gitpod.experimental.v1.StopWorkspac" + + "eRequest\032-.gitpod.experimental.v1.StopWo" + + "rkspaceResponse\"\000\022t\n\017DeleteWorkspace\022..g" + + "itpod.experimental.v1.DeleteWorkspaceReq" + + "uest\032/.gitpod.experimental.v1.DeleteWork" + + "spaceResponse\"\000\022e\n\nUpdatePort\022).gitpod.e" + + "xperimental.v1.UpdatePortRequest\032*.gitpo" + + "d.experimental.v1.UpdatePortResponse\"\000\022\203" + + "\001\n\024ListWorkspaceClasses\0223.gitpod.experim" + + "ental.v1.ListWorkspaceClassesRequest\0324.g" + + "itpod.experimental.v1.ListWorkspaceClass" + + "esResponse\"\000\022\217\001\n\030GetDefaultWorkspaceImag" + + "e\0227.gitpod.experimental.v1.GetDefaultWor" + + "kspaceImageRequest\0328.gitpod.experimental" + + ".v1.GetDefaultWorkspaceImageResponse\"\000Bk" + + "\n#io.gitpod.publicapi.experimental.v1ZDg" + + "ithub.com/gitpod-io/gitpod/components/pu" + + "blic-api/go/experimental/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_experimental_v1_ListWorkspacesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_experimental_v1_ListWorkspacesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListWorkspacesRequest_descriptor, + new java.lang.String[] { "Pagination", "FieldMask", "OrganizationId", }); + internal_static_gitpod_experimental_v1_ListWorkspacesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_experimental_v1_ListWorkspacesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListWorkspacesResponse_descriptor, + new java.lang.String[] { "NextPageToken", "Result", }); + internal_static_gitpod_experimental_v1_GetWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_experimental_v1_GetWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetWorkspaceRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_GetWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_experimental_v1_GetWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetWorkspaceResponse_descriptor, + new java.lang.String[] { "Result", }); + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_StreamWorkspaceStatusResponse_descriptor, + new java.lang.String[] { "Result", }); + internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetOwnerTokenRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetOwnerTokenResponse_descriptor, + new java.lang.String[] { "Token", }); + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceRequest_descriptor, + new java.lang.String[] { "IdempotencyToken", "ContextUrl", "PrebuildId", "StartSpec", "OrganizationId", "IgnoreRunningWorkspaceOnSameCommit", "IgnoreRunningPrebuild", "AllowUsingPreviousPrebuilds", "ForceDefaultConfig", "Source", }); + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_CreateAndStartWorkspaceResponse_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_StartWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_experimental_v1_StartWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_StartWorkspaceRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_StartWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_experimental_v1_StartWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_StartWorkspaceResponse_descriptor, + new java.lang.String[] { "Result", }); + internal_static_gitpod_experimental_v1_StopWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_experimental_v1_StopWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_StopWorkspaceRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_StopWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_experimental_v1_StopWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_StopWorkspaceResponse_descriptor, + new java.lang.String[] { "Result", }); + internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteWorkspaceRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_DeleteWorkspaceResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListWorkspaceClassesRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_ListWorkspaceClassesResponse_descriptor, + new java.lang.String[] { "Result", }); + internal_static_gitpod_experimental_v1_Workspace_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_gitpod_experimental_v1_Workspace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_Workspace_descriptor, + new java.lang.String[] { "WorkspaceId", "OwnerId", "ProjectId", "Context", "Description", "Status", }); + internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor, + new java.lang.String[] { "Instance", }); + internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor, + new java.lang.String[] { "ContextUrl", "Git", "Prebuild", "Snapshot", "Details", }); + internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor = + internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor.getNestedTypes().get(0); + internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor, + new java.lang.String[] { "Type", "Hostname", }); + internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor = + internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor.getNestedTypes().get(1); + internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor, + new java.lang.String[] { "Name", "Owner", }); + internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor = + internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor.getNestedTypes().get(2); + internal_static_gitpod_experimental_v1_WorkspaceContext_Git_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor, + new java.lang.String[] { "NormalizedContextUrl", "Repository", "Provider", }); + internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor = + internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor.getNestedTypes().get(3); + internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor, + new java.lang.String[] { "OriginalContext", "PrebuildId", }); + internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor = + internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor.getNestedTypes().get(4); + internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor, + new java.lang.String[] { "SnapshotId", }); + internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor, + new java.lang.String[] { "InstanceId", "WorkspaceId", "CreatedAt", "Status", }); + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor, + new java.lang.String[] { "StatusVersion", "Phase", "Conditions", "Message", "Url", "Admission", "Ports", "RecentFolders", "GitStatus", }); + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor = + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor.getNestedTypes().get(0); + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor, + new java.lang.String[] { "Failed", "Timeout", "FirstUserActivity", "StoppedByRequest", }); + internal_static_gitpod_experimental_v1_Port_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_gitpod_experimental_v1_Port_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_Port_descriptor, + new java.lang.String[] { "Port", "Policy", "Url", "Protocol", }); + internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_gitpod_experimental_v1_StartWorkspaceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor, + new java.lang.String[] { "WorkspaceClass", "IdeSettings", "Region", }); + internal_static_gitpod_experimental_v1_IDESettings_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_gitpod_experimental_v1_IDESettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_IDESettings_descriptor, + new java.lang.String[] { "DefaultIde", "UseLatestVersion", }); + internal_static_gitpod_experimental_v1_PortSpec_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_gitpod_experimental_v1_PortSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_PortSpec_descriptor, + new java.lang.String[] { "Port", "Policy", "Protocol", }); + internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_gitpod_experimental_v1_UpdatePortRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor, + new java.lang.String[] { "WorkspaceId", "Port", }); + internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_gitpod_experimental_v1_UpdatePortResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_experimental_v1_GitStatus_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_gitpod_experimental_v1_GitStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GitStatus_descriptor, + new java.lang.String[] { "Branch", "LatestCommit", "UncommitedFiles", "TotalUncommitedFiles", "UntrackedFiles", "TotalUntrackedFiles", "UnpushedCommits", "TotalUnpushedCommits", }); + internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_gitpod_experimental_v1_WorkspaceClass_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor, + new java.lang.String[] { "Id", "DisplayName", "Description", "IsDefault", }); + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor, + new java.lang.String[] { "Image", "Source", }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.experimental.v1.PaginationOuterClass.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/WorkspacesServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/WorkspacesServiceClient.kt new file mode 100644 index 00000000000000..f13fa4d486c14b --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/WorkspacesServiceClient.kt @@ -0,0 +1,199 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/workspaces.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.ServerOnlyStreamInterface +import com.connectrpc.StreamType + +public class WorkspacesServiceClient( + private val client: ProtocolClientInterface, +) : WorkspacesServiceClientInterface { + /** + * ListWorkspaces enumerates all workspaces belonging to the authenticated user. + */ + override suspend fun listWorkspaces(request: Workspaces.ListWorkspacesRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/ListWorkspaces", + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspacesResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetWorkspace returns a single workspace. + */ + override suspend fun getWorkspace(request: Workspaces.GetWorkspaceRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/GetWorkspace", + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.GetWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * StreamWorkspaceStatus returns workspace status once it changed. + */ + override suspend fun streamWorkspaceStatus(headers: Headers): + ServerOnlyStreamInterface + = client.serverStream( + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/StreamWorkspaceStatus", + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.StreamWorkspaceStatusResponse::class, + StreamType.SERVER, + ), + ) + + + /** + * GetOwnerToken returns an owner token. + */ + override suspend fun getOwnerToken(request: Workspaces.GetOwnerTokenRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/GetOwnerToken", + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.GetOwnerTokenResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * CreateAndStartWorkspace creates a new workspace and starts it. + */ + override suspend fun createAndStartWorkspace(request: Workspaces.CreateAndStartWorkspaceRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/CreateAndStartWorkspace", + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.CreateAndStartWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * StartWorkspace starts an existing workspace. + */ + override suspend fun startWorkspace(request: Workspaces.StartWorkspaceRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/StartWorkspace", + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.StartWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * StopWorkspace stops a running workspace (instance). + * Errors: + * NOT_FOUND: the workspace_id is unkown + * FAILED_PRECONDITION: if there's no running instance + */ + override suspend fun stopWorkspace(request: Workspaces.StopWorkspaceRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/StopWorkspace", + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.StopWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteWorkspace deletes a workspace. + * When the workspace is running, it will be stopped as well. + * Deleted workspaces cannot be started again. + */ + override suspend fun deleteWorkspace(request: Workspaces.DeleteWorkspaceRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/DeleteWorkspace", + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.DeleteWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + override suspend fun updatePort(request: Workspaces.UpdatePortRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/UpdatePort", + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.UpdatePortResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListWorkspaceClasses enumerates all available workspace classes. + */ + override suspend fun listWorkspaceClasses(request: Workspaces.ListWorkspaceClassesRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/ListWorkspaceClasses", + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.ListWorkspaceClassesResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetDefaultWorkspaceImage returns the default workspace image from different sources. + */ + override suspend fun getDefaultWorkspaceImage(request: Workspaces.GetDefaultWorkspaceImageRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.experimental.v1.WorkspacesService/GetDefaultWorkspaceImage", + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRequest::class, + io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/WorkspacesServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/WorkspacesServiceClientInterface.kt new file mode 100644 index 00000000000000..127d1ad4ec01e3 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/WorkspacesServiceClientInterface.kt @@ -0,0 +1,83 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/experimental/v1/workspaces.proto +// +package io.gitpod.publicapi.experimental.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage +import com.connectrpc.ServerOnlyStreamInterface + +public interface WorkspacesServiceClientInterface { + /** + * ListWorkspaces enumerates all workspaces belonging to the authenticated user. + */ + public suspend fun listWorkspaces(request: Workspaces.ListWorkspacesRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * GetWorkspace returns a single workspace. + */ + public suspend fun getWorkspace(request: Workspaces.GetWorkspaceRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * StreamWorkspaceStatus returns workspace status once it changed. + */ + public suspend fun streamWorkspaceStatus(headers: Headers = emptyMap()): + ServerOnlyStreamInterface + + /** + * GetOwnerToken returns an owner token. + */ + public suspend fun getOwnerToken(request: Workspaces.GetOwnerTokenRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * CreateAndStartWorkspace creates a new workspace and starts it. + */ + public suspend fun createAndStartWorkspace(request: Workspaces.CreateAndStartWorkspaceRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * StartWorkspace starts an existing workspace. + */ + public suspend fun startWorkspace(request: Workspaces.StartWorkspaceRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * StopWorkspace stops a running workspace (instance). + * Errors: + * NOT_FOUND: the workspace_id is unkown + * FAILED_PRECONDITION: if there's no running instance + */ + public suspend fun stopWorkspace(request: Workspaces.StopWorkspaceRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * DeleteWorkspace deletes a workspace. + * When the workspace is running, it will be stopped as well. + * Deleted workspaces cannot be started again. + */ + public suspend fun deleteWorkspace(request: Workspaces.DeleteWorkspaceRequest, headers: Headers = + emptyMap()): ResponseMessage + + public suspend fun updatePort(request: Workspaces.UpdatePortRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * ListWorkspaceClasses enumerates all available workspace classes. + */ + public suspend fun listWorkspaceClasses(request: Workspaces.ListWorkspaceClassesRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * GetDefaultWorkspaceImage returns the default workspace image from different sources. + */ + public suspend fun getDefaultWorkspaceImage(request: Workspaces.GetDefaultWorkspaceImageRequest, + headers: Headers = emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/AuthProviderServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/AuthProviderServiceClient.kt new file mode 100644 index 00000000000000..4327a08595fbbc --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/AuthProviderServiceClient.kt @@ -0,0 +1,118 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/authprovider.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class AuthProviderServiceClient( + private val client: ProtocolClientInterface, +) : AuthProviderServiceClientInterface { + /** + * CreateAuthProvider creates a new auth provider. + */ + override suspend fun createAuthProvider(request: Authprovider.CreateAuthProviderRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.AuthProviderService/CreateAuthProvider", + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest::class, + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetAuthProvider returns a single auth provider. + */ + override suspend fun getAuthProvider(request: Authprovider.GetAuthProviderRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.AuthProviderService/GetAuthProvider", + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest::class, + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListAuthProviders lists auth providers. + */ + override suspend fun listAuthProviders(request: Authprovider.ListAuthProvidersRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.AuthProviderService/ListAuthProviders", + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest::class, + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListAuthProviderDescriptions lists publicly available descriptions of + * authproviders. + */ + override suspend + fun listAuthProviderDescriptions(request: Authprovider.ListAuthProviderDescriptionsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.AuthProviderService/ListAuthProviderDescriptions", + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest::class, + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateAuthProvider updates an auth provider. + */ + override suspend fun updateAuthProvider(request: Authprovider.UpdateAuthProviderRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.AuthProviderService/UpdateAuthProvider", + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest::class, + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteAuthProvider deletes the specified auth provider. + */ + override suspend fun deleteAuthProvider(request: Authprovider.DeleteAuthProviderRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.AuthProviderService/DeleteAuthProvider", + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest::class, + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/AuthProviderServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/AuthProviderServiceClientInterface.kt new file mode 100644 index 00000000000000..b97650cd084bfa --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/AuthProviderServiceClientInterface.kt @@ -0,0 +1,53 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/authprovider.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface AuthProviderServiceClientInterface { + /** + * CreateAuthProvider creates a new auth provider. + */ + public suspend fun createAuthProvider(request: Authprovider.CreateAuthProviderRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * GetAuthProvider returns a single auth provider. + */ + public suspend fun getAuthProvider(request: Authprovider.GetAuthProviderRequest, headers: Headers + = emptyMap()): ResponseMessage + + /** + * ListAuthProviders lists auth providers. + */ + public suspend fun listAuthProviders(request: Authprovider.ListAuthProvidersRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * ListAuthProviderDescriptions lists publicly available descriptions of + * authproviders. + */ + public suspend + fun listAuthProviderDescriptions(request: Authprovider.ListAuthProviderDescriptionsRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * UpdateAuthProvider updates an auth provider. + */ + public suspend fun updateAuthProvider(request: Authprovider.UpdateAuthProviderRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * DeleteAuthProvider deletes the specified auth provider. + */ + public suspend fun deleteAuthProvider(request: Authprovider.DeleteAuthProviderRequest, + headers: Headers = emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Authprovider.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Authprovider.java new file mode 100644 index 00000000000000..ff1fab70e72858 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Authprovider.java @@ -0,0 +1,13577 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/authprovider.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Authprovider { + private Authprovider() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Authprovider.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code gitpod.v1.AuthProviderType} + */ + public enum AuthProviderType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * This value is not allowed.
+     * 
+ * + * AUTH_PROVIDER_TYPE_UNSPECIFIED = 0; + */ + AUTH_PROVIDER_TYPE_UNSPECIFIED(0), + /** + * AUTH_PROVIDER_TYPE_GITHUB = 1; + */ + AUTH_PROVIDER_TYPE_GITHUB(1), + /** + * AUTH_PROVIDER_TYPE_GITLAB = 2; + */ + AUTH_PROVIDER_TYPE_GITLAB(2), + /** + * AUTH_PROVIDER_TYPE_BITBUCKET = 3; + */ + AUTH_PROVIDER_TYPE_BITBUCKET(3), + /** + * AUTH_PROVIDER_TYPE_BITBUCKET_SERVER = 4; + */ + AUTH_PROVIDER_TYPE_BITBUCKET_SERVER(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + AuthProviderType.class.getName()); + } + /** + *
+     * This value is not allowed.
+     * 
+ * + * AUTH_PROVIDER_TYPE_UNSPECIFIED = 0; + */ + public static final int AUTH_PROVIDER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * AUTH_PROVIDER_TYPE_GITHUB = 1; + */ + public static final int AUTH_PROVIDER_TYPE_GITHUB_VALUE = 1; + /** + * AUTH_PROVIDER_TYPE_GITLAB = 2; + */ + public static final int AUTH_PROVIDER_TYPE_GITLAB_VALUE = 2; + /** + * AUTH_PROVIDER_TYPE_BITBUCKET = 3; + */ + public static final int AUTH_PROVIDER_TYPE_BITBUCKET_VALUE = 3; + /** + * AUTH_PROVIDER_TYPE_BITBUCKET_SERVER = 4; + */ + public static final int AUTH_PROVIDER_TYPE_BITBUCKET_SERVER_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthProviderType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AuthProviderType forNumber(int value) { + switch (value) { + case 0: return AUTH_PROVIDER_TYPE_UNSPECIFIED; + case 1: return AUTH_PROVIDER_TYPE_GITHUB; + case 2: return AUTH_PROVIDER_TYPE_GITLAB; + case 3: return AUTH_PROVIDER_TYPE_BITBUCKET; + case 4: return AUTH_PROVIDER_TYPE_BITBUCKET_SERVER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AuthProviderType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthProviderType findValueByNumber(int number) { + return AuthProviderType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.getDescriptor().getEnumTypes().get(0); + } + + private static final AuthProviderType[] VALUES = values(); + + public static AuthProviderType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AuthProviderType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.AuthProviderType) + } + + public interface CreateAuthProviderRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return Whether the ownerId field is set. + */ + boolean hasOwnerId(); + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return The ownerId. + */ + java.lang.String getOwnerId(); + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + boolean hasOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * .gitpod.v1.AuthProviderType type = 3 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * .gitpod.v1.AuthProviderType type = 3 [json_name = "type"]; + * @return The type. + */ + io.gitpod.publicapi.v1.Authprovider.AuthProviderType getType(); + + /** + * string host = 4 [json_name = "host"]; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 4 [json_name = "host"]; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + * @return Whether the oauth2Config field is set. + */ + boolean hasOauth2Config(); + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + * @return The oauth2Config. + */ + io.gitpod.publicapi.v1.Authprovider.OAuth2Config getOauth2Config(); + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + */ + io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder getOauth2ConfigOrBuilder(); + + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest.OwnerCase getOwnerCase(); + } + /** + * Protobuf type {@code gitpod.v1.CreateAuthProviderRequest} + */ + public static final class CreateAuthProviderRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateAuthProviderRequest) + CreateAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateAuthProviderRequest.class.getName()); + } + // Use CreateAuthProviderRequest.newBuilder() to construct. + private CreateAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateAuthProviderRequest() { + type_ = 0; + host_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest.class, io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest.Builder.class); + } + + private int bitField0_; + private int ownerCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object owner_; + public enum OwnerCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OWNER_ID(1), + ORGANIZATION_ID(2), + OWNER_NOT_SET(0); + private final int value; + private OwnerCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OwnerCase valueOf(int value) { + return forNumber(value); + } + + public static OwnerCase forNumber(int value) { + switch (value) { + case 1: return OWNER_ID; + case 2: return ORGANIZATION_ID; + case 0: return OWNER_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OwnerCase + getOwnerCase() { + return OwnerCase.forNumber( + ownerCase_); + } + + public static final int OWNER_ID_FIELD_NUMBER = 1; + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return Whether the ownerId field is set. + */ + public boolean hasOwnerId() { + return ownerCase_ == 1; + } + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return The ownerId. + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ""; + if (ownerCase_ == 1) { + ref = owner_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ownerCase_ == 1) { + owner_ = s; + } + return s; + } + } + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ""; + if (ownerCase_ == 1) { + ref = owner_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (ownerCase_ == 1) { + owner_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + public boolean hasOrganizationId() { + return ownerCase_ == 2; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = ""; + if (ownerCase_ == 2) { + ref = owner_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ownerCase_ == 2) { + owner_ = s; + } + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = ""; + if (ownerCase_ == 2) { + ref = owner_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (ownerCase_ == 2) { + owner_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_ = 0; + /** + * .gitpod.v1.AuthProviderType type = 3 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .gitpod.v1.AuthProviderType type = 3 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override public io.gitpod.publicapi.v1.Authprovider.AuthProviderType getType() { + io.gitpod.publicapi.v1.Authprovider.AuthProviderType result = io.gitpod.publicapi.v1.Authprovider.AuthProviderType.forNumber(type_); + return result == null ? io.gitpod.publicapi.v1.Authprovider.AuthProviderType.UNRECOGNIZED : result; + } + + public static final int HOST_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 4 [json_name = "host"]; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * string host = 4 [json_name = "host"]; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OAUTH2_CONFIG_FIELD_NUMBER = 5; + private io.gitpod.publicapi.v1.Authprovider.OAuth2Config oauth2Config_; + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + * @return Whether the oauth2Config field is set. + */ + @java.lang.Override + public boolean hasOauth2Config() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + * @return The oauth2Config. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config getOauth2Config() { + return oauth2Config_ == null ? io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance() : oauth2Config_; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder getOauth2ConfigOrBuilder() { + return oauth2Config_ == null ? io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance() : oauth2Config_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (ownerCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, owner_); + } + if (ownerCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, owner_); + } + if (type_ != io.gitpod.publicapi.v1.Authprovider.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, host_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getOauth2Config()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ownerCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, owner_); + } + if (ownerCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, owner_); + } + if (type_ != io.gitpod.publicapi.v1.Authprovider.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, host_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOauth2Config()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest other = (io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest) obj; + + if (type_ != other.type_) return false; + if (!getHost() + .equals(other.getHost())) return false; + if (hasOauth2Config() != other.hasOauth2Config()) return false; + if (hasOauth2Config()) { + if (!getOauth2Config() + .equals(other.getOauth2Config())) return false; + } + if (!getOwnerCase().equals(other.getOwnerCase())) return false; + switch (ownerCase_) { + case 1: + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + break; + case 2: + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + if (hasOauth2Config()) { + hash = (37 * hash) + OAUTH2_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOauth2Config().hashCode(); + } + switch (ownerCase_) { + case 1: + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + break; + case 2: + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateAuthProviderRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateAuthProviderRequest) + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest.class, io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getOauth2ConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + host_ = ""; + oauth2Config_ = null; + if (oauth2ConfigBuilder_ != null) { + oauth2ConfigBuilder_.dispose(); + oauth2ConfigBuilder_ = null; + } + ownerCase_ = 0; + owner_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest build() { + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest buildPartial() { + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest result = new io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.host_ = host_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.oauth2Config_ = oauth2ConfigBuilder_ == null + ? oauth2Config_ + : oauth2ConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest result) { + result.ownerCase_ = ownerCase_; + result.owner_ = this.owner_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest other) { + if (other == io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasOauth2Config()) { + mergeOauth2Config(other.getOauth2Config()); + } + switch (other.getOwnerCase()) { + case OWNER_ID: { + ownerCase_ = 1; + owner_ = other.owner_; + onChanged(); + break; + } + case ORGANIZATION_ID: { + ownerCase_ = 2; + owner_ = other.owner_; + onChanged(); + break; + } + case OWNER_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ownerCase_ = 1; + owner_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ownerCase_ = 2; + owner_ = s; + break; + } // case 18 + case 24: { + type_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getOauth2ConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int ownerCase_ = 0; + private java.lang.Object owner_; + public OwnerCase + getOwnerCase() { + return OwnerCase.forNumber( + ownerCase_); + } + + public Builder clearOwner() { + ownerCase_ = 0; + owner_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return Whether the ownerId field is set. + */ + @java.lang.Override + public boolean hasOwnerId() { + return ownerCase_ == 1; + } + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return The ownerId. + */ + @java.lang.Override + public java.lang.String getOwnerId() { + java.lang.Object ref = ""; + if (ownerCase_ == 1) { + ref = owner_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ownerCase_ == 1) { + owner_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ""; + if (ownerCase_ == 1) { + ref = owner_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (ownerCase_ == 1) { + owner_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @param value The ownerId to set. + * @return This builder for chaining. + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ownerCase_ = 1; + owner_ = value; + onChanged(); + return this; + } + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @return This builder for chaining. + */ + public Builder clearOwnerId() { + if (ownerCase_ == 1) { + ownerCase_ = 0; + owner_ = null; + onChanged(); + } + return this; + } + /** + * string owner_id = 1 [json_name = "ownerId"]; + * @param value The bytes for ownerId to set. + * @return This builder for chaining. + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ownerCase_ = 1; + owner_ = value; + onChanged(); + return this; + } + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + @java.lang.Override + public boolean hasOrganizationId() { + return ownerCase_ == 2; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = ""; + if (ownerCase_ == 2) { + ref = owner_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ownerCase_ == 2) { + owner_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = ""; + if (ownerCase_ == 2) { + ref = owner_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (ownerCase_ == 2) { + owner_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ownerCase_ = 2; + owner_ = value; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + if (ownerCase_ == 2) { + ownerCase_ = 0; + owner_ = null; + onChanged(); + } + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ownerCase_ = 2; + owner_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * .gitpod.v1.AuthProviderType type = 3 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .gitpod.v1.AuthProviderType type = 3 [json_name = "type"]; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProviderType type = 3 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderType getType() { + io.gitpod.publicapi.v1.Authprovider.AuthProviderType result = io.gitpod.publicapi.v1.Authprovider.AuthProviderType.forNumber(type_); + return result == null ? io.gitpod.publicapi.v1.Authprovider.AuthProviderType.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.AuthProviderType type = 3 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(io.gitpod.publicapi.v1.Authprovider.AuthProviderType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProviderType type = 3 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000004); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object host_ = ""; + /** + * string host = 4 [json_name = "host"]; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string host = 4 [json_name = "host"]; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string host = 4 [json_name = "host"]; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string host = 4 [json_name = "host"]; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string host = 4 [json_name = "host"]; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Authprovider.OAuth2Config oauth2Config_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.OAuth2Config, io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder, io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder> oauth2ConfigBuilder_; + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + * @return Whether the oauth2Config field is set. + */ + public boolean hasOauth2Config() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + * @return The oauth2Config. + */ + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config getOauth2Config() { + if (oauth2ConfigBuilder_ == null) { + return oauth2Config_ == null ? io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance() : oauth2Config_; + } else { + return oauth2ConfigBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + */ + public Builder setOauth2Config(io.gitpod.publicapi.v1.Authprovider.OAuth2Config value) { + if (oauth2ConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oauth2Config_ = value; + } else { + oauth2ConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + */ + public Builder setOauth2Config( + io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder builderForValue) { + if (oauth2ConfigBuilder_ == null) { + oauth2Config_ = builderForValue.build(); + } else { + oauth2ConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + */ + public Builder mergeOauth2Config(io.gitpod.publicapi.v1.Authprovider.OAuth2Config value) { + if (oauth2ConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + oauth2Config_ != null && + oauth2Config_ != io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance()) { + getOauth2ConfigBuilder().mergeFrom(value); + } else { + oauth2Config_ = value; + } + } else { + oauth2ConfigBuilder_.mergeFrom(value); + } + if (oauth2Config_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + */ + public Builder clearOauth2Config() { + bitField0_ = (bitField0_ & ~0x00000010); + oauth2Config_ = null; + if (oauth2ConfigBuilder_ != null) { + oauth2ConfigBuilder_.dispose(); + oauth2ConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + */ + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder getOauth2ConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getOauth2ConfigFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + */ + public io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder getOauth2ConfigOrBuilder() { + if (oauth2ConfigBuilder_ != null) { + return oauth2ConfigBuilder_.getMessageOrBuilder(); + } else { + return oauth2Config_ == null ? + io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance() : oauth2Config_; + } + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 5 [json_name = "oauth2Config"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.OAuth2Config, io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder, io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder> + getOauth2ConfigFieldBuilder() { + if (oauth2ConfigBuilder_ == null) { + oauth2ConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.OAuth2Config, io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder, io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder>( + getOauth2Config(), + getParentForChildren(), + isClean()); + oauth2Config_ = null; + } + return oauth2ConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateAuthProviderRequest) + private static final io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest(); + } + + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateAuthProviderResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateAuthProviderResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return Whether the authProvider field is set. + */ + boolean hasAuthProvider(); + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return The authProvider. + */ + io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProvider(); + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProviderOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateAuthProviderResponse} + */ + public static final class CreateAuthProviderResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateAuthProviderResponse) + CreateAuthProviderResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateAuthProviderResponse.class.getName()); + } + // Use CreateAuthProviderResponse.newBuilder() to construct. + private CreateAuthProviderResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateAuthProviderResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse.class, io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse.Builder.class); + } + + private int bitField0_; + public static final int AUTH_PROVIDER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Authprovider.AuthProvider authProvider_; + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return Whether the authProvider field is set. + */ + @java.lang.Override + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return The authProvider. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProvider() { + return authProvider_ == null ? io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProviderOrBuilder() { + return authProvider_ == null ? io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAuthProvider()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAuthProvider()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse other = (io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse) obj; + + if (hasAuthProvider() != other.hasAuthProvider()) return false; + if (hasAuthProvider()) { + if (!getAuthProvider() + .equals(other.getAuthProvider())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAuthProvider()) { + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateAuthProviderResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateAuthProviderResponse) + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse.class, io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getAuthProviderFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_CreateAuthProviderResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse build() { + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse buildPartial() { + io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse result = new io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProvider_ = authProviderBuilder_ == null + ? authProvider_ + : authProviderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse other) { + if (other == io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse.getDefaultInstance()) return this; + if (other.hasAuthProvider()) { + mergeAuthProvider(other.getAuthProvider()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAuthProviderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Authprovider.AuthProvider authProvider_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder> authProviderBuilder_; + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return Whether the authProvider field is set. + */ + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return The authProvider. + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProvider() { + if (authProviderBuilder_ == null) { + return authProvider_ == null ? io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } else { + return authProviderBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder setAuthProvider(io.gitpod.publicapi.v1.Authprovider.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + } else { + authProviderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder setAuthProvider( + io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder builderForValue) { + if (authProviderBuilder_ == null) { + authProvider_ = builderForValue.build(); + } else { + authProviderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder mergeAuthProvider(io.gitpod.publicapi.v1.Authprovider.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + authProvider_ != null && + authProvider_ != io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance()) { + getAuthProviderBuilder().mergeFrom(value); + } else { + authProvider_ = value; + } + } else { + authProviderBuilder_.mergeFrom(value); + } + if (authProvider_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder clearAuthProvider() { + bitField0_ = (bitField0_ & ~0x00000001); + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder getAuthProviderBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAuthProviderFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProviderOrBuilder() { + if (authProviderBuilder_ != null) { + return authProviderBuilder_.getMessageOrBuilder(); + } else { + return authProvider_ == null ? + io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder> + getAuthProviderFieldBuilder() { + if (authProviderBuilder_ == null) { + authProviderBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder>( + getAuthProvider(), + getParentForChildren(), + isClean()); + authProvider_ = null; + } + return authProviderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateAuthProviderResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateAuthProviderResponse) + private static final io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse(); + } + + public static io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAuthProviderResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.CreateAuthProviderResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetAuthProviderRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + java.lang.String getAuthProviderId(); + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + com.google.protobuf.ByteString + getAuthProviderIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetAuthProviderRequest} + */ + public static final class GetAuthProviderRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetAuthProviderRequest) + GetAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetAuthProviderRequest.class.getName()); + } + // Use GetAuthProviderRequest.newBuilder() to construct. + private GetAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetAuthProviderRequest() { + authProviderId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest.class, io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest.Builder.class); + } + + public static final int AUTH_PROVIDER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object authProviderId_ = ""; + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + @java.lang.Override + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authProviderId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authProviderId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest other = (io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest) obj; + + if (!getAuthProviderId() + .equals(other.getAuthProviderId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUTH_PROVIDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetAuthProviderRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetAuthProviderRequest) + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest.class, io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProviderId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest build() { + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest buildPartial() { + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest result = new io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProviderId_ = authProviderId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest other) { + if (other == io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest.getDefaultInstance()) return this; + if (!other.getAuthProviderId().isEmpty()) { + authProviderId_ = other.authProviderId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + authProviderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object authProviderId_ = ""; + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + public com.google.protobuf.ByteString + getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @param value The authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authProviderId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return This builder for chaining. + */ + public Builder clearAuthProviderId() { + authProviderId_ = getDefaultInstance().getAuthProviderId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @param value The bytes for authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authProviderId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetAuthProviderRequest) + private static final io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest(); + } + + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.GetAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetAuthProviderResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetAuthProviderResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return Whether the authProvider field is set. + */ + boolean hasAuthProvider(); + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return The authProvider. + */ + io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProvider(); + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProviderOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GetAuthProviderResponse} + */ + public static final class GetAuthProviderResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetAuthProviderResponse) + GetAuthProviderResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetAuthProviderResponse.class.getName()); + } + // Use GetAuthProviderResponse.newBuilder() to construct. + private GetAuthProviderResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetAuthProviderResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse.class, io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse.Builder.class); + } + + private int bitField0_; + public static final int AUTH_PROVIDER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Authprovider.AuthProvider authProvider_; + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return Whether the authProvider field is set. + */ + @java.lang.Override + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return The authProvider. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProvider() { + return authProvider_ == null ? io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProviderOrBuilder() { + return authProvider_ == null ? io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAuthProvider()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAuthProvider()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse other = (io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse) obj; + + if (hasAuthProvider() != other.hasAuthProvider()) return false; + if (hasAuthProvider()) { + if (!getAuthProvider() + .equals(other.getAuthProvider())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAuthProvider()) { + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetAuthProviderResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetAuthProviderResponse) + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse.class, io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getAuthProviderFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_GetAuthProviderResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse build() { + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse buildPartial() { + io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse result = new io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProvider_ = authProviderBuilder_ == null + ? authProvider_ + : authProviderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse other) { + if (other == io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse.getDefaultInstance()) return this; + if (other.hasAuthProvider()) { + mergeAuthProvider(other.getAuthProvider()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAuthProviderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Authprovider.AuthProvider authProvider_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder> authProviderBuilder_; + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return Whether the authProvider field is set. + */ + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return The authProvider. + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProvider() { + if (authProviderBuilder_ == null) { + return authProvider_ == null ? io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } else { + return authProviderBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder setAuthProvider(io.gitpod.publicapi.v1.Authprovider.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + } else { + authProviderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder setAuthProvider( + io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder builderForValue) { + if (authProviderBuilder_ == null) { + authProvider_ = builderForValue.build(); + } else { + authProviderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder mergeAuthProvider(io.gitpod.publicapi.v1.Authprovider.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + authProvider_ != null && + authProvider_ != io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance()) { + getAuthProviderBuilder().mergeFrom(value); + } else { + authProvider_ = value; + } + } else { + authProviderBuilder_.mergeFrom(value); + } + if (authProvider_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder clearAuthProvider() { + bitField0_ = (bitField0_ & ~0x00000001); + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder getAuthProviderBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAuthProviderFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProviderOrBuilder() { + if (authProviderBuilder_ != null) { + return authProviderBuilder_.getMessageOrBuilder(); + } else { + return authProvider_ == null ? + io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder> + getAuthProviderFieldBuilder() { + if (authProviderBuilder_ == null) { + authProviderBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder>( + getAuthProvider(), + getParentForChildren(), + isClean()); + authProvider_ = null; + } + return authProviderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetAuthProviderResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetAuthProviderResponse) + private static final io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse(); + } + + public static io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthProviderResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.GetAuthProviderResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListAuthProvidersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListAuthProvidersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + * string user_id = 2 [json_name = "userId"]; + * @return Whether the userId field is set. + */ + boolean hasUserId(); + /** + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + boolean hasOrganizationId(); + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest.IdCase getIdCase(); + } + /** + * Protobuf type {@code gitpod.v1.ListAuthProvidersRequest} + */ + public static final class ListAuthProvidersRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListAuthProvidersRequest) + ListAuthProvidersRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListAuthProvidersRequest.class.getName()); + } + // Use ListAuthProvidersRequest.newBuilder() to construct. + private ListAuthProvidersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListAuthProvidersRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest.class, io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest.Builder.class); + } + + private int bitField0_; + private int idCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object id_; + public enum IdCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_ID(2), + ORGANIZATION_ID(3), + ID_NOT_SET(0); + private final int value; + private IdCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IdCase valueOf(int value) { + return forNumber(value); + } + + public static IdCase forNumber(int value) { + switch (value) { + case 2: return USER_ID; + case 3: return ORGANIZATION_ID; + case 0: return ID_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public IdCase + getIdCase() { + return IdCase.forNumber( + idCase_); + } + + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int USER_ID_FIELD_NUMBER = 2; + /** + * string user_id = 2 [json_name = "userId"]; + * @return Whether the userId field is set. + */ + public boolean hasUserId() { + return idCase_ == 2; + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (idCase_ == 2) { + ref = id_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 2) { + id_ = s; + } + return s; + } + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 2) { + ref = id_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 2) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 3; + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + public boolean hasOrganizationId() { + return idCase_ == 3; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = ""; + if (idCase_ == 3) { + ref = id_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 3) { + id_ = s; + } + return s; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 3) { + ref = id_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 3) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (idCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, id_); + } + if (idCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, id_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (idCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_); + } + if (idCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, id_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest other = (io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getIdCase().equals(other.getIdCase())) return false; + switch (idCase_) { + case 2: + if (!getUserId() + .equals(other.getUserId())) return false; + break; + case 3: + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + switch (idCase_) { + case 2: + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + break; + case 3: + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListAuthProvidersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListAuthProvidersRequest) + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest.class, io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + idCase_ = 0; + id_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest build() { + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest buildPartial() { + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest result = new io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest result) { + result.idCase_ = idCase_; + result.id_ = this.id_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest other) { + if (other == io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + switch (other.getIdCase()) { + case USER_ID: { + idCase_ = 2; + id_ = other.id_; + onChanged(); + break; + } + case ORGANIZATION_ID: { + idCase_ = 3; + id_ = other.id_; + onChanged(); + break; + } + case ID_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + idCase_ = 2; + id_ = s; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + idCase_ = 3; + id_ = s; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int idCase_ = 0; + private java.lang.Object id_; + public IdCase + getIdCase() { + return IdCase.forNumber( + idCase_); + } + + public Builder clearId() { + idCase_ = 0; + id_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + /** + * string user_id = 2 [json_name = "userId"]; + * @return Whether the userId field is set. + */ + @java.lang.Override + public boolean hasUserId() { + return idCase_ == 2; + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (idCase_ == 2) { + ref = id_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 2) { + id_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 2) { + ref = id_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 2) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 2 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + idCase_ = 2; + id_ = value; + onChanged(); + return this; + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + if (idCase_ == 2) { + idCase_ = 0; + id_ = null; + onChanged(); + } + return this; + } + /** + * string user_id = 2 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + idCase_ = 2; + id_ = value; + onChanged(); + return this; + } + + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + @java.lang.Override + public boolean hasOrganizationId() { + return idCase_ == 3; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = ""; + if (idCase_ == 3) { + ref = id_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 3) { + id_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 3) { + ref = id_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 3) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + idCase_ = 3; + id_ = value; + onChanged(); + return this; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + if (idCase_ == 3) { + idCase_ = 0; + id_ = null; + onChanged(); + } + return this; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + idCase_ = 3; + id_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListAuthProvidersRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListAuthProvidersRequest) + private static final io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest(); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthProvidersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListAuthProvidersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListAuthProvidersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + java.util.List + getAuthProvidersList(); + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProviders(int index); + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + int getAuthProvidersCount(); + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + java.util.List + getAuthProvidersOrBuilderList(); + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProvidersOrBuilder( + int index); + + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListAuthProvidersResponse} + */ + public static final class ListAuthProvidersResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListAuthProvidersResponse) + ListAuthProvidersResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListAuthProvidersResponse.class.getName()); + } + // Use ListAuthProvidersResponse.newBuilder() to construct. + private ListAuthProvidersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListAuthProvidersResponse() { + authProviders_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse.class, io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse.Builder.class); + } + + private int bitField0_; + public static final int AUTH_PROVIDERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List authProviders_; + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + @java.lang.Override + public java.util.List getAuthProvidersList() { + return authProviders_; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + @java.lang.Override + public java.util.List + getAuthProvidersOrBuilderList() { + return authProviders_; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + @java.lang.Override + public int getAuthProvidersCount() { + return authProviders_.size(); + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProviders(int index) { + return authProviders_.get(index); + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProvidersOrBuilder( + int index) { + return authProviders_.get(index); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < authProviders_.size(); i++) { + output.writeMessage(1, authProviders_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < authProviders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, authProviders_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse other = (io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse) obj; + + if (!getAuthProvidersList() + .equals(other.getAuthProvidersList())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthProvidersCount() > 0) { + hash = (37 * hash) + AUTH_PROVIDERS_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvidersList().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListAuthProvidersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListAuthProvidersResponse) + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse.class, io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getAuthProvidersFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authProvidersBuilder_ == null) { + authProviders_ = java.util.Collections.emptyList(); + } else { + authProviders_ = null; + authProvidersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProvidersResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse build() { + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse buildPartial() { + io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse result = new io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse result) { + if (authProvidersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + authProviders_ = java.util.Collections.unmodifiableList(authProviders_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authProviders_ = authProviders_; + } else { + result.authProviders_ = authProvidersBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse other) { + if (other == io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse.getDefaultInstance()) return this; + if (authProvidersBuilder_ == null) { + if (!other.authProviders_.isEmpty()) { + if (authProviders_.isEmpty()) { + authProviders_ = other.authProviders_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthProvidersIsMutable(); + authProviders_.addAll(other.authProviders_); + } + onChanged(); + } + } else { + if (!other.authProviders_.isEmpty()) { + if (authProvidersBuilder_.isEmpty()) { + authProvidersBuilder_.dispose(); + authProvidersBuilder_ = null; + authProviders_ = other.authProviders_; + bitField0_ = (bitField0_ & ~0x00000001); + authProvidersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAuthProvidersFieldBuilder() : null; + } else { + authProvidersBuilder_.addAllMessages(other.authProviders_); + } + } + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.Authprovider.AuthProvider m = + input.readMessage( + io.gitpod.publicapi.v1.Authprovider.AuthProvider.parser(), + extensionRegistry); + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.add(m); + } else { + authProvidersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List authProviders_ = + java.util.Collections.emptyList(); + private void ensureAuthProvidersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authProviders_ = new java.util.ArrayList(authProviders_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder> authProvidersBuilder_; + + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public java.util.List getAuthProvidersList() { + if (authProvidersBuilder_ == null) { + return java.util.Collections.unmodifiableList(authProviders_); + } else { + return authProvidersBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public int getAuthProvidersCount() { + if (authProvidersBuilder_ == null) { + return authProviders_.size(); + } else { + return authProvidersBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProviders(int index) { + if (authProvidersBuilder_ == null) { + return authProviders_.get(index); + } else { + return authProvidersBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public Builder setAuthProviders( + int index, io.gitpod.publicapi.v1.Authprovider.AuthProvider value) { + if (authProvidersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProvidersIsMutable(); + authProviders_.set(index, value); + onChanged(); + } else { + authProvidersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public Builder setAuthProviders( + int index, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder builderForValue) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.set(index, builderForValue.build()); + onChanged(); + } else { + authProvidersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public Builder addAuthProviders(io.gitpod.publicapi.v1.Authprovider.AuthProvider value) { + if (authProvidersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProvidersIsMutable(); + authProviders_.add(value); + onChanged(); + } else { + authProvidersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public Builder addAuthProviders( + int index, io.gitpod.publicapi.v1.Authprovider.AuthProvider value) { + if (authProvidersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProvidersIsMutable(); + authProviders_.add(index, value); + onChanged(); + } else { + authProvidersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public Builder addAuthProviders( + io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder builderForValue) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.add(builderForValue.build()); + onChanged(); + } else { + authProvidersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public Builder addAuthProviders( + int index, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder builderForValue) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.add(index, builderForValue.build()); + onChanged(); + } else { + authProvidersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public Builder addAllAuthProviders( + java.lang.Iterable values) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, authProviders_); + onChanged(); + } else { + authProvidersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public Builder clearAuthProviders() { + if (authProvidersBuilder_ == null) { + authProviders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authProvidersBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public Builder removeAuthProviders(int index) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.remove(index); + onChanged(); + } else { + authProvidersBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder getAuthProvidersBuilder( + int index) { + return getAuthProvidersFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProvidersOrBuilder( + int index) { + if (authProvidersBuilder_ == null) { + return authProviders_.get(index); } else { + return authProvidersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public java.util.List + getAuthProvidersOrBuilderList() { + if (authProvidersBuilder_ != null) { + return authProvidersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(authProviders_); + } + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder addAuthProvidersBuilder() { + return getAuthProvidersFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder addAuthProvidersBuilder( + int index) { + return getAuthProvidersFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.AuthProvider auth_providers = 1 [json_name = "authProviders"]; + */ + public java.util.List + getAuthProvidersBuilderList() { + return getAuthProvidersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder> + getAuthProvidersFieldBuilder() { + if (authProvidersBuilder_ == null) { + authProvidersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder>( + authProviders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + authProviders_ = null; + } + return authProvidersBuilder_; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListAuthProvidersResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListAuthProvidersResponse) + private static final io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse(); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthProvidersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProvidersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListAuthProviderDescriptionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListAuthProviderDescriptionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + * string user_id = 2 [json_name = "userId"]; + * @return Whether the userId field is set. + */ + boolean hasUserId(); + /** + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + boolean hasOrganizationId(); + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest.IdCase getIdCase(); + } + /** + * Protobuf type {@code gitpod.v1.ListAuthProviderDescriptionsRequest} + */ + public static final class ListAuthProviderDescriptionsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListAuthProviderDescriptionsRequest) + ListAuthProviderDescriptionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListAuthProviderDescriptionsRequest.class.getName()); + } + // Use ListAuthProviderDescriptionsRequest.newBuilder() to construct. + private ListAuthProviderDescriptionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListAuthProviderDescriptionsRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest.class, io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest.Builder.class); + } + + private int bitField0_; + private int idCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object id_; + public enum IdCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_ID(2), + ORGANIZATION_ID(3), + ID_NOT_SET(0); + private final int value; + private IdCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IdCase valueOf(int value) { + return forNumber(value); + } + + public static IdCase forNumber(int value) { + switch (value) { + case 2: return USER_ID; + case 3: return ORGANIZATION_ID; + case 0: return ID_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public IdCase + getIdCase() { + return IdCase.forNumber( + idCase_); + } + + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int USER_ID_FIELD_NUMBER = 2; + /** + * string user_id = 2 [json_name = "userId"]; + * @return Whether the userId field is set. + */ + public boolean hasUserId() { + return idCase_ == 2; + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (idCase_ == 2) { + ref = id_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 2) { + id_ = s; + } + return s; + } + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 2) { + ref = id_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 2) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 3; + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + public boolean hasOrganizationId() { + return idCase_ == 3; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = ""; + if (idCase_ == 3) { + ref = id_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 3) { + id_ = s; + } + return s; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 3) { + ref = id_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 3) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (idCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, id_); + } + if (idCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, id_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (idCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_); + } + if (idCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, id_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest other = (io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getIdCase().equals(other.getIdCase())) return false; + switch (idCase_) { + case 2: + if (!getUserId() + .equals(other.getUserId())) return false; + break; + case 3: + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + switch (idCase_) { + case 2: + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + break; + case 3: + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListAuthProviderDescriptionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListAuthProviderDescriptionsRequest) + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest.class, io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + idCase_ = 0; + id_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest build() { + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest buildPartial() { + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest result = new io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest result) { + result.idCase_ = idCase_; + result.id_ = this.id_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest other) { + if (other == io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + switch (other.getIdCase()) { + case USER_ID: { + idCase_ = 2; + id_ = other.id_; + onChanged(); + break; + } + case ORGANIZATION_ID: { + idCase_ = 3; + id_ = other.id_; + onChanged(); + break; + } + case ID_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + idCase_ = 2; + id_ = s; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + idCase_ = 3; + id_ = s; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int idCase_ = 0; + private java.lang.Object id_; + public IdCase + getIdCase() { + return IdCase.forNumber( + idCase_); + } + + public Builder clearId() { + idCase_ = 0; + id_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + /** + * string user_id = 2 [json_name = "userId"]; + * @return Whether the userId field is set. + */ + @java.lang.Override + public boolean hasUserId() { + return idCase_ == 2; + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (idCase_ == 2) { + ref = id_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 2) { + id_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 2) { + ref = id_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 2) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 2 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + idCase_ = 2; + id_ = value; + onChanged(); + return this; + } + /** + * string user_id = 2 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + if (idCase_ == 2) { + idCase_ = 0; + id_ = null; + onChanged(); + } + return this; + } + /** + * string user_id = 2 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + idCase_ = 2; + id_ = value; + onChanged(); + return this; + } + + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + @java.lang.Override + public boolean hasOrganizationId() { + return idCase_ == 3; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = ""; + if (idCase_ == 3) { + ref = id_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 3) { + id_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 3) { + ref = id_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 3) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + idCase_ = 3; + id_ = value; + onChanged(); + return this; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + if (idCase_ == 3) { + idCase_ = 0; + id_ = null; + onChanged(); + } + return this; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + idCase_ = 3; + id_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListAuthProviderDescriptionsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListAuthProviderDescriptionsRequest) + private static final io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest(); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthProviderDescriptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListAuthProviderDescriptionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListAuthProviderDescriptionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + java.util.List + getDescriptionsList(); + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription getDescriptions(int index); + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + int getDescriptionsCount(); + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + java.util.List + getDescriptionsOrBuilderList(); + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescriptionOrBuilder getDescriptionsOrBuilder( + int index); + + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListAuthProviderDescriptionsResponse} + */ + public static final class ListAuthProviderDescriptionsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListAuthProviderDescriptionsResponse) + ListAuthProviderDescriptionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListAuthProviderDescriptionsResponse.class.getName()); + } + // Use ListAuthProviderDescriptionsResponse.newBuilder() to construct. + private ListAuthProviderDescriptionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListAuthProviderDescriptionsResponse() { + descriptions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse.class, io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse.Builder.class); + } + + private int bitField0_; + public static final int DESCRIPTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List descriptions_; + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + @java.lang.Override + public java.util.List getDescriptionsList() { + return descriptions_; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + @java.lang.Override + public java.util.List + getDescriptionsOrBuilderList() { + return descriptions_; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + @java.lang.Override + public int getDescriptionsCount() { + return descriptions_.size(); + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription getDescriptions(int index) { + return descriptions_.get(index); + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescriptionOrBuilder getDescriptionsOrBuilder( + int index) { + return descriptions_.get(index); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < descriptions_.size(); i++) { + output.writeMessage(1, descriptions_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < descriptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, descriptions_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse other = (io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse) obj; + + if (!getDescriptionsList() + .equals(other.getDescriptionsList())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDescriptionsCount() > 0) { + hash = (37 * hash) + DESCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDescriptionsList().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListAuthProviderDescriptionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListAuthProviderDescriptionsResponse) + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse.class, io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getDescriptionsFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (descriptionsBuilder_ == null) { + descriptions_ = java.util.Collections.emptyList(); + } else { + descriptions_ = null; + descriptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse build() { + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse buildPartial() { + io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse result = new io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse result) { + if (descriptionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + descriptions_ = java.util.Collections.unmodifiableList(descriptions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.descriptions_ = descriptions_; + } else { + result.descriptions_ = descriptionsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse other) { + if (other == io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse.getDefaultInstance()) return this; + if (descriptionsBuilder_ == null) { + if (!other.descriptions_.isEmpty()) { + if (descriptions_.isEmpty()) { + descriptions_ = other.descriptions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDescriptionsIsMutable(); + descriptions_.addAll(other.descriptions_); + } + onChanged(); + } + } else { + if (!other.descriptions_.isEmpty()) { + if (descriptionsBuilder_.isEmpty()) { + descriptionsBuilder_.dispose(); + descriptionsBuilder_ = null; + descriptions_ = other.descriptions_; + bitField0_ = (bitField0_ & ~0x00000001); + descriptionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getDescriptionsFieldBuilder() : null; + } else { + descriptionsBuilder_.addAllMessages(other.descriptions_); + } + } + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription m = + input.readMessage( + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.parser(), + extensionRegistry); + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.add(m); + } else { + descriptionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List descriptions_ = + java.util.Collections.emptyList(); + private void ensureDescriptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + descriptions_ = new java.util.ArrayList(descriptions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescriptionOrBuilder> descriptionsBuilder_; + + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public java.util.List getDescriptionsList() { + if (descriptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(descriptions_); + } else { + return descriptionsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public int getDescriptionsCount() { + if (descriptionsBuilder_ == null) { + return descriptions_.size(); + } else { + return descriptionsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription getDescriptions(int index) { + if (descriptionsBuilder_ == null) { + return descriptions_.get(index); + } else { + return descriptionsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public Builder setDescriptions( + int index, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription value) { + if (descriptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptionsIsMutable(); + descriptions_.set(index, value); + onChanged(); + } else { + descriptionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public Builder setDescriptions( + int index, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder builderForValue) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.set(index, builderForValue.build()); + onChanged(); + } else { + descriptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public Builder addDescriptions(io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription value) { + if (descriptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptionsIsMutable(); + descriptions_.add(value); + onChanged(); + } else { + descriptionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public Builder addDescriptions( + int index, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription value) { + if (descriptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptionsIsMutable(); + descriptions_.add(index, value); + onChanged(); + } else { + descriptionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public Builder addDescriptions( + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder builderForValue) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.add(builderForValue.build()); + onChanged(); + } else { + descriptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public Builder addDescriptions( + int index, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder builderForValue) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.add(index, builderForValue.build()); + onChanged(); + } else { + descriptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public Builder addAllDescriptions( + java.lang.Iterable values) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, descriptions_); + onChanged(); + } else { + descriptionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public Builder clearDescriptions() { + if (descriptionsBuilder_ == null) { + descriptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + descriptionsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public Builder removeDescriptions(int index) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.remove(index); + onChanged(); + } else { + descriptionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder getDescriptionsBuilder( + int index) { + return getDescriptionsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescriptionOrBuilder getDescriptionsOrBuilder( + int index) { + if (descriptionsBuilder_ == null) { + return descriptions_.get(index); } else { + return descriptionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public java.util.List + getDescriptionsOrBuilderList() { + if (descriptionsBuilder_ != null) { + return descriptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(descriptions_); + } + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder addDescriptionsBuilder() { + return getDescriptionsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder addDescriptionsBuilder( + int index) { + return getDescriptionsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.AuthProviderDescription descriptions = 1 [json_name = "descriptions"]; + */ + public java.util.List + getDescriptionsBuilderList() { + return getDescriptionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescriptionOrBuilder> + getDescriptionsFieldBuilder() { + if (descriptionsBuilder_ == null) { + descriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescriptionOrBuilder>( + descriptions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + descriptions_ = null; + } + return descriptionsBuilder_; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListAuthProviderDescriptionsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListAuthProviderDescriptionsResponse) + private static final io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse(); + } + + public static io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthProviderDescriptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.ListAuthProviderDescriptionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateAuthProviderRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + java.lang.String getAuthProviderId(); + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + com.google.protobuf.ByteString + getAuthProviderIdBytes(); + + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return Whether the clientId field is set. + */ + boolean hasClientId(); + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString + getClientIdBytes(); + + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return Whether the clientSecret field is set. + */ + boolean hasClientSecret(); + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString + getClientSecretBytes(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateAuthProviderRequest} + */ + public static final class UpdateAuthProviderRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateAuthProviderRequest) + UpdateAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateAuthProviderRequest.class.getName()); + } + // Use UpdateAuthProviderRequest.newBuilder() to construct. + private UpdateAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateAuthProviderRequest() { + authProviderId_ = ""; + clientId_ = ""; + clientSecret_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest.class, io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest.Builder.class); + } + + private int bitField0_; + public static final int AUTH_PROVIDER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object authProviderId_ = ""; + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + @java.lang.Override + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return Whether the clientId field is set. + */ + @java.lang.Override + public boolean hasClientId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return Whether the clientSecret field is set. + */ + @java.lang.Override + public boolean hasClientSecret() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } + } + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authProviderId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clientId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, clientSecret_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authProviderId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clientId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, clientSecret_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest other = (io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest) obj; + + if (!getAuthProviderId() + .equals(other.getAuthProviderId())) return false; + if (hasClientId() != other.hasClientId()) return false; + if (hasClientId()) { + if (!getClientId() + .equals(other.getClientId())) return false; + } + if (hasClientSecret() != other.hasClientSecret()) return false; + if (hasClientSecret()) { + if (!getClientSecret() + .equals(other.getClientSecret())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUTH_PROVIDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderId().hashCode(); + if (hasClientId()) { + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + } + if (hasClientSecret()) { + hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateAuthProviderRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateAuthProviderRequest) + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest.class, io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProviderId_ = ""; + clientId_ = ""; + clientSecret_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest build() { + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest buildPartial() { + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest result = new io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProviderId_ = authProviderId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientSecret_ = clientSecret_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest other) { + if (other == io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest.getDefaultInstance()) return this; + if (!other.getAuthProviderId().isEmpty()) { + authProviderId_ = other.authProviderId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasClientId()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasClientSecret()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + authProviderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object authProviderId_ = ""; + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + public com.google.protobuf.ByteString + getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @param value The authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authProviderId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return This builder for chaining. + */ + public Builder clearAuthProviderId() { + authProviderId_ = getDefaultInstance().getAuthProviderId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @param value The bytes for authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authProviderId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return Whether the clientId field is set. + */ + public boolean hasClientId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string client_id = 2 [json_name = "clientId"]; + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clientSecret_ = ""; + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return Whether the clientSecret field is set. + */ + public boolean hasClientSecret() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString + getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + clientSecret_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string client_secret = 3 [json_name = "clientSecret"]; + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clientSecret_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateAuthProviderRequest) + private static final io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest(); + } + + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateAuthProviderResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateAuthProviderResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return Whether the authProvider field is set. + */ + boolean hasAuthProvider(); + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return The authProvider. + */ + io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProvider(); + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProviderOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateAuthProviderResponse} + */ + public static final class UpdateAuthProviderResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateAuthProviderResponse) + UpdateAuthProviderResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateAuthProviderResponse.class.getName()); + } + // Use UpdateAuthProviderResponse.newBuilder() to construct. + private UpdateAuthProviderResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateAuthProviderResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse.class, io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse.Builder.class); + } + + private int bitField0_; + public static final int AUTH_PROVIDER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Authprovider.AuthProvider authProvider_; + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return Whether the authProvider field is set. + */ + @java.lang.Override + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return The authProvider. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProvider() { + return authProvider_ == null ? io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProviderOrBuilder() { + return authProvider_ == null ? io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAuthProvider()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAuthProvider()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse other = (io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse) obj; + + if (hasAuthProvider() != other.hasAuthProvider()) return false; + if (hasAuthProvider()) { + if (!getAuthProvider() + .equals(other.getAuthProvider())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAuthProvider()) { + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateAuthProviderResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateAuthProviderResponse) + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse.class, io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getAuthProviderFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_UpdateAuthProviderResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse build() { + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse buildPartial() { + io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse result = new io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProvider_ = authProviderBuilder_ == null + ? authProvider_ + : authProviderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse other) { + if (other == io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse.getDefaultInstance()) return this; + if (other.hasAuthProvider()) { + mergeAuthProvider(other.getAuthProvider()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAuthProviderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Authprovider.AuthProvider authProvider_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder> authProviderBuilder_; + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return Whether the authProvider field is set. + */ + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + * @return The authProvider. + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getAuthProvider() { + if (authProviderBuilder_ == null) { + return authProvider_ == null ? io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } else { + return authProviderBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder setAuthProvider(io.gitpod.publicapi.v1.Authprovider.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + } else { + authProviderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder setAuthProvider( + io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder builderForValue) { + if (authProviderBuilder_ == null) { + authProvider_ = builderForValue.build(); + } else { + authProviderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder mergeAuthProvider(io.gitpod.publicapi.v1.Authprovider.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + authProvider_ != null && + authProvider_ != io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance()) { + getAuthProviderBuilder().mergeFrom(value); + } else { + authProvider_ = value; + } + } else { + authProviderBuilder_.mergeFrom(value); + } + if (authProvider_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public Builder clearAuthProvider() { + bitField0_ = (bitField0_ & ~0x00000001); + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder getAuthProviderBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAuthProviderFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + public io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder getAuthProviderOrBuilder() { + if (authProviderBuilder_ != null) { + return authProviderBuilder_.getMessageOrBuilder(); + } else { + return authProvider_ == null ? + io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance() : authProvider_; + } + } + /** + * .gitpod.v1.AuthProvider auth_provider = 1 [json_name = "authProvider"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder> + getAuthProviderFieldBuilder() { + if (authProviderBuilder_ == null) { + authProviderBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.AuthProvider, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder, io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder>( + getAuthProvider(), + getParentForChildren(), + isClean()); + authProvider_ = null; + } + return authProviderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateAuthProviderResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateAuthProviderResponse) + private static final io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse(); + } + + public static io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAuthProviderResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.UpdateAuthProviderResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteAuthProviderRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + java.lang.String getAuthProviderId(); + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + com.google.protobuf.ByteString + getAuthProviderIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteAuthProviderRequest} + */ + public static final class DeleteAuthProviderRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteAuthProviderRequest) + DeleteAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteAuthProviderRequest.class.getName()); + } + // Use DeleteAuthProviderRequest.newBuilder() to construct. + private DeleteAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteAuthProviderRequest() { + authProviderId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest.class, io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest.Builder.class); + } + + public static final int AUTH_PROVIDER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object authProviderId_ = ""; + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + @java.lang.Override + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authProviderId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authProviderId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest other = (io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest) obj; + + if (!getAuthProviderId() + .equals(other.getAuthProviderId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUTH_PROVIDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteAuthProviderRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteAuthProviderRequest) + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest.class, io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProviderId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest build() { + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest buildPartial() { + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest result = new io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProviderId_ = authProviderId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest other) { + if (other == io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest.getDefaultInstance()) return this; + if (!other.getAuthProviderId().isEmpty()) { + authProviderId_ = other.authProviderId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + authProviderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object authProviderId_ = ""; + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + public com.google.protobuf.ByteString + getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @param value The authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authProviderId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return This builder for chaining. + */ + public Builder clearAuthProviderId() { + authProviderId_ = getDefaultInstance().getAuthProviderId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @param value The bytes for authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authProviderId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteAuthProviderRequest) + private static final io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest(); + } + + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteAuthProviderResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteAuthProviderResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteAuthProviderResponse} + */ + public static final class DeleteAuthProviderResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteAuthProviderResponse) + DeleteAuthProviderResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteAuthProviderResponse.class.getName()); + } + // Use DeleteAuthProviderResponse.newBuilder() to construct. + private DeleteAuthProviderResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteAuthProviderResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse.class, io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse other = (io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteAuthProviderResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteAuthProviderResponse) + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse.class, io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_DeleteAuthProviderResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse build() { + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse buildPartial() { + io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse result = new io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse other) { + if (other == io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteAuthProviderResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteAuthProviderResponse) + private static final io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse(); + } + + public static io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthProviderResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.DeleteAuthProviderResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthProviderDescriptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.AuthProviderDescription) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The type. + */ + io.gitpod.publicapi.v1.Authprovider.AuthProviderType getType(); + + /** + * string host = 5 [json_name = "host"]; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 5 [json_name = "host"]; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + * string icon = 6 [json_name = "icon"]; + * @return The icon. + */ + java.lang.String getIcon(); + /** + * string icon = 6 [json_name = "icon"]; + * @return The bytes for icon. + */ + com.google.protobuf.ByteString + getIconBytes(); + + /** + * string description = 7 [json_name = "description"]; + * @return The description. + */ + java.lang.String getDescription(); + /** + * string description = 7 [json_name = "description"]; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + * Protobuf type {@code gitpod.v1.AuthProviderDescription} + */ + public static final class AuthProviderDescription extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.AuthProviderDescription) + AuthProviderDescriptionOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + AuthProviderDescription.class.getName()); + } + // Use AuthProviderDescription.newBuilder() to construct. + private AuthProviderDescription(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private AuthProviderDescription() { + id_ = ""; + type_ = 0; + host_ = ""; + icon_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProviderDescription_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProviderDescription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.class, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 4; + private int type_ = 0; + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override public io.gitpod.publicapi.v1.Authprovider.AuthProviderType getType() { + io.gitpod.publicapi.v1.Authprovider.AuthProviderType result = io.gitpod.publicapi.v1.Authprovider.AuthProviderType.forNumber(type_); + return result == null ? io.gitpod.publicapi.v1.Authprovider.AuthProviderType.UNRECOGNIZED : result; + } + + public static final int HOST_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 5 [json_name = "host"]; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * string host = 5 [json_name = "host"]; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICON_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object icon_ = ""; + /** + * string icon = 6 [json_name = "icon"]; + * @return The icon. + */ + @java.lang.Override + public java.lang.String getIcon() { + java.lang.Object ref = icon_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + icon_ = s; + return s; + } + } + /** + * string icon = 6 [json_name = "icon"]; + * @return The bytes for icon. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIconBytes() { + java.lang.Object ref = icon_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + icon_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * string description = 7 [json_name = "description"]; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * string description = 7 [json_name = "description"]; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (type_ != io.gitpod.publicapi.v1.Authprovider.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(icon_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, icon_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (type_ != io.gitpod.publicapi.v1.Authprovider.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(icon_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, icon_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription other = (io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription) obj; + + if (!getId() + .equals(other.getId())) return false; + if (type_ != other.type_) return false; + if (!getHost() + .equals(other.getHost())) return false; + if (!getIcon() + .equals(other.getIcon())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (37 * hash) + ICON_FIELD_NUMBER; + hash = (53 * hash) + getIcon().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.AuthProviderDescription} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.AuthProviderDescription) + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescriptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProviderDescription_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProviderDescription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.class, io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + type_ = 0; + host_ = ""; + icon_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProviderDescription_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription build() { + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription buildPartial() { + io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription result = new io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.icon_ = icon_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription other) { + if (other == io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getIcon().isEmpty()) { + icon_ = other.icon_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 32: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 32 + case 42: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: { + icon_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @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; + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderType getType() { + io.gitpod.publicapi.v1.Authprovider.AuthProviderType result = io.gitpod.publicapi.v1.Authprovider.AuthProviderType.forNumber(type_); + return result == null ? io.gitpod.publicapi.v1.Authprovider.AuthProviderType.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(io.gitpod.publicapi.v1.Authprovider.AuthProviderType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object host_ = ""; + /** + * string host = 5 [json_name = "host"]; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string host = 5 [json_name = "host"]; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string host = 5 [json_name = "host"]; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string host = 5 [json_name = "host"]; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string host = 5 [json_name = "host"]; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object icon_ = ""; + /** + * string icon = 6 [json_name = "icon"]; + * @return The icon. + */ + public java.lang.String getIcon() { + java.lang.Object ref = icon_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + icon_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string icon = 6 [json_name = "icon"]; + * @return The bytes for icon. + */ + public com.google.protobuf.ByteString + getIconBytes() { + java.lang.Object ref = icon_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + icon_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string icon = 6 [json_name = "icon"]; + * @param value The icon to set. + * @return This builder for chaining. + */ + public Builder setIcon( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + icon_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string icon = 6 [json_name = "icon"]; + * @return This builder for chaining. + */ + public Builder clearIcon() { + icon_ = getDefaultInstance().getIcon(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string icon = 6 [json_name = "icon"]; + * @param value The bytes for icon to set. + * @return This builder for chaining. + */ + public Builder setIconBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + icon_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * string description = 7 [json_name = "description"]; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string description = 7 [json_name = "description"]; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string description = 7 [json_name = "description"]; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string description = 7 [json_name = "description"]; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string description = 7 [json_name = "description"]; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.AuthProviderDescription) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.AuthProviderDescription) + private static final io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription(); + } + + public static io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthProviderDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderDescription getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthProviderOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.AuthProvider) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return Whether the ownerId field is set. + */ + boolean hasOwnerId(); + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return The ownerId. + */ + java.lang.String getOwnerId(); + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + boolean hasOrganizationId(); + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The type. + */ + io.gitpod.publicapi.v1.Authprovider.AuthProviderType getType(); + + /** + * string host = 5 [json_name = "host"]; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 5 [json_name = "host"]; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + * string icon = 6 [json_name = "icon"]; + * @return The icon. + */ + java.lang.String getIcon(); + /** + * string icon = 6 [json_name = "icon"]; + * @return The bytes for icon. + */ + com.google.protobuf.ByteString + getIconBytes(); + + /** + * string description = 7 [json_name = "description"]; + * @return The description. + */ + java.lang.String getDescription(); + /** + * string description = 7 [json_name = "description"]; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + * string settings_url = 8 [json_name = "settingsUrl"]; + * @return The settingsUrl. + */ + java.lang.String getSettingsUrl(); + /** + * string settings_url = 8 [json_name = "settingsUrl"]; + * @return The bytes for settingsUrl. + */ + com.google.protobuf.ByteString + getSettingsUrlBytes(); + + /** + * bool verified = 9 [json_name = "verified"]; + * @return The verified. + */ + boolean getVerified(); + + /** + * bool enable_login = 10 [json_name = "enableLogin"]; + * @return The enableLogin. + */ + boolean getEnableLogin(); + + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + java.util.List + getScopesList(); + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @return The count of scopes. + */ + int getScopesCount(); + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString + getScopesBytes(int index); + + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + * @return Whether the oauth2Config field is set. + */ + boolean hasOauth2Config(); + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + * @return The oauth2Config. + */ + io.gitpod.publicapi.v1.Authprovider.OAuth2Config getOauth2Config(); + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + */ + io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder getOauth2ConfigOrBuilder(); + + io.gitpod.publicapi.v1.Authprovider.AuthProvider.OwnerCase getOwnerCase(); + } + /** + * Protobuf type {@code gitpod.v1.AuthProvider} + */ + public static final class AuthProvider extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.AuthProvider) + AuthProviderOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + AuthProvider.class.getName()); + } + // Use AuthProvider.newBuilder() to construct. + private AuthProvider(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private AuthProvider() { + id_ = ""; + type_ = 0; + host_ = ""; + icon_ = ""; + description_ = ""; + settingsUrl_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.AuthProvider.class, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder.class); + } + + private int bitField0_; + private int ownerCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object owner_; + public enum OwnerCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OWNER_ID(2), + ORGANIZATION_ID(3), + OWNER_NOT_SET(0); + private final int value; + private OwnerCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OwnerCase valueOf(int value) { + return forNumber(value); + } + + public static OwnerCase forNumber(int value) { + switch (value) { + case 2: return OWNER_ID; + case 3: return ORGANIZATION_ID; + case 0: return OWNER_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OwnerCase + getOwnerCase() { + return OwnerCase.forNumber( + ownerCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_ID_FIELD_NUMBER = 2; + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return Whether the ownerId field is set. + */ + public boolean hasOwnerId() { + return ownerCase_ == 2; + } + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return The ownerId. + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ""; + if (ownerCase_ == 2) { + ref = owner_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ownerCase_ == 2) { + owner_ = s; + } + return s; + } + } + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ""; + if (ownerCase_ == 2) { + ref = owner_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (ownerCase_ == 2) { + owner_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 3; + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + public boolean hasOrganizationId() { + return ownerCase_ == 3; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = ""; + if (ownerCase_ == 3) { + ref = owner_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ownerCase_ == 3) { + owner_ = s; + } + return s; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = ""; + if (ownerCase_ == 3) { + ref = owner_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (ownerCase_ == 3) { + owner_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 4; + private int type_ = 0; + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override public io.gitpod.publicapi.v1.Authprovider.AuthProviderType getType() { + io.gitpod.publicapi.v1.Authprovider.AuthProviderType result = io.gitpod.publicapi.v1.Authprovider.AuthProviderType.forNumber(type_); + return result == null ? io.gitpod.publicapi.v1.Authprovider.AuthProviderType.UNRECOGNIZED : result; + } + + public static final int HOST_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 5 [json_name = "host"]; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * string host = 5 [json_name = "host"]; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICON_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object icon_ = ""; + /** + * string icon = 6 [json_name = "icon"]; + * @return The icon. + */ + @java.lang.Override + public java.lang.String getIcon() { + java.lang.Object ref = icon_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + icon_ = s; + return s; + } + } + /** + * string icon = 6 [json_name = "icon"]; + * @return The bytes for icon. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIconBytes() { + java.lang.Object ref = icon_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + icon_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * string description = 7 [json_name = "description"]; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * string description = 7 [json_name = "description"]; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SETTINGS_URL_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object settingsUrl_ = ""; + /** + * string settings_url = 8 [json_name = "settingsUrl"]; + * @return The settingsUrl. + */ + @java.lang.Override + public java.lang.String getSettingsUrl() { + java.lang.Object ref = settingsUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + settingsUrl_ = s; + return s; + } + } + /** + * string settings_url = 8 [json_name = "settingsUrl"]; + * @return The bytes for settingsUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSettingsUrlBytes() { + java.lang.Object ref = settingsUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + settingsUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERIFIED_FIELD_NUMBER = 9; + private boolean verified_ = false; + /** + * bool verified = 9 [json_name = "verified"]; + * @return The verified. + */ + @java.lang.Override + public boolean getVerified() { + return verified_; + } + + public static final int ENABLE_LOGIN_FIELD_NUMBER = 10; + private boolean enableLogin_ = false; + /** + * bool enable_login = 10 [json_name = "enableLogin"]; + * @return The enableLogin. + */ + @java.lang.Override + public boolean getEnableLogin() { + return enableLogin_; + } + + public static final int SCOPES_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int OAUTH2_CONFIG_FIELD_NUMBER = 12; + private io.gitpod.publicapi.v1.Authprovider.OAuth2Config oauth2Config_; + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + * @return Whether the oauth2Config field is set. + */ + @java.lang.Override + public boolean hasOauth2Config() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + * @return The oauth2Config. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config getOauth2Config() { + return oauth2Config_ == null ? io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance() : oauth2Config_; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder getOauth2ConfigOrBuilder() { + return oauth2Config_ == null ? io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance() : oauth2Config_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (ownerCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, owner_); + } + if (ownerCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, owner_); + } + if (type_ != io.gitpod.publicapi.v1.Authprovider.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(icon_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, icon_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(settingsUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, settingsUrl_); + } + if (verified_ != false) { + output.writeBool(9, verified_); + } + if (enableLogin_ != false) { + output.writeBool(10, enableLogin_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, scopes_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(12, getOauth2Config()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (ownerCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, owner_); + } + if (ownerCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, owner_); + } + if (type_ != io.gitpod.publicapi.v1.Authprovider.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(icon_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, icon_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(settingsUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, settingsUrl_); + } + if (verified_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, verified_); + } + if (enableLogin_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, enableLogin_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getOauth2Config()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.AuthProvider)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.AuthProvider other = (io.gitpod.publicapi.v1.Authprovider.AuthProvider) obj; + + if (!getId() + .equals(other.getId())) return false; + if (type_ != other.type_) return false; + if (!getHost() + .equals(other.getHost())) return false; + if (!getIcon() + .equals(other.getIcon())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getSettingsUrl() + .equals(other.getSettingsUrl())) return false; + if (getVerified() + != other.getVerified()) return false; + if (getEnableLogin() + != other.getEnableLogin()) return false; + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (hasOauth2Config() != other.hasOauth2Config()) return false; + if (hasOauth2Config()) { + if (!getOauth2Config() + .equals(other.getOauth2Config())) return false; + } + if (!getOwnerCase().equals(other.getOwnerCase())) return false; + switch (ownerCase_) { + case 2: + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + break; + case 3: + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (37 * hash) + ICON_FIELD_NUMBER; + hash = (53 * hash) + getIcon().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SETTINGS_URL_FIELD_NUMBER; + hash = (53 * hash) + getSettingsUrl().hashCode(); + hash = (37 * hash) + VERIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerified()); + hash = (37 * hash) + ENABLE_LOGIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableLogin()); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + if (hasOauth2Config()) { + hash = (37 * hash) + OAUTH2_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOauth2Config().hashCode(); + } + switch (ownerCase_) { + case 2: + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + break; + case 3: + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.AuthProvider prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.AuthProvider} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.AuthProvider) + io.gitpod.publicapi.v1.Authprovider.AuthProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.AuthProvider.class, io.gitpod.publicapi.v1.Authprovider.AuthProvider.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.AuthProvider.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getOauth2ConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + type_ = 0; + host_ = ""; + icon_ = ""; + description_ = ""; + settingsUrl_ = ""; + verified_ = false; + enableLogin_ = false; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + oauth2Config_ = null; + if (oauth2ConfigBuilder_ != null) { + oauth2ConfigBuilder_.dispose(); + oauth2ConfigBuilder_ = null; + } + ownerCase_ = 0; + owner_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_AuthProvider_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProvider build() { + io.gitpod.publicapi.v1.Authprovider.AuthProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProvider buildPartial() { + io.gitpod.publicapi.v1.Authprovider.AuthProvider result = new io.gitpod.publicapi.v1.Authprovider.AuthProvider(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.AuthProvider result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.icon_ = icon_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.settingsUrl_ = settingsUrl_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.verified_ = verified_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.enableLogin_ = enableLogin_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000800) != 0)) { + result.oauth2Config_ = oauth2ConfigBuilder_ == null + ? oauth2Config_ + : oauth2ConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.v1.Authprovider.AuthProvider result) { + result.ownerCase_ = ownerCase_; + result.owner_ = this.owner_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.AuthProvider) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.AuthProvider)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.AuthProvider other) { + if (other == io.gitpod.publicapi.v1.Authprovider.AuthProvider.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getIcon().isEmpty()) { + icon_ = other.icon_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getSettingsUrl().isEmpty()) { + settingsUrl_ = other.settingsUrl_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.getVerified() != false) { + setVerified(other.getVerified()); + } + if (other.getEnableLogin() != false) { + setEnableLogin(other.getEnableLogin()); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000400; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (other.hasOauth2Config()) { + mergeOauth2Config(other.getOauth2Config()); + } + switch (other.getOwnerCase()) { + case OWNER_ID: { + ownerCase_ = 2; + owner_ = other.owner_; + onChanged(); + break; + } + case ORGANIZATION_ID: { + ownerCase_ = 3; + owner_ = other.owner_; + onChanged(); + break; + } + case OWNER_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ownerCase_ = 2; + owner_ = s; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ownerCase_ = 3; + owner_ = s; + break; + } // case 26 + case 32: { + type_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + icon_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + settingsUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + verified_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + enableLogin_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 90 + case 98: { + input.readMessage( + getOauth2ConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int ownerCase_ = 0; + private java.lang.Object owner_; + public OwnerCase + getOwnerCase() { + return OwnerCase.forNumber( + ownerCase_); + } + + public Builder clearOwner() { + ownerCase_ = 0; + owner_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return Whether the ownerId field is set. + */ + @java.lang.Override + public boolean hasOwnerId() { + return ownerCase_ == 2; + } + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return The ownerId. + */ + @java.lang.Override + public java.lang.String getOwnerId() { + java.lang.Object ref = ""; + if (ownerCase_ == 2) { + ref = owner_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ownerCase_ == 2) { + owner_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ""; + if (ownerCase_ == 2) { + ref = owner_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (ownerCase_ == 2) { + owner_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @param value The ownerId to set. + * @return This builder for chaining. + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ownerCase_ = 2; + owner_ = value; + onChanged(); + return this; + } + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @return This builder for chaining. + */ + public Builder clearOwnerId() { + if (ownerCase_ == 2) { + ownerCase_ = 0; + owner_ = null; + onChanged(); + } + return this; + } + /** + * string owner_id = 2 [json_name = "ownerId"]; + * @param value The bytes for ownerId to set. + * @return This builder for chaining. + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ownerCase_ = 2; + owner_ = value; + onChanged(); + return this; + } + + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + @java.lang.Override + public boolean hasOrganizationId() { + return ownerCase_ == 3; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = ""; + if (ownerCase_ == 3) { + ref = owner_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ownerCase_ == 3) { + owner_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = ""; + if (ownerCase_ == 3) { + ref = owner_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (ownerCase_ == 3) { + owner_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ownerCase_ = 3; + owner_ = value; + onChanged(); + return this; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + if (ownerCase_ == 3) { + ownerCase_ = 0; + owner_ = null; + onChanged(); + } + return this; + } + /** + * string organization_id = 3 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ownerCase_ = 3; + owner_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProviderType getType() { + io.gitpod.publicapi.v1.Authprovider.AuthProviderType result = io.gitpod.publicapi.v1.Authprovider.AuthProviderType.forNumber(type_); + return result == null ? io.gitpod.publicapi.v1.Authprovider.AuthProviderType.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(io.gitpod.publicapi.v1.Authprovider.AuthProviderType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.AuthProviderType type = 4 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000008); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object host_ = ""; + /** + * string host = 5 [json_name = "host"]; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string host = 5 [json_name = "host"]; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string host = 5 [json_name = "host"]; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string host = 5 [json_name = "host"]; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string host = 5 [json_name = "host"]; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object icon_ = ""; + /** + * string icon = 6 [json_name = "icon"]; + * @return The icon. + */ + public java.lang.String getIcon() { + java.lang.Object ref = icon_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + icon_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string icon = 6 [json_name = "icon"]; + * @return The bytes for icon. + */ + public com.google.protobuf.ByteString + getIconBytes() { + java.lang.Object ref = icon_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + icon_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string icon = 6 [json_name = "icon"]; + * @param value The icon to set. + * @return This builder for chaining. + */ + public Builder setIcon( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + icon_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string icon = 6 [json_name = "icon"]; + * @return This builder for chaining. + */ + public Builder clearIcon() { + icon_ = getDefaultInstance().getIcon(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string icon = 6 [json_name = "icon"]; + * @param value The bytes for icon to set. + * @return This builder for chaining. + */ + public Builder setIconBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + icon_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * string description = 7 [json_name = "description"]; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string description = 7 [json_name = "description"]; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string description = 7 [json_name = "description"]; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string description = 7 [json_name = "description"]; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string description = 7 [json_name = "description"]; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object settingsUrl_ = ""; + /** + * string settings_url = 8 [json_name = "settingsUrl"]; + * @return The settingsUrl. + */ + public java.lang.String getSettingsUrl() { + java.lang.Object ref = settingsUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + settingsUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string settings_url = 8 [json_name = "settingsUrl"]; + * @return The bytes for settingsUrl. + */ + public com.google.protobuf.ByteString + getSettingsUrlBytes() { + java.lang.Object ref = settingsUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + settingsUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string settings_url = 8 [json_name = "settingsUrl"]; + * @param value The settingsUrl to set. + * @return This builder for chaining. + */ + public Builder setSettingsUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + settingsUrl_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * string settings_url = 8 [json_name = "settingsUrl"]; + * @return This builder for chaining. + */ + public Builder clearSettingsUrl() { + settingsUrl_ = getDefaultInstance().getSettingsUrl(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * string settings_url = 8 [json_name = "settingsUrl"]; + * @param value The bytes for settingsUrl to set. + * @return This builder for chaining. + */ + public Builder setSettingsUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + settingsUrl_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private boolean verified_ ; + /** + * bool verified = 9 [json_name = "verified"]; + * @return The verified. + */ + @java.lang.Override + public boolean getVerified() { + return verified_; + } + /** + * bool verified = 9 [json_name = "verified"]; + * @param value The verified to set. + * @return This builder for chaining. + */ + public Builder setVerified(boolean value) { + + verified_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * bool verified = 9 [json_name = "verified"]; + * @return This builder for chaining. + */ + public Builder clearVerified() { + bitField0_ = (bitField0_ & ~0x00000100); + verified_ = false; + onChanged(); + return this; + } + + private boolean enableLogin_ ; + /** + * bool enable_login = 10 [json_name = "enableLogin"]; + * @return The enableLogin. + */ + @java.lang.Override + public boolean getEnableLogin() { + return enableLogin_; + } + /** + * bool enable_login = 10 [json_name = "enableLogin"]; + * @param value The enableLogin to set. + * @return This builder for chaining. + */ + public Builder setEnableLogin(boolean value) { + + enableLogin_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * bool enable_login = 10 [json_name = "enableLogin"]; + * @return This builder for chaining. + */ + public Builder clearEnableLogin() { + bitField0_ = (bitField0_ & ~0x00000200); + enableLogin_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000400; + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes( + java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scopes_); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400);; + onChanged(); + return this; + } + /** + * repeated string scopes = 11 [json_name = "scopes"]; + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Authprovider.OAuth2Config oauth2Config_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.OAuth2Config, io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder, io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder> oauth2ConfigBuilder_; + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + * @return Whether the oauth2Config field is set. + */ + public boolean hasOauth2Config() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + * @return The oauth2Config. + */ + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config getOauth2Config() { + if (oauth2ConfigBuilder_ == null) { + return oauth2Config_ == null ? io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance() : oauth2Config_; + } else { + return oauth2ConfigBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + */ + public Builder setOauth2Config(io.gitpod.publicapi.v1.Authprovider.OAuth2Config value) { + if (oauth2ConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oauth2Config_ = value; + } else { + oauth2ConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + */ + public Builder setOauth2Config( + io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder builderForValue) { + if (oauth2ConfigBuilder_ == null) { + oauth2Config_ = builderForValue.build(); + } else { + oauth2ConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + */ + public Builder mergeOauth2Config(io.gitpod.publicapi.v1.Authprovider.OAuth2Config value) { + if (oauth2ConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + oauth2Config_ != null && + oauth2Config_ != io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance()) { + getOauth2ConfigBuilder().mergeFrom(value); + } else { + oauth2Config_ = value; + } + } else { + oauth2ConfigBuilder_.mergeFrom(value); + } + if (oauth2Config_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + */ + public Builder clearOauth2Config() { + bitField0_ = (bitField0_ & ~0x00000800); + oauth2Config_ = null; + if (oauth2ConfigBuilder_ != null) { + oauth2ConfigBuilder_.dispose(); + oauth2ConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + */ + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder getOauth2ConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getOauth2ConfigFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + */ + public io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder getOauth2ConfigOrBuilder() { + if (oauth2ConfigBuilder_ != null) { + return oauth2ConfigBuilder_.getMessageOrBuilder(); + } else { + return oauth2Config_ == null ? + io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance() : oauth2Config_; + } + } + /** + * .gitpod.v1.OAuth2Config oauth2_config = 12 [json_name = "oauth2Config"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.OAuth2Config, io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder, io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder> + getOauth2ConfigFieldBuilder() { + if (oauth2ConfigBuilder_ == null) { + oauth2ConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Authprovider.OAuth2Config, io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder, io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder>( + getOauth2Config(), + getParentForChildren(), + isClean()); + oauth2Config_ = null; + } + return oauth2ConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.AuthProvider) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.AuthProvider) + private static final io.gitpod.publicapi.v1.Authprovider.AuthProvider DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.AuthProvider(); + } + + public static io.gitpod.publicapi.v1.Authprovider.AuthProvider getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.AuthProvider getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OAuth2ConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.OAuth2Config) + com.google.protobuf.MessageOrBuilder { + + /** + * string client_id = 1 [json_name = "clientId"]; + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * string client_id = 1 [json_name = "clientId"]; + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString + getClientIdBytes(); + + /** + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + /** + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString + getClientSecretBytes(); + } + /** + * Protobuf type {@code gitpod.v1.OAuth2Config} + */ + public static final class OAuth2Config extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.OAuth2Config) + OAuth2ConfigOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OAuth2Config.class.getName()); + } + // Use OAuth2Config.newBuilder() to construct. + private OAuth2Config(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private OAuth2Config() { + clientId_ = ""; + clientSecret_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_OAuth2Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_OAuth2Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.OAuth2Config.class, io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder.class); + } + + public static final int CLIENT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + /** + * string client_id = 1 [json_name = "clientId"]; + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + * string client_id = 1 [json_name = "clientId"]; + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + /** + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } + } + /** + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecret_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clientSecret_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecret_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clientSecret_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Authprovider.OAuth2Config)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Authprovider.OAuth2Config other = (io.gitpod.publicapi.v1.Authprovider.OAuth2Config) obj; + + if (!getClientId() + .equals(other.getClientId())) return false; + if (!getClientSecret() + .equals(other.getClientSecret())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Authprovider.OAuth2Config prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.OAuth2Config} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.OAuth2Config) + io.gitpod.publicapi.v1.Authprovider.OAuth2ConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_OAuth2Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_OAuth2Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Authprovider.OAuth2Config.class, io.gitpod.publicapi.v1.Authprovider.OAuth2Config.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Authprovider.OAuth2Config.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientId_ = ""; + clientSecret_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Authprovider.internal_static_gitpod_v1_OAuth2Config_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config build() { + io.gitpod.publicapi.v1.Authprovider.OAuth2Config result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config buildPartial() { + io.gitpod.publicapi.v1.Authprovider.OAuth2Config result = new io.gitpod.publicapi.v1.Authprovider.OAuth2Config(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Authprovider.OAuth2Config result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientSecret_ = clientSecret_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Authprovider.OAuth2Config) { + return mergeFrom((io.gitpod.publicapi.v1.Authprovider.OAuth2Config)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Authprovider.OAuth2Config other) { + if (other == io.gitpod.publicapi.v1.Authprovider.OAuth2Config.getDefaultInstance()) return this; + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientSecret().isEmpty()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object clientId_ = ""; + /** + * string client_id = 1 [json_name = "clientId"]; + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string client_id = 1 [json_name = "clientId"]; + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string client_id = 1 [json_name = "clientId"]; + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + clientId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string client_id = 1 [json_name = "clientId"]; + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string client_id = 1 [json_name = "clientId"]; + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clientSecret_ = ""; + /** + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string client_secret = 2 [json_name = "clientSecret"]; + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString + getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string client_secret = 2 [json_name = "clientSecret"]; + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + clientSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string client_secret = 2 [json_name = "clientSecret"]; + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string client_secret = 2 [json_name = "clientSecret"]; + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clientSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.OAuth2Config) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.OAuth2Config) + private static final io.gitpod.publicapi.v1.Authprovider.OAuth2Config DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Authprovider.OAuth2Config(); + } + + public static io.gitpod.publicapi.v1.Authprovider.OAuth2Config getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuth2Config parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Authprovider.OAuth2Config getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateAuthProviderRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateAuthProviderRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateAuthProviderResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateAuthProviderResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetAuthProviderRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetAuthProviderRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetAuthProviderResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetAuthProviderResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListAuthProvidersRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListAuthProvidersRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListAuthProvidersResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListAuthProvidersResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateAuthProviderRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateAuthProviderRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateAuthProviderResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateAuthProviderResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteAuthProviderRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteAuthProviderRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteAuthProviderResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteAuthProviderResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_AuthProviderDescription_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_AuthProviderDescription_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_AuthProvider_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_AuthProvider_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_OAuth2Config_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_OAuth2Config_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034gitpod/v1/authprovider.proto\022\tgitpod.v" + + "1\032\032gitpod/v1/pagination.proto\"\357\001\n\031Create" + + "AuthProviderRequest\022\033\n\010owner_id\030\001 \001(\tH\000R" + + "\007ownerId\022)\n\017organization_id\030\002 \001(\tH\000R\016org" + + "anizationId\022/\n\004type\030\003 \001(\0162\033.gitpod.v1.Au" + + "thProviderTypeR\004type\022\022\n\004host\030\004 \001(\tR\004host" + + "\022<\n\roauth2_config\030\005 \001(\0132\027.gitpod.v1.OAut" + + "h2ConfigR\014oauth2ConfigB\007\n\005owner\"Z\n\032Creat" + + "eAuthProviderResponse\022<\n\rauth_provider\030\001" + + " \001(\0132\027.gitpod.v1.AuthProviderR\014authProvi" + + "der\"B\n\026GetAuthProviderRequest\022(\n\020auth_pr" + + "ovider_id\030\001 \001(\tR\016authProviderId\"W\n\027GetAu" + + "thProviderResponse\022<\n\rauth_provider\030\001 \001(" + + "\0132\027.gitpod.v1.AuthProviderR\014authProvider" + + "\"\244\001\n\030ListAuthProvidersRequest\022<\n\npaginat" + + "ion\030\001 \001(\0132\034.gitpod.v1.PaginationRequestR" + + "\npagination\022\031\n\007user_id\030\002 \001(\tH\000R\006userId\022)" + + "\n\017organization_id\030\003 \001(\tH\000R\016organizationI" + + "dB\004\n\002id\"\232\001\n\031ListAuthProvidersResponse\022>\n" + + "\016auth_providers\030\001 \003(\0132\027.gitpod.v1.AuthPr" + + "oviderR\rauthProviders\022=\n\npagination\030\002 \001(" + + "\0132\035.gitpod.v1.PaginationResponseR\npagina" + + "tion\"\257\001\n#ListAuthProviderDescriptionsReq" + + "uest\022<\n\npagination\030\001 \001(\0132\034.gitpod.v1.Pag" + + "inationRequestR\npagination\022\031\n\007user_id\030\002 " + + "\001(\tH\000R\006userId\022)\n\017organization_id\030\003 \001(\tH\000" + + "R\016organizationIdB\004\n\002id\"\255\001\n$ListAuthProvi" + + "derDescriptionsResponse\022F\n\014descriptions\030" + + "\001 \003(\0132\".gitpod.v1.AuthProviderDescriptio" + + "nR\014descriptions\022=\n\npagination\030\002 \001(\0132\035.gi" + + "tpod.v1.PaginationResponseR\npagination\"\261" + + "\001\n\031UpdateAuthProviderRequest\022(\n\020auth_pro" + + "vider_id\030\001 \001(\tR\016authProviderId\022 \n\tclient" + + "_id\030\002 \001(\tH\000R\010clientId\210\001\001\022(\n\rclient_secre" + + "t\030\003 \001(\tH\001R\014clientSecret\210\001\001B\014\n\n_client_id" + + "B\020\n\016_client_secret\"Z\n\032UpdateAuthProvider" + + "Response\022<\n\rauth_provider\030\001 \001(\0132\027.gitpod" + + ".v1.AuthProviderR\014authProvider\"E\n\031Delete" + + "AuthProviderRequest\022(\n\020auth_provider_id\030" + + "\001 \001(\tR\016authProviderId\"\034\n\032DeleteAuthProvi" + + "derResponse\"\244\001\n\027AuthProviderDescription\022" + + "\016\n\002id\030\001 \001(\tR\002id\022/\n\004type\030\004 \001(\0162\033.gitpod.v" + + "1.AuthProviderTypeR\004type\022\022\n\004host\030\005 \001(\tR\004" + + "host\022\022\n\004icon\030\006 \001(\tR\004icon\022 \n\013description\030" + + "\007 \001(\tR\013description\"\242\003\n\014AuthProvider\022\016\n\002i" + + "d\030\001 \001(\tR\002id\022\033\n\010owner_id\030\002 \001(\tH\000R\007ownerId" + + "\022)\n\017organization_id\030\003 \001(\tH\000R\016organizatio" + + "nId\022/\n\004type\030\004 \001(\0162\033.gitpod.v1.AuthProvid" + + "erTypeR\004type\022\022\n\004host\030\005 \001(\tR\004host\022\022\n\004icon" + + "\030\006 \001(\tR\004icon\022 \n\013description\030\007 \001(\tR\013descr" + + "iption\022!\n\014settings_url\030\010 \001(\tR\013settingsUr" + + "l\022\032\n\010verified\030\t \001(\010R\010verified\022!\n\014enable_" + + "login\030\n \001(\010R\013enableLogin\022\026\n\006scopes\030\013 \003(\t" + + "R\006scopes\022<\n\roauth2_config\030\014 \001(\0132\027.gitpod" + + ".v1.OAuth2ConfigR\014oauth2ConfigB\007\n\005owner\"" + + "P\n\014OAuth2Config\022\033\n\tclient_id\030\001 \001(\tR\010clie" + + "ntId\022#\n\rclient_secret\030\002 \001(\tR\014clientSecre" + + "t*\277\001\n\020AuthProviderType\022\"\n\036AUTH_PROVIDER_" + + "TYPE_UNSPECIFIED\020\000\022\035\n\031AUTH_PROVIDER_TYPE" + + "_GITHUB\020\001\022\035\n\031AUTH_PROVIDER_TYPE_GITLAB\020\002" + + "\022 \n\034AUTH_PROVIDER_TYPE_BITBUCKET\020\003\022\'\n#AU" + + "TH_PROVIDER_TYPE_BITBUCKET_SERVER\020\0042\206\005\n\023" + + "AuthProviderService\022c\n\022CreateAuthProvide" + + "r\022$.gitpod.v1.CreateAuthProviderRequest\032" + + "%.gitpod.v1.CreateAuthProviderResponse\"\000" + + "\022Z\n\017GetAuthProvider\022!.gitpod.v1.GetAuthP" + + "roviderRequest\032\".gitpod.v1.GetAuthProvid" + + "erResponse\"\000\022`\n\021ListAuthProviders\022#.gitp" + + "od.v1.ListAuthProvidersRequest\032$.gitpod." + + "v1.ListAuthProvidersResponse\"\000\022\201\001\n\034ListA" + + "uthProviderDescriptions\022..gitpod.v1.List" + + "AuthProviderDescriptionsRequest\032/.gitpod" + + ".v1.ListAuthProviderDescriptionsResponse" + + "\"\000\022c\n\022UpdateAuthProvider\022$.gitpod.v1.Upd" + + "ateAuthProviderRequest\032%.gitpod.v1.Updat" + + "eAuthProviderResponse\"\000\022c\n\022DeleteAuthPro" + + "vider\022$.gitpod.v1.DeleteAuthProviderRequ" + + "est\032%.gitpod.v1.DeleteAuthProviderRespon" + + "se\"\000BQ\n\026io.gitpod.publicapi.v1Z7github.c" + + "om/gitpod-io/gitpod/components/public-ap" + + "i/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + }); + internal_static_gitpod_v1_CreateAuthProviderRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_CreateAuthProviderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateAuthProviderRequest_descriptor, + new java.lang.String[] { "OwnerId", "OrganizationId", "Type", "Host", "Oauth2Config", "Owner", }); + internal_static_gitpod_v1_CreateAuthProviderResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_CreateAuthProviderResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateAuthProviderResponse_descriptor, + new java.lang.String[] { "AuthProvider", }); + internal_static_gitpod_v1_GetAuthProviderRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_GetAuthProviderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetAuthProviderRequest_descriptor, + new java.lang.String[] { "AuthProviderId", }); + internal_static_gitpod_v1_GetAuthProviderResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_GetAuthProviderResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetAuthProviderResponse_descriptor, + new java.lang.String[] { "AuthProvider", }); + internal_static_gitpod_v1_ListAuthProvidersRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_ListAuthProvidersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListAuthProvidersRequest_descriptor, + new java.lang.String[] { "Pagination", "UserId", "OrganizationId", "Id", }); + internal_static_gitpod_v1_ListAuthProvidersResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_ListAuthProvidersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListAuthProvidersResponse_descriptor, + new java.lang.String[] { "AuthProviders", "Pagination", }); + internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListAuthProviderDescriptionsRequest_descriptor, + new java.lang.String[] { "Pagination", "UserId", "OrganizationId", "Id", }); + internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListAuthProviderDescriptionsResponse_descriptor, + new java.lang.String[] { "Descriptions", "Pagination", }); + internal_static_gitpod_v1_UpdateAuthProviderRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_UpdateAuthProviderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateAuthProviderRequest_descriptor, + new java.lang.String[] { "AuthProviderId", "ClientId", "ClientSecret", }); + internal_static_gitpod_v1_UpdateAuthProviderResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_UpdateAuthProviderResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateAuthProviderResponse_descriptor, + new java.lang.String[] { "AuthProvider", }); + internal_static_gitpod_v1_DeleteAuthProviderRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_DeleteAuthProviderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteAuthProviderRequest_descriptor, + new java.lang.String[] { "AuthProviderId", }); + internal_static_gitpod_v1_DeleteAuthProviderResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_v1_DeleteAuthProviderResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteAuthProviderResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_AuthProviderDescription_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_v1_AuthProviderDescription_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_AuthProviderDescription_descriptor, + new java.lang.String[] { "Id", "Type", "Host", "Icon", "Description", }); + internal_static_gitpod_v1_AuthProvider_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_v1_AuthProvider_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_AuthProvider_descriptor, + new java.lang.String[] { "Id", "OwnerId", "OrganizationId", "Type", "Host", "Icon", "Description", "SettingsUrl", "Verified", "EnableLogin", "Scopes", "Oauth2Config", "Owner", }); + internal_static_gitpod_v1_OAuth2Config_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_v1_OAuth2Config_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_OAuth2Config_descriptor, + new java.lang.String[] { "ClientId", "ClientSecret", }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationOuterClass.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationOuterClass.java new file mode 100644 index 00000000000000..4c5e222e087084 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationOuterClass.java @@ -0,0 +1,13761 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/configuration.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class ConfigurationOuterClass { + private ConfigurationOuterClass() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ConfigurationOuterClass.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code gitpod.v1.BranchMatchingStrategy} + */ + public enum BranchMatchingStrategy + implements com.google.protobuf.ProtocolMessageEnum { + /** + * BRANCH_MATCHING_STRATEGY_UNSPECIFIED = 0; + */ + BRANCH_MATCHING_STRATEGY_UNSPECIFIED(0), + /** + * BRANCH_MATCHING_STRATEGY_DEFAULT_BRANCH = 1; + */ + BRANCH_MATCHING_STRATEGY_DEFAULT_BRANCH(1), + /** + * BRANCH_MATCHING_STRATEGY_ALL_BRANCHES = 2; + */ + BRANCH_MATCHING_STRATEGY_ALL_BRANCHES(2), + /** + * BRANCH_MATCHING_STRATEGY_MATCHED_BRANCHES = 3; + */ + BRANCH_MATCHING_STRATEGY_MATCHED_BRANCHES(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + BranchMatchingStrategy.class.getName()); + } + /** + * BRANCH_MATCHING_STRATEGY_UNSPECIFIED = 0; + */ + public static final int BRANCH_MATCHING_STRATEGY_UNSPECIFIED_VALUE = 0; + /** + * BRANCH_MATCHING_STRATEGY_DEFAULT_BRANCH = 1; + */ + public static final int BRANCH_MATCHING_STRATEGY_DEFAULT_BRANCH_VALUE = 1; + /** + * BRANCH_MATCHING_STRATEGY_ALL_BRANCHES = 2; + */ + public static final int BRANCH_MATCHING_STRATEGY_ALL_BRANCHES_VALUE = 2; + /** + * BRANCH_MATCHING_STRATEGY_MATCHED_BRANCHES = 3; + */ + public static final int BRANCH_MATCHING_STRATEGY_MATCHED_BRANCHES_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BranchMatchingStrategy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BranchMatchingStrategy forNumber(int value) { + switch (value) { + case 0: return BRANCH_MATCHING_STRATEGY_UNSPECIFIED; + case 1: return BRANCH_MATCHING_STRATEGY_DEFAULT_BRANCH; + case 2: return BRANCH_MATCHING_STRATEGY_ALL_BRANCHES; + case 3: return BRANCH_MATCHING_STRATEGY_MATCHED_BRANCHES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BranchMatchingStrategy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BranchMatchingStrategy findValueByNumber(int number) { + return BranchMatchingStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final BranchMatchingStrategy[] VALUES = values(); + + public static BranchMatchingStrategy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BranchMatchingStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.BranchMatchingStrategy) + } + + public interface ConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.Configuration) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * string name = 3 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string clone_url = 4 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + java.lang.String getCloneUrl(); + /** + * string clone_url = 4 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + com.google.protobuf.ByteString + getCloneUrlBytes(); + + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + boolean hasCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return The creationTime. + */ + com.google.protobuf.Timestamp getCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder(); + + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + * @return Whether the prebuildSettings field is set. + */ + boolean hasPrebuildSettings(); + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + * @return The prebuildSettings. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getPrebuildSettings(); + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettingsOrBuilder getPrebuildSettingsOrBuilder(); + + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + * @return Whether the workspaceSettings field is set. + */ + boolean hasWorkspaceSettings(); + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + * @return The workspaceSettings. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings getWorkspaceSettings(); + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettingsOrBuilder getWorkspaceSettingsOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.Configuration} + */ + public static final class Configuration extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.Configuration) + ConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Configuration.class.getName()); + } + // Use Configuration.newBuilder() to construct. + private Configuration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Configuration() { + id_ = ""; + organizationId_ = ""; + name_ = ""; + cloneUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_Configuration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_Configuration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 3 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLONE_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object cloneUrl_ = ""; + /** + * string clone_url = 4 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + @java.lang.Override + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } + } + /** + * string clone_url = 4 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATION_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp creationTime_; + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + @java.lang.Override + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return The creationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreationTime() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + + public static final int PREBUILD_SETTINGS_FIELD_NUMBER = 6; + private io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings prebuildSettings_; + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + * @return Whether the prebuildSettings field is set. + */ + @java.lang.Override + public boolean hasPrebuildSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + * @return The prebuildSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getPrebuildSettings() { + return prebuildSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.getDefaultInstance() : prebuildSettings_; + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettingsOrBuilder getPrebuildSettingsOrBuilder() { + return prebuildSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.getDefaultInstance() : prebuildSettings_; + } + + public static final int WORKSPACE_SETTINGS_FIELD_NUMBER = 7; + private io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings workspaceSettings_; + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + * @return Whether the workspaceSettings field is set. + */ + @java.lang.Override + public boolean hasWorkspaceSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + * @return The workspaceSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings getWorkspaceSettings() { + return workspaceSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.getDefaultInstance() : workspaceSettings_; + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettingsOrBuilder getWorkspaceSettingsOrBuilder() { + return workspaceSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.getDefaultInstance() : workspaceSettings_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, cloneUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getPrebuildSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getWorkspaceSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, cloneUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getPrebuildSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getWorkspaceSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCloneUrl() + .equals(other.getCloneUrl())) return false; + if (hasCreationTime() != other.hasCreationTime()) return false; + if (hasCreationTime()) { + if (!getCreationTime() + .equals(other.getCreationTime())) return false; + } + if (hasPrebuildSettings() != other.hasPrebuildSettings()) return false; + if (hasPrebuildSettings()) { + if (!getPrebuildSettings() + .equals(other.getPrebuildSettings())) return false; + } + if (hasWorkspaceSettings() != other.hasWorkspaceSettings()) return false; + if (hasWorkspaceSettings()) { + if (!getWorkspaceSettings() + .equals(other.getWorkspaceSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CLONE_URL_FIELD_NUMBER; + hash = (53 * hash) + getCloneUrl().hashCode(); + if (hasCreationTime()) { + hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreationTime().hashCode(); + } + if (hasPrebuildSettings()) { + hash = (37 * hash) + PREBUILD_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildSettings().hashCode(); + } + if (hasWorkspaceSettings()) { + hash = (37 * hash) + WORKSPACE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.Configuration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.Configuration) + io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_Configuration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_Configuration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreationTimeFieldBuilder(); + getPrebuildSettingsFieldBuilder(); + getWorkspaceSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + organizationId_ = ""; + name_ = ""; + cloneUrl_ = ""; + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + prebuildSettings_ = null; + if (prebuildSettingsBuilder_ != null) { + prebuildSettingsBuilder_.dispose(); + prebuildSettingsBuilder_ = null; + } + workspaceSettings_ = null; + if (workspaceSettingsBuilder_ != null) { + workspaceSettingsBuilder_.dispose(); + workspaceSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_Configuration_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cloneUrl_ = cloneUrl_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.creationTime_ = creationTimeBuilder_ == null + ? creationTime_ + : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.prebuildSettings_ = prebuildSettingsBuilder_ == null + ? prebuildSettings_ + : prebuildSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.workspaceSettings_ = workspaceSettingsBuilder_ == null + ? workspaceSettings_ + : workspaceSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getCloneUrl().isEmpty()) { + cloneUrl_ = other.cloneUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); + } + if (other.hasPrebuildSettings()) { + mergePrebuildSettings(other.getPrebuildSettings()); + } + if (other.hasWorkspaceSettings()) { + mergeWorkspaceSettings(other.getWorkspaceSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + cloneUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getCreationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getPrebuildSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getWorkspaceSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 3 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 3 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string name = 3 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string name = 3 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object cloneUrl_ = ""; + /** + * string clone_url = 4 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string clone_url = 4 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string clone_url = 4 [json_name = "cloneUrl"]; + * @param value The cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cloneUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string clone_url = 4 [json_name = "cloneUrl"]; + * @return This builder for chaining. + */ + public Builder clearCloneUrl() { + cloneUrl_ = getDefaultInstance().getCloneUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string clone_url = 4 [json_name = "cloneUrl"]; + * @param value The bytes for cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cloneUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_; + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return The creationTime. + */ + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public Builder setCreationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + creationTime_ != null && + creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x00000010); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), + getParentForChildren(), + isClean()); + creationTime_ = null; + } + return creationTimeBuilder_; + } + + private io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings prebuildSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettingsOrBuilder> prebuildSettingsBuilder_; + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + * @return Whether the prebuildSettings field is set. + */ + public boolean hasPrebuildSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + * @return The prebuildSettings. + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getPrebuildSettings() { + if (prebuildSettingsBuilder_ == null) { + return prebuildSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.getDefaultInstance() : prebuildSettings_; + } else { + return prebuildSettingsBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + */ + public Builder setPrebuildSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings value) { + if (prebuildSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prebuildSettings_ = value; + } else { + prebuildSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + */ + public Builder setPrebuildSettings( + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.Builder builderForValue) { + if (prebuildSettingsBuilder_ == null) { + prebuildSettings_ = builderForValue.build(); + } else { + prebuildSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + */ + public Builder mergePrebuildSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings value) { + if (prebuildSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + prebuildSettings_ != null && + prebuildSettings_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.getDefaultInstance()) { + getPrebuildSettingsBuilder().mergeFrom(value); + } else { + prebuildSettings_ = value; + } + } else { + prebuildSettingsBuilder_.mergeFrom(value); + } + if (prebuildSettings_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + */ + public Builder clearPrebuildSettings() { + bitField0_ = (bitField0_ & ~0x00000020); + prebuildSettings_ = null; + if (prebuildSettingsBuilder_ != null) { + prebuildSettingsBuilder_.dispose(); + prebuildSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.Builder getPrebuildSettingsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getPrebuildSettingsFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettingsOrBuilder getPrebuildSettingsOrBuilder() { + if (prebuildSettingsBuilder_ != null) { + return prebuildSettingsBuilder_.getMessageOrBuilder(); + } else { + return prebuildSettings_ == null ? + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.getDefaultInstance() : prebuildSettings_; + } + } + /** + * .gitpod.v1.PrebuildSettings prebuild_settings = 6 [json_name = "prebuildSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettingsOrBuilder> + getPrebuildSettingsFieldBuilder() { + if (prebuildSettingsBuilder_ == null) { + prebuildSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettingsOrBuilder>( + getPrebuildSettings(), + getParentForChildren(), + isClean()); + prebuildSettings_ = null; + } + return prebuildSettingsBuilder_; + } + + private io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings workspaceSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettingsOrBuilder> workspaceSettingsBuilder_; + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + * @return Whether the workspaceSettings field is set. + */ + public boolean hasWorkspaceSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + * @return The workspaceSettings. + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings getWorkspaceSettings() { + if (workspaceSettingsBuilder_ == null) { + return workspaceSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.getDefaultInstance() : workspaceSettings_; + } else { + return workspaceSettingsBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + */ + public Builder setWorkspaceSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings value) { + if (workspaceSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspaceSettings_ = value; + } else { + workspaceSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + */ + public Builder setWorkspaceSettings( + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.Builder builderForValue) { + if (workspaceSettingsBuilder_ == null) { + workspaceSettings_ = builderForValue.build(); + } else { + workspaceSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + */ + public Builder mergeWorkspaceSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings value) { + if (workspaceSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + workspaceSettings_ != null && + workspaceSettings_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.getDefaultInstance()) { + getWorkspaceSettingsBuilder().mergeFrom(value); + } else { + workspaceSettings_ = value; + } + } else { + workspaceSettingsBuilder_.mergeFrom(value); + } + if (workspaceSettings_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + */ + public Builder clearWorkspaceSettings() { + bitField0_ = (bitField0_ & ~0x00000040); + workspaceSettings_ = null; + if (workspaceSettingsBuilder_ != null) { + workspaceSettingsBuilder_.dispose(); + workspaceSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.Builder getWorkspaceSettingsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getWorkspaceSettingsFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettingsOrBuilder getWorkspaceSettingsOrBuilder() { + if (workspaceSettingsBuilder_ != null) { + return workspaceSettingsBuilder_.getMessageOrBuilder(); + } else { + return workspaceSettings_ == null ? + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.getDefaultInstance() : workspaceSettings_; + } + } + /** + * .gitpod.v1.WorkspaceSettings workspace_settings = 7 [json_name = "workspaceSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettingsOrBuilder> + getWorkspaceSettingsFieldBuilder() { + if (workspaceSettingsBuilder_ == null) { + workspaceSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettingsOrBuilder>( + getWorkspaceSettings(), + getParentForChildren(), + isClean()); + workspaceSettings_ = null; + } + return workspaceSettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.Configuration) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.Configuration) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Configuration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrebuildSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.PrebuildSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * bool enabled = 1 [json_name = "enabled"]; + * @return The enabled. + */ + boolean getEnabled(); + + /** + * string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The branchMatchingPattern. + */ + java.lang.String getBranchMatchingPattern(); + /** + * string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The bytes for branchMatchingPattern. + */ + com.google.protobuf.ByteString + getBranchMatchingPatternBytes(); + + /** + * .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The enum numeric value on the wire for branchStrategy. + */ + int getBranchStrategyValue(); + /** + * .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The branchStrategy. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy getBranchStrategy(); + + /** + * int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return The prebuildInterval. + */ + int getPrebuildInterval(); + + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + } + /** + * Protobuf type {@code gitpod.v1.PrebuildSettings} + */ + public static final class PrebuildSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.PrebuildSettings) + PrebuildSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PrebuildSettings.class.getName()); + } + // Use PrebuildSettings.newBuilder() to construct. + private PrebuildSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrebuildSettings() { + branchMatchingPattern_ = ""; + branchStrategy_ = 0; + workspaceClass_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * bool enabled = 1 [json_name = "enabled"]; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int BRANCH_MATCHING_PATTERN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object branchMatchingPattern_ = ""; + /** + * string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The branchMatchingPattern. + */ + @java.lang.Override + public java.lang.String getBranchMatchingPattern() { + java.lang.Object ref = branchMatchingPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branchMatchingPattern_ = s; + return s; + } + } + /** + * string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The bytes for branchMatchingPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchMatchingPatternBytes() { + java.lang.Object ref = branchMatchingPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branchMatchingPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_STRATEGY_FIELD_NUMBER = 3; + private int branchStrategy_ = 0; + /** + * .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The enum numeric value on the wire for branchStrategy. + */ + @java.lang.Override public int getBranchStrategyValue() { + return branchStrategy_; + } + /** + * .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The branchStrategy. + */ + @java.lang.Override public io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy getBranchStrategy() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy result = io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.forNumber(branchStrategy_); + return result == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.UNRECOGNIZED : result; + } + + public static final int PREBUILD_INTERVAL_FIELD_NUMBER = 4; + private int prebuildInterval_ = 0; + /** + * int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return The prebuildInterval. + */ + @java.lang.Override + public int getPrebuildInterval() { + return prebuildInterval_; + } + + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branchMatchingPattern_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, branchMatchingPattern_); + } + if (branchStrategy_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.BRANCH_MATCHING_STRATEGY_UNSPECIFIED.getNumber()) { + output.writeEnum(3, branchStrategy_); + } + if (prebuildInterval_ != 0) { + output.writeInt32(4, prebuildInterval_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, workspaceClass_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branchMatchingPattern_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, branchMatchingPattern_); + } + if (branchStrategy_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.BRANCH_MATCHING_STRATEGY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, branchStrategy_); + } + if (prebuildInterval_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, prebuildInterval_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, workspaceClass_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getBranchMatchingPattern() + .equals(other.getBranchMatchingPattern())) return false; + if (branchStrategy_ != other.branchStrategy_) return false; + if (getPrebuildInterval() + != other.getPrebuildInterval()) return false; + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + BRANCH_MATCHING_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getBranchMatchingPattern().hashCode(); + hash = (37 * hash) + BRANCH_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + branchStrategy_; + hash = (37 * hash) + PREBUILD_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildInterval(); + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.PrebuildSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.PrebuildSettings) + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + branchMatchingPattern_ = ""; + branchStrategy_ = 0; + prebuildInterval_ = 0; + workspaceClass_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_PrebuildSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branchMatchingPattern_ = branchMatchingPattern_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.branchStrategy_ = branchStrategy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.prebuildInterval_ = prebuildInterval_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.workspaceClass_ = workspaceClass_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getBranchMatchingPattern().isEmpty()) { + branchMatchingPattern_ = other.branchMatchingPattern_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.branchStrategy_ != 0) { + setBranchStrategyValue(other.getBranchStrategyValue()); + } + if (other.getPrebuildInterval() != 0) { + setPrebuildInterval(other.getPrebuildInterval()); + } + if (!other.getWorkspaceClass().isEmpty()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + branchMatchingPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + branchStrategy_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + prebuildInterval_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + * bool enabled = 1 [json_name = "enabled"]; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * bool enabled = 1 [json_name = "enabled"]; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool enabled = 1 [json_name = "enabled"]; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object branchMatchingPattern_ = ""; + /** + * string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The branchMatchingPattern. + */ + public java.lang.String getBranchMatchingPattern() { + java.lang.Object ref = branchMatchingPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branchMatchingPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The bytes for branchMatchingPattern. + */ + public com.google.protobuf.ByteString + getBranchMatchingPatternBytes() { + java.lang.Object ref = branchMatchingPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branchMatchingPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @param value The branchMatchingPattern to set. + * @return This builder for chaining. + */ + public Builder setBranchMatchingPattern( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + branchMatchingPattern_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return This builder for chaining. + */ + public Builder clearBranchMatchingPattern() { + branchMatchingPattern_ = getDefaultInstance().getBranchMatchingPattern(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @param value The bytes for branchMatchingPattern to set. + * @return This builder for chaining. + */ + public Builder setBranchMatchingPatternBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + branchMatchingPattern_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int branchStrategy_ = 0; + /** + * .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The enum numeric value on the wire for branchStrategy. + */ + @java.lang.Override public int getBranchStrategyValue() { + return branchStrategy_; + } + /** + * .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @param value The enum numeric value on the wire for branchStrategy to set. + * @return This builder for chaining. + */ + public Builder setBranchStrategyValue(int value) { + branchStrategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The branchStrategy. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy getBranchStrategy() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy result = io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.forNumber(branchStrategy_); + return result == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @param value The branchStrategy to set. + * @return This builder for chaining. + */ + public Builder setBranchStrategy(io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + branchStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return This builder for chaining. + */ + public Builder clearBranchStrategy() { + bitField0_ = (bitField0_ & ~0x00000004); + branchStrategy_ = 0; + onChanged(); + return this; + } + + private int prebuildInterval_ ; + /** + * int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return The prebuildInterval. + */ + @java.lang.Override + public int getPrebuildInterval() { + return prebuildInterval_; + } + /** + * int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @param value The prebuildInterval to set. + * @return This builder for chaining. + */ + public Builder setPrebuildInterval(int value) { + + prebuildInterval_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildInterval() { + bitField0_ = (bitField0_ & ~0x00000008); + prebuildInterval_ = 0; + onChanged(); + return this; + } + + private java.lang.Object workspaceClass_ = ""; + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string workspace_class = 5 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.PrebuildSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.PrebuildSettings) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuildSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.PrebuildSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return A list containing the restrictedWorkspaceClasses. + */ + java.util.List + getRestrictedWorkspaceClassesList(); + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return The count of restrictedWorkspaceClasses. + */ + int getRestrictedWorkspaceClassesCount(); + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The restrictedWorkspaceClasses at the given index. + */ + java.lang.String getRestrictedWorkspaceClasses(int index); + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedWorkspaceClasses at the given index. + */ + com.google.protobuf.ByteString + getRestrictedWorkspaceClassesBytes(int index); + + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + java.util.List + getRestrictedEditorNamesList(); + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + int getRestrictedEditorNamesCount(); + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + java.lang.String getRestrictedEditorNames(int index); + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index); + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceSettings} + */ + public static final class WorkspaceSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSettings) + WorkspaceSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceSettings.class.getName()); + } + // Use WorkspaceSettings.newBuilder() to construct. + private WorkspaceSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceSettings() { + workspaceClass_ = ""; + restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_WorkspaceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_WorkspaceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.Builder.class); + } + + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESTRICTED_WORKSPACE_CLASSES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return A list containing the restrictedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedWorkspaceClassesList() { + return restrictedWorkspaceClasses_; + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return The count of restrictedWorkspaceClasses. + */ + public int getRestrictedWorkspaceClassesCount() { + return restrictedWorkspaceClasses_.size(); + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The restrictedWorkspaceClasses at the given index. + */ + public java.lang.String getRestrictedWorkspaceClasses(int index) { + return restrictedWorkspaceClasses_.get(index); + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedWorkspaceClassesBytes(int index) { + return restrictedWorkspaceClasses_.getByteString(index); + } + + public static final int RESTRICTED_EDITOR_NAMES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + return restrictedEditorNames_; + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceClass_); + } + for (int i = 0; i < restrictedWorkspaceClasses_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, restrictedWorkspaceClasses_.getRaw(i)); + } + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, restrictedEditorNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceClass_); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedWorkspaceClasses_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedWorkspaceClasses_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedWorkspaceClassesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedEditorNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedEditorNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings) obj; + + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + if (!getRestrictedWorkspaceClassesList() + .equals(other.getRestrictedWorkspaceClassesList())) return false; + if (!getRestrictedEditorNamesList() + .equals(other.getRestrictedEditorNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + if (getRestrictedWorkspaceClassesCount() > 0) { + hash = (37 * hash) + RESTRICTED_WORKSPACE_CLASSES_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedWorkspaceClassesList().hashCode(); + } + if (getRestrictedEditorNamesCount() > 0) { + hash = (37 * hash) + RESTRICTED_EDITOR_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedEditorNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceSettings) + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_WorkspaceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_WorkspaceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceClass_ = ""; + restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_WorkspaceSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceClass_ = workspaceClass_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + restrictedWorkspaceClasses_.makeImmutable(); + result.restrictedWorkspaceClasses_ = restrictedWorkspaceClasses_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + restrictedEditorNames_.makeImmutable(); + result.restrictedEditorNames_ = restrictedEditorNames_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings.getDefaultInstance()) return this; + if (!other.getWorkspaceClass().isEmpty()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.restrictedWorkspaceClasses_.isEmpty()) { + if (restrictedWorkspaceClasses_.isEmpty()) { + restrictedWorkspaceClasses_ = other.restrictedWorkspaceClasses_; + bitField0_ |= 0x00000002; + } else { + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.addAll(other.restrictedWorkspaceClasses_); + } + onChanged(); + } + if (!other.restrictedEditorNames_.isEmpty()) { + if (restrictedEditorNames_.isEmpty()) { + restrictedEditorNames_ = other.restrictedEditorNames_; + bitField0_ |= 0x00000004; + } else { + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.addAll(other.restrictedEditorNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceClass_ = ""; + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_class = 1 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedWorkspaceClassesIsMutable() { + if (!restrictedWorkspaceClasses_.isModifiable()) { + restrictedWorkspaceClasses_ = new com.google.protobuf.LazyStringArrayList(restrictedWorkspaceClasses_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return A list containing the restrictedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedWorkspaceClassesList() { + restrictedWorkspaceClasses_.makeImmutable(); + return restrictedWorkspaceClasses_; + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return The count of restrictedWorkspaceClasses. + */ + public int getRestrictedWorkspaceClassesCount() { + return restrictedWorkspaceClasses_.size(); + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The restrictedWorkspaceClasses at the given index. + */ + public java.lang.String getRestrictedWorkspaceClasses(int index) { + return restrictedWorkspaceClasses_.get(index); + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedWorkspaceClassesBytes(int index) { + return restrictedWorkspaceClasses_.getByteString(index); + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index to set the value at. + * @param value The restrictedWorkspaceClasses to set. + * @return This builder for chaining. + */ + public Builder setRestrictedWorkspaceClasses( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param value The restrictedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addRestrictedWorkspaceClasses( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param values The restrictedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedWorkspaceClasses( + java.lang.Iterable values) { + ensureRestrictedWorkspaceClassesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedWorkspaceClasses_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return This builder for chaining. + */ + public Builder clearRestrictedWorkspaceClasses() { + restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param value The bytes of the restrictedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addRestrictedWorkspaceClassesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedEditorNamesIsMutable() { + if (!restrictedEditorNames_.isModifiable()) { + restrictedEditorNames_ = new com.google.protobuf.LazyStringArrayList(restrictedEditorNames_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + restrictedEditorNames_.makeImmutable(); + return restrictedEditorNames_; + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param index The index to set the value at. + * @param value The restrictedEditorNames to set. + * @return This builder for chaining. + */ + public Builder setRestrictedEditorNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param value The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param values The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedEditorNames( + java.lang.Iterable values) { + ensureRestrictedEditorNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedEditorNames_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @return This builder for chaining. + */ + public Builder clearRestrictedEditorNames() { + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 3 [json_name = "restrictedEditorNames"]; + * @param value The bytes of the restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceSettings) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.WorkspaceSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateConfigurationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string clone_url = 3 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + java.lang.String getCloneUrl(); + /** + * string clone_url = 3 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + com.google.protobuf.ByteString + getCloneUrlBytes(); + } + /** + * Protobuf type {@code gitpod.v1.CreateConfigurationRequest} + */ + public static final class CreateConfigurationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateConfigurationRequest) + CreateConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateConfigurationRequest.class.getName()); + } + // Use CreateConfigurationRequest.newBuilder() to construct. + private CreateConfigurationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateConfigurationRequest() { + organizationId_ = ""; + name_ = ""; + cloneUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest.Builder.class); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLONE_URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object cloneUrl_ = ""; + /** + * string clone_url = 3 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + @java.lang.Override + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } + } + /** + * string clone_url = 3 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, cloneUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, cloneUrl_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCloneUrl() + .equals(other.getCloneUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CLONE_URL_FIELD_NUMBER; + hash = (53 * hash) + getCloneUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateConfigurationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateConfigurationRequest) + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + name_ = ""; + cloneUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cloneUrl_ = cloneUrl_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCloneUrl().isEmpty()) { + cloneUrl_ = other.cloneUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + cloneUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object cloneUrl_ = ""; + /** + * string clone_url = 3 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string clone_url = 3 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string clone_url = 3 [json_name = "cloneUrl"]; + * @param value The cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cloneUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string clone_url = 3 [json_name = "cloneUrl"]; + * @return This builder for chaining. + */ + public Builder clearCloneUrl() { + cloneUrl_ = getDefaultInstance().getCloneUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string clone_url = 3 [json_name = "cloneUrl"]; + * @param value The bytes for cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cloneUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateConfigurationRequest) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateConfigurationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateConfigurationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + boolean hasConfiguration(); + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return The configuration. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfiguration(); + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateConfigurationResponse} + */ + public static final class CreateConfigurationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateConfigurationResponse) + CreateConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateConfigurationResponse.class.getName()); + } + // Use CreateConfigurationResponse.newBuilder() to construct. + private CreateConfigurationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateConfigurationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse.Builder.class); + } + + private int bitField0_; + public static final int CONFIGURATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration configuration_; + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + @java.lang.Override + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return The configuration. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfiguration() { + return configuration_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationOrBuilder() { + return configuration_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfiguration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfiguration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse) obj; + + if (hasConfiguration() != other.hasConfiguration()) return false; + if (hasConfiguration()) { + if (!getConfiguration() + .equals(other.getConfiguration())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateConfigurationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateConfigurationResponse) + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_CreateConfigurationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configuration_ = configurationBuilder_ == null + ? configuration_ + : configurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse.getDefaultInstance()) return this; + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration configuration_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder> configurationBuilder_; + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return The configuration. + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder setConfiguration(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + } else { + configurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder setConfiguration( + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder mergeConfiguration(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration value) { + if (configurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + configuration_ != null && + configuration_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance()) { + getConfigurationBuilder().mergeFrom(value); + } else { + configuration_ = value; + } + } else { + configurationBuilder_.mergeFrom(value); + } + if (configuration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder clearConfiguration() { + bitField0_ = (bitField0_ & ~0x00000001); + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder getConfigurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null ? + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder>( + getConfiguration(), + getParentForChildren(), + isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateConfigurationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateConfigurationResponse) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetConfigurationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetConfigurationRequest} + */ + public static final class GetConfigurationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetConfigurationRequest) + GetConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetConfigurationRequest.class.getName()); + } + // Use GetConfigurationRequest.newBuilder() to construct. + private GetConfigurationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetConfigurationRequest() { + configurationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest.Builder.class); + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, configurationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, configurationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest) obj; + + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetConfigurationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetConfigurationRequest) + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configurationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configurationId_ = configurationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest.getDefaultInstance()) return this; + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetConfigurationRequest) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetConfigurationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetConfigurationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + boolean hasConfiguration(); + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return The configuration. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfiguration(); + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GetConfigurationResponse} + */ + public static final class GetConfigurationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetConfigurationResponse) + GetConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetConfigurationResponse.class.getName()); + } + // Use GetConfigurationResponse.newBuilder() to construct. + private GetConfigurationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetConfigurationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse.Builder.class); + } + + private int bitField0_; + public static final int CONFIGURATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration configuration_; + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + @java.lang.Override + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return The configuration. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfiguration() { + return configuration_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationOrBuilder() { + return configuration_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfiguration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfiguration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse) obj; + + if (hasConfiguration() != other.hasConfiguration()) return false; + if (hasConfiguration()) { + if (!getConfiguration() + .equals(other.getConfiguration())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetConfigurationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetConfigurationResponse) + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_GetConfigurationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configuration_ = configurationBuilder_ == null + ? configuration_ + : configurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse.getDefaultInstance()) return this; + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration configuration_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder> configurationBuilder_; + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return The configuration. + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder setConfiguration(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + } else { + configurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder setConfiguration( + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder mergeConfiguration(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration value) { + if (configurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + configuration_ != null && + configuration_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance()) { + getConfigurationBuilder().mergeFrom(value); + } else { + configuration_ = value; + } + } else { + configurationBuilder_.mergeFrom(value); + } + if (configuration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder clearConfiguration() { + bitField0_ = (bitField0_ & ~0x00000001); + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder getConfigurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null ? + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder>( + getConfiguration(), + getParentForChildren(), + isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetConfigurationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetConfigurationResponse) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListConfigurationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListConfigurationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * string search_term = 2 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + java.lang.String getSearchTerm(); + /** + * string search_term = 2 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + com.google.protobuf.ByteString + getSearchTermBytes(); + + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + java.util.List + getSortList(); + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + io.gitpod.publicapi.v1.Sorting.Sort getSort(int index); + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + int getSortCount(); + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + java.util.List + getSortOrBuilderList(); + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index); + + /** + *
+     * Will filter for configurations that have prebuilds enabled/disabled, or both if not set.
+     * 
+ * + * optional bool prebuilds_enabled = 5 [json_name = "prebuildsEnabled"]; + * @return Whether the prebuildsEnabled field is set. + */ + boolean hasPrebuildsEnabled(); + /** + *
+     * Will filter for configurations that have prebuilds enabled/disabled, or both if not set.
+     * 
+ * + * optional bool prebuilds_enabled = 5 [json_name = "prebuildsEnabled"]; + * @return The prebuildsEnabled. + */ + boolean getPrebuildsEnabled(); + } + /** + * Protobuf type {@code gitpod.v1.ListConfigurationsRequest} + */ + public static final class ListConfigurationsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListConfigurationsRequest) + ListConfigurationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListConfigurationsRequest.class.getName()); + } + // Use ListConfigurationsRequest.newBuilder() to construct. + private ListConfigurationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListConfigurationsRequest() { + organizationId_ = ""; + searchTerm_ = ""; + sort_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_TERM_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object searchTerm_ = ""; + /** + * string search_term = 2 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + @java.lang.Override + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } + } + /** + * string search_term = 2 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGINATION_FIELD_NUMBER = 3; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int SORT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List sort_; + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public java.util.List getSortList() { + return sort_; + } + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public java.util.List + getSortOrBuilderList() { + return sort_; + } + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public int getSortCount() { + return sort_.size(); + } + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.Sort getSort(int index) { + return sort_.get(index); + } + /** + *
+     * Configurations can be sorted by "name" OR "creationTime"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index) { + return sort_.get(index); + } + + public static final int PREBUILDS_ENABLED_FIELD_NUMBER = 5; + private boolean prebuildsEnabled_ = false; + /** + *
+     * Will filter for configurations that have prebuilds enabled/disabled, or both if not set.
+     * 
+ * + * optional bool prebuilds_enabled = 5 [json_name = "prebuildsEnabled"]; + * @return Whether the prebuildsEnabled field is set. + */ + @java.lang.Override + public boolean hasPrebuildsEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Will filter for configurations that have prebuilds enabled/disabled, or both if not set.
+     * 
+ * + * optional bool prebuilds_enabled = 5 [json_name = "prebuildsEnabled"]; + * @return The prebuildsEnabled. + */ + @java.lang.Override + public boolean getPrebuildsEnabled() { + return prebuildsEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, searchTerm_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getPagination()); + } + for (int i = 0; i < sort_.size(); i++) { + output.writeMessage(4, sort_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(5, prebuildsEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, searchTerm_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPagination()); + } + for (int i = 0; i < sort_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, sort_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, prebuildsEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getSearchTerm() + .equals(other.getSearchTerm())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getSortList() + .equals(other.getSortList())) return false; + if (hasPrebuildsEnabled() != other.hasPrebuildsEnabled()) return false; + if (hasPrebuildsEnabled()) { + if (getPrebuildsEnabled() + != other.getPrebuildsEnabled()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + SEARCH_TERM_FIELD_NUMBER; + hash = (53 * hash) + getSearchTerm().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getSortCount() > 0) { + hash = (37 * hash) + SORT_FIELD_NUMBER; + hash = (53 * hash) + getSortList().hashCode(); + } + if (hasPrebuildsEnabled()) { + hash = (37 * hash) + PREBUILDS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrebuildsEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListConfigurationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListConfigurationsRequest) + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getSortFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + searchTerm_ = ""; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (sortBuilder_ == null) { + sort_ = java.util.Collections.emptyList(); + } else { + sort_ = null; + sortBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + prebuildsEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest result) { + if (sortBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + sort_ = java.util.Collections.unmodifiableList(sort_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.sort_ = sort_; + } else { + result.sort_ = sortBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchTerm_ = searchTerm_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.prebuildsEnabled_ = prebuildsEnabled_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSearchTerm().isEmpty()) { + searchTerm_ = other.searchTerm_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (sortBuilder_ == null) { + if (!other.sort_.isEmpty()) { + if (sort_.isEmpty()) { + sort_ = other.sort_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSortIsMutable(); + sort_.addAll(other.sort_); + } + onChanged(); + } + } else { + if (!other.sort_.isEmpty()) { + if (sortBuilder_.isEmpty()) { + sortBuilder_.dispose(); + sortBuilder_ = null; + sort_ = other.sort_; + bitField0_ = (bitField0_ & ~0x00000008); + sortBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSortFieldBuilder() : null; + } else { + sortBuilder_.addAllMessages(other.sort_); + } + } + } + if (other.hasPrebuildsEnabled()) { + setPrebuildsEnabled(other.getPrebuildsEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + searchTerm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + io.gitpod.publicapi.v1.Sorting.Sort m = + input.readMessage( + io.gitpod.publicapi.v1.Sorting.Sort.parser(), + extensionRegistry); + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(m); + } else { + sortBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: { + prebuildsEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object searchTerm_ = ""; + /** + * string search_term = 2 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string search_term = 2 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string search_term = 2 [json_name = "searchTerm"]; + * @param value The searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTerm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + searchTerm_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string search_term = 2 [json_name = "searchTerm"]; + * @return This builder for chaining. + */ + public Builder clearSearchTerm() { + searchTerm_ = getDefaultInstance().getSearchTerm(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string search_term = 2 [json_name = "searchTerm"]; + * @param value The bytes for searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTermBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + searchTerm_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000004); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 3 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List sort_ = + java.util.Collections.emptyList(); + private void ensureSortIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + sort_ = new java.util.ArrayList(sort_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder> sortBuilder_; + + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public java.util.List getSortList() { + if (sortBuilder_ == null) { + return java.util.Collections.unmodifiableList(sort_); + } else { + return sortBuilder_.getMessageList(); + } + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public int getSortCount() { + if (sortBuilder_ == null) { + return sort_.size(); + } else { + return sortBuilder_.getCount(); + } + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort getSort(int index) { + if (sortBuilder_ == null) { + return sort_.get(index); + } else { + return sortBuilder_.getMessage(index); + } + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder setSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.set(index, value); + onChanged(); + } else { + sortBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder setSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.set(index, builderForValue.build()); + onChanged(); + } else { + sortBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addSort(io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.add(value); + onChanged(); + } else { + sortBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.add(index, value); + onChanged(); + } else { + sortBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addSort( + io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(builderForValue.build()); + onChanged(); + } else { + sortBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(index, builderForValue.build()); + onChanged(); + } else { + sortBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addAllSort( + java.lang.Iterable values) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sort_); + onChanged(); + } else { + sortBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder clearSort() { + if (sortBuilder_ == null) { + sort_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + sortBuilder_.clear(); + } + return this; + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder removeSort(int index) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.remove(index); + onChanged(); + } else { + sortBuilder_.remove(index); + } + return this; + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder getSortBuilder( + int index) { + return getSortFieldBuilder().getBuilder(index); + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index) { + if (sortBuilder_ == null) { + return sort_.get(index); } else { + return sortBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public java.util.List + getSortOrBuilderList() { + if (sortBuilder_ != null) { + return sortBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sort_); + } + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder addSortBuilder() { + return getSortFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance()); + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder addSortBuilder( + int index) { + return getSortFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance()); + } + /** + *
+       * Configurations can be sorted by "name" OR "creationTime"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public java.util.List + getSortBuilderList() { + return getSortFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder> + getSortFieldBuilder() { + if (sortBuilder_ == null) { + sortBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder>( + sort_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + sort_ = null; + } + return sortBuilder_; + } + + private boolean prebuildsEnabled_ ; + /** + *
+       * Will filter for configurations that have prebuilds enabled/disabled, or both if not set.
+       * 
+ * + * optional bool prebuilds_enabled = 5 [json_name = "prebuildsEnabled"]; + * @return Whether the prebuildsEnabled field is set. + */ + @java.lang.Override + public boolean hasPrebuildsEnabled() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * Will filter for configurations that have prebuilds enabled/disabled, or both if not set.
+       * 
+ * + * optional bool prebuilds_enabled = 5 [json_name = "prebuildsEnabled"]; + * @return The prebuildsEnabled. + */ + @java.lang.Override + public boolean getPrebuildsEnabled() { + return prebuildsEnabled_; + } + /** + *
+       * Will filter for configurations that have prebuilds enabled/disabled, or both if not set.
+       * 
+ * + * optional bool prebuilds_enabled = 5 [json_name = "prebuildsEnabled"]; + * @param value The prebuildsEnabled to set. + * @return This builder for chaining. + */ + public Builder setPrebuildsEnabled(boolean value) { + + prebuildsEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Will filter for configurations that have prebuilds enabled/disabled, or both if not set.
+       * 
+ * + * optional bool prebuilds_enabled = 5 [json_name = "prebuildsEnabled"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildsEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + prebuildsEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListConfigurationsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListConfigurationsRequest) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConfigurationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListConfigurationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListConfigurationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + java.util.List + getConfigurationsList(); + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfigurations(int index); + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + int getConfigurationsCount(); + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + java.util.List + getConfigurationsOrBuilderList(); + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationsOrBuilder( + int index); + + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListConfigurationsResponse} + */ + public static final class ListConfigurationsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListConfigurationsResponse) + ListConfigurationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListConfigurationsResponse.class.getName()); + } + // Use ListConfigurationsResponse.newBuilder() to construct. + private ListConfigurationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListConfigurationsResponse() { + configurations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse.Builder.class); + } + + private int bitField0_; + public static final int CONFIGURATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List configurations_; + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + @java.lang.Override + public java.util.List getConfigurationsList() { + return configurations_; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + @java.lang.Override + public java.util.List + getConfigurationsOrBuilderList() { + return configurations_; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + @java.lang.Override + public int getConfigurationsCount() { + return configurations_.size(); + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfigurations(int index) { + return configurations_.get(index); + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + return configurations_.get(index); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < configurations_.size(); i++) { + output.writeMessage(1, configurations_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < configurations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, configurations_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse) obj; + + if (!getConfigurationsList() + .equals(other.getConfigurationsList())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConfigurationsCount() > 0) { + hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationsList().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListConfigurationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListConfigurationsResponse) + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigurationsFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + } else { + configurations_ = null; + configurationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_ListConfigurationsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse result) { + if (configurationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + configurations_ = java.util.Collections.unmodifiableList(configurations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.configurations_ = configurations_; + } else { + result.configurations_ = configurationsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse.getDefaultInstance()) return this; + if (configurationsBuilder_ == null) { + if (!other.configurations_.isEmpty()) { + if (configurations_.isEmpty()) { + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConfigurationsIsMutable(); + configurations_.addAll(other.configurations_); + } + onChanged(); + } + } else { + if (!other.configurations_.isEmpty()) { + if (configurationsBuilder_.isEmpty()) { + configurationsBuilder_.dispose(); + configurationsBuilder_ = null; + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + configurationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getConfigurationsFieldBuilder() : null; + } else { + configurationsBuilder_.addAllMessages(other.configurations_); + } + } + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration m = + input.readMessage( + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.parser(), + extensionRegistry); + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(m); + } else { + configurationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List configurations_ = + java.util.Collections.emptyList(); + private void ensureConfigurationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + configurations_ = new java.util.ArrayList(configurations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder> configurationsBuilder_; + + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public java.util.List getConfigurationsList() { + if (configurationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(configurations_); + } else { + return configurationsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public int getConfigurationsCount() { + if (configurationsBuilder_ == null) { + return configurations_.size(); + } else { + return configurationsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfigurations(int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); + } else { + return configurationsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public Builder setConfigurations( + int index, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.set(index, value); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public Builder setConfigurations( + int index, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.set(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public Builder addConfigurations(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(value); + onChanged(); + } else { + configurationsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public Builder addConfigurations( + int index, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(index, value); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public Builder addConfigurations( + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public Builder addConfigurations( + int index, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public Builder addAllConfigurations( + java.lang.Iterable values) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, configurations_); + onChanged(); + } else { + configurationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public Builder clearConfigurations() { + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + configurationsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public Builder removeConfigurations(int index) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.remove(index); + onChanged(); + } else { + configurationsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder getConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); } else { + return configurationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public java.util.List + getConfigurationsOrBuilderList() { + if (configurationsBuilder_ != null) { + return configurationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(configurations_); + } + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder addConfigurationsBuilder() { + return getConfigurationsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder addConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Configuration configurations = 1 [json_name = "configurations"]; + */ + public java.util.List + getConfigurationsBuilderList() { + return getConfigurationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder> + getConfigurationsFieldBuilder() { + if (configurationsBuilder_ == null) { + configurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder>( + configurations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + configurations_ = null; + } + return configurationsBuilder_; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListConfigurationsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListConfigurationsResponse) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConfigurationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateConfigurationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + * @return Whether the prebuildSettings field is set. + */ + boolean hasPrebuildSettings(); + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + * @return The prebuildSettings. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings getPrebuildSettings(); + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettingsOrBuilder getPrebuildSettingsOrBuilder(); + + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + * @return Whether the workspaceSettings field is set. + */ + boolean hasWorkspaceSettings(); + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + * @return The workspaceSettings. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings getWorkspaceSettings(); + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettingsOrBuilder getWorkspaceSettingsOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationRequest} + */ + public static final class UpdateConfigurationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateConfigurationRequest) + UpdateConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateConfigurationRequest.class.getName()); + } + // Use UpdateConfigurationRequest.newBuilder() to construct. + private UpdateConfigurationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateConfigurationRequest() { + configurationId_ = ""; + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.Builder.class); + } + + public interface PrebuildSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateConfigurationRequest.PrebuildSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * optional bool enabled = 1 [json_name = "enabled"]; + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + /** + * optional bool enabled = 1 [json_name = "enabled"]; + * @return The enabled. + */ + boolean getEnabled(); + + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return Whether the branchMatchingPattern field is set. + */ + boolean hasBranchMatchingPattern(); + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The branchMatchingPattern. + */ + java.lang.String getBranchMatchingPattern(); + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The bytes for branchMatchingPattern. + */ + com.google.protobuf.ByteString + getBranchMatchingPatternBytes(); + + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return Whether the branchStrategy field is set. + */ + boolean hasBranchStrategy(); + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The enum numeric value on the wire for branchStrategy. + */ + int getBranchStrategyValue(); + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The branchStrategy. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy getBranchStrategy(); + + /** + * optional int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return Whether the prebuildInterval field is set. + */ + boolean hasPrebuildInterval(); + /** + * optional int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return The prebuildInterval. + */ + int getPrebuildInterval(); + + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + boolean hasWorkspaceClass(); + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationRequest.PrebuildSettings} + */ + public static final class PrebuildSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateConfigurationRequest.PrebuildSettings) + PrebuildSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PrebuildSettings.class.getName()); + } + // Use PrebuildSettings.newBuilder() to construct. + private PrebuildSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrebuildSettings() { + branchMatchingPattern_ = ""; + branchStrategy_ = 0; + workspaceClass_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * optional bool enabled = 1 [json_name = "enabled"]; + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional bool enabled = 1 [json_name = "enabled"]; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int BRANCH_MATCHING_PATTERN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object branchMatchingPattern_ = ""; + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return Whether the branchMatchingPattern field is set. + */ + @java.lang.Override + public boolean hasBranchMatchingPattern() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The branchMatchingPattern. + */ + @java.lang.Override + public java.lang.String getBranchMatchingPattern() { + java.lang.Object ref = branchMatchingPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branchMatchingPattern_ = s; + return s; + } + } + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The bytes for branchMatchingPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchMatchingPatternBytes() { + java.lang.Object ref = branchMatchingPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branchMatchingPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_STRATEGY_FIELD_NUMBER = 3; + private int branchStrategy_ = 0; + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return Whether the branchStrategy field is set. + */ + @java.lang.Override public boolean hasBranchStrategy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The enum numeric value on the wire for branchStrategy. + */ + @java.lang.Override public int getBranchStrategyValue() { + return branchStrategy_; + } + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The branchStrategy. + */ + @java.lang.Override public io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy getBranchStrategy() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy result = io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.forNumber(branchStrategy_); + return result == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.UNRECOGNIZED : result; + } + + public static final int PREBUILD_INTERVAL_FIELD_NUMBER = 4; + private int prebuildInterval_ = 0; + /** + * optional int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return Whether the prebuildInterval field is set. + */ + @java.lang.Override + public boolean hasPrebuildInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return The prebuildInterval. + */ + @java.lang.Override + public int getPrebuildInterval() { + return prebuildInterval_; + } + + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + @java.lang.Override + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, branchMatchingPattern_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, branchStrategy_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt32(4, prebuildInterval_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, workspaceClass_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, branchMatchingPattern_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, branchStrategy_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, prebuildInterval_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, workspaceClass_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings) obj; + + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() + != other.getEnabled()) return false; + } + if (hasBranchMatchingPattern() != other.hasBranchMatchingPattern()) return false; + if (hasBranchMatchingPattern()) { + if (!getBranchMatchingPattern() + .equals(other.getBranchMatchingPattern())) return false; + } + if (hasBranchStrategy() != other.hasBranchStrategy()) return false; + if (hasBranchStrategy()) { + if (branchStrategy_ != other.branchStrategy_) return false; + } + if (hasPrebuildInterval() != other.hasPrebuildInterval()) return false; + if (hasPrebuildInterval()) { + if (getPrebuildInterval() + != other.getPrebuildInterval()) return false; + } + if (hasWorkspaceClass() != other.hasWorkspaceClass()) return false; + if (hasWorkspaceClass()) { + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + } + if (hasBranchMatchingPattern()) { + hash = (37 * hash) + BRANCH_MATCHING_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getBranchMatchingPattern().hashCode(); + } + if (hasBranchStrategy()) { + hash = (37 * hash) + BRANCH_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + branchStrategy_; + } + if (hasPrebuildInterval()) { + hash = (37 * hash) + PREBUILD_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildInterval(); + } + if (hasWorkspaceClass()) { + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationRequest.PrebuildSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateConfigurationRequest.PrebuildSettings) + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + branchMatchingPattern_ = ""; + branchStrategy_ = 0; + prebuildInterval_ = 0; + workspaceClass_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branchMatchingPattern_ = branchMatchingPattern_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.branchStrategy_ = branchStrategy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.prebuildInterval_ = prebuildInterval_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.workspaceClass_ = workspaceClass_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.getDefaultInstance()) return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } + if (other.hasBranchMatchingPattern()) { + branchMatchingPattern_ = other.branchMatchingPattern_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBranchStrategy()) { + setBranchStrategy(other.getBranchStrategy()); + } + if (other.hasPrebuildInterval()) { + setPrebuildInterval(other.getPrebuildInterval()); + } + if (other.hasWorkspaceClass()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + branchMatchingPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + branchStrategy_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + prebuildInterval_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + * optional bool enabled = 1 [json_name = "enabled"]; + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional bool enabled = 1 [json_name = "enabled"]; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * optional bool enabled = 1 [json_name = "enabled"]; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional bool enabled = 1 [json_name = "enabled"]; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object branchMatchingPattern_ = ""; + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return Whether the branchMatchingPattern field is set. + */ + public boolean hasBranchMatchingPattern() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The branchMatchingPattern. + */ + public java.lang.String getBranchMatchingPattern() { + java.lang.Object ref = branchMatchingPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branchMatchingPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return The bytes for branchMatchingPattern. + */ + public com.google.protobuf.ByteString + getBranchMatchingPatternBytes() { + java.lang.Object ref = branchMatchingPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branchMatchingPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @param value The branchMatchingPattern to set. + * @return This builder for chaining. + */ + public Builder setBranchMatchingPattern( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + branchMatchingPattern_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @return This builder for chaining. + */ + public Builder clearBranchMatchingPattern() { + branchMatchingPattern_ = getDefaultInstance().getBranchMatchingPattern(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string branch_matching_pattern = 2 [json_name = "branchMatchingPattern"]; + * @param value The bytes for branchMatchingPattern to set. + * @return This builder for chaining. + */ + public Builder setBranchMatchingPatternBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + branchMatchingPattern_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int branchStrategy_ = 0; + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return Whether the branchStrategy field is set. + */ + @java.lang.Override public boolean hasBranchStrategy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The enum numeric value on the wire for branchStrategy. + */ + @java.lang.Override public int getBranchStrategyValue() { + return branchStrategy_; + } + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @param value The enum numeric value on the wire for branchStrategy to set. + * @return This builder for chaining. + */ + public Builder setBranchStrategyValue(int value) { + branchStrategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return The branchStrategy. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy getBranchStrategy() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy result = io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.forNumber(branchStrategy_); + return result == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy.UNRECOGNIZED : result; + } + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @param value The branchStrategy to set. + * @return This builder for chaining. + */ + public Builder setBranchStrategy(io.gitpod.publicapi.v1.ConfigurationOuterClass.BranchMatchingStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + branchStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .gitpod.v1.BranchMatchingStrategy branch_strategy = 3 [json_name = "branchStrategy"]; + * @return This builder for chaining. + */ + public Builder clearBranchStrategy() { + bitField0_ = (bitField0_ & ~0x00000004); + branchStrategy_ = 0; + onChanged(); + return this; + } + + private int prebuildInterval_ ; + /** + * optional int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return Whether the prebuildInterval field is set. + */ + @java.lang.Override + public boolean hasPrebuildInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return The prebuildInterval. + */ + @java.lang.Override + public int getPrebuildInterval() { + return prebuildInterval_; + } + /** + * optional int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @param value The prebuildInterval to set. + * @return This builder for chaining. + */ + public Builder setPrebuildInterval(int value) { + + prebuildInterval_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional int32 prebuild_interval = 4 [json_name = "prebuildInterval"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildInterval() { + bitField0_ = (bitField0_ & ~0x00000008); + prebuildInterval_ = 0; + onChanged(); + return this; + } + + private java.lang.Object workspaceClass_ = ""; + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string workspace_class = 5 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateConfigurationRequest.PrebuildSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateConfigurationRequest.PrebuildSettings) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuildSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + boolean hasWorkspaceClass(); + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + + /** + *
+       * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+       * If empty, all workspace classes are allowed.
+       * Only updates if update_restricted_workspace_classes is true.
+       * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return A list containing the restrictedWorkspaceClasses. + */ + java.util.List + getRestrictedWorkspaceClassesList(); + /** + *
+       * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+       * If empty, all workspace classes are allowed.
+       * Only updates if update_restricted_workspace_classes is true.
+       * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return The count of restrictedWorkspaceClasses. + */ + int getRestrictedWorkspaceClassesCount(); + /** + *
+       * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+       * If empty, all workspace classes are allowed.
+       * Only updates if update_restricted_workspace_classes is true.
+       * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The restrictedWorkspaceClasses at the given index. + */ + java.lang.String getRestrictedWorkspaceClasses(int index); + /** + *
+       * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+       * If empty, all workspace classes are allowed.
+       * Only updates if update_restricted_workspace_classes is true.
+       * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedWorkspaceClasses at the given index. + */ + com.google.protobuf.ByteString + getRestrictedWorkspaceClassesBytes(int index); + + /** + *
+       * Specifies whether restricted_workspace_classes should be updated.
+       * 
+ * + * optional bool update_restricted_workspace_classes = 3 [json_name = "updateRestrictedWorkspaceClasses"]; + * @return Whether the updateRestrictedWorkspaceClasses field is set. + */ + boolean hasUpdateRestrictedWorkspaceClasses(); + /** + *
+       * Specifies whether restricted_workspace_classes should be updated.
+       * 
+ * + * optional bool update_restricted_workspace_classes = 3 [json_name = "updateRestrictedWorkspaceClasses"]; + * @return The updateRestrictedWorkspaceClasses. + */ + boolean getUpdateRestrictedWorkspaceClasses(); + + /** + *
+       * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+       * If empty, all editors are allowed.
+       * Only updates if update_restricted_editor_names is true.
+       * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + java.util.List + getRestrictedEditorNamesList(); + /** + *
+       * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+       * If empty, all editors are allowed.
+       * Only updates if update_restricted_editor_names is true.
+       * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + int getRestrictedEditorNamesCount(); + /** + *
+       * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+       * If empty, all editors are allowed.
+       * Only updates if update_restricted_editor_names is true.
+       * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + java.lang.String getRestrictedEditorNames(int index); + /** + *
+       * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+       * If empty, all editors are allowed.
+       * Only updates if update_restricted_editor_names is true.
+       * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index); + + /** + *
+       * Specifies whether restricted_editor_names should be updated.
+       * 
+ * + * optional bool update_restricted_editor_names = 5 [json_name = "updateRestrictedEditorNames"]; + * @return Whether the updateRestrictedEditorNames field is set. + */ + boolean hasUpdateRestrictedEditorNames(); + /** + *
+       * Specifies whether restricted_editor_names should be updated.
+       * 
+ * + * optional bool update_restricted_editor_names = 5 [json_name = "updateRestrictedEditorNames"]; + * @return The updateRestrictedEditorNames. + */ + boolean getUpdateRestrictedEditorNames(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings} + */ + public static final class WorkspaceSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings) + WorkspaceSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceSettings.class.getName()); + } + // Use WorkspaceSettings.newBuilder() to construct. + private WorkspaceSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceSettings() { + workspaceClass_ = ""; + restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + @java.lang.Override + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESTRICTED_WORKSPACE_CLASSES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+       * If empty, all workspace classes are allowed.
+       * Only updates if update_restricted_workspace_classes is true.
+       * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return A list containing the restrictedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedWorkspaceClassesList() { + return restrictedWorkspaceClasses_; + } + /** + *
+       * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+       * If empty, all workspace classes are allowed.
+       * Only updates if update_restricted_workspace_classes is true.
+       * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return The count of restrictedWorkspaceClasses. + */ + public int getRestrictedWorkspaceClassesCount() { + return restrictedWorkspaceClasses_.size(); + } + /** + *
+       * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+       * If empty, all workspace classes are allowed.
+       * Only updates if update_restricted_workspace_classes is true.
+       * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The restrictedWorkspaceClasses at the given index. + */ + public java.lang.String getRestrictedWorkspaceClasses(int index) { + return restrictedWorkspaceClasses_.get(index); + } + /** + *
+       * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+       * If empty, all workspace classes are allowed.
+       * Only updates if update_restricted_workspace_classes is true.
+       * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedWorkspaceClassesBytes(int index) { + return restrictedWorkspaceClasses_.getByteString(index); + } + + public static final int UPDATE_RESTRICTED_WORKSPACE_CLASSES_FIELD_NUMBER = 3; + private boolean updateRestrictedWorkspaceClasses_ = false; + /** + *
+       * Specifies whether restricted_workspace_classes should be updated.
+       * 
+ * + * optional bool update_restricted_workspace_classes = 3 [json_name = "updateRestrictedWorkspaceClasses"]; + * @return Whether the updateRestrictedWorkspaceClasses field is set. + */ + @java.lang.Override + public boolean hasUpdateRestrictedWorkspaceClasses() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Specifies whether restricted_workspace_classes should be updated.
+       * 
+ * + * optional bool update_restricted_workspace_classes = 3 [json_name = "updateRestrictedWorkspaceClasses"]; + * @return The updateRestrictedWorkspaceClasses. + */ + @java.lang.Override + public boolean getUpdateRestrictedWorkspaceClasses() { + return updateRestrictedWorkspaceClasses_; + } + + public static final int RESTRICTED_EDITOR_NAMES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+       * If empty, all editors are allowed.
+       * Only updates if update_restricted_editor_names is true.
+       * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + return restrictedEditorNames_; + } + /** + *
+       * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+       * If empty, all editors are allowed.
+       * Only updates if update_restricted_editor_names is true.
+       * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + *
+       * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+       * If empty, all editors are allowed.
+       * Only updates if update_restricted_editor_names is true.
+       * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + *
+       * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+       * If empty, all editors are allowed.
+       * Only updates if update_restricted_editor_names is true.
+       * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + + public static final int UPDATE_RESTRICTED_EDITOR_NAMES_FIELD_NUMBER = 5; + private boolean updateRestrictedEditorNames_ = false; + /** + *
+       * Specifies whether restricted_editor_names should be updated.
+       * 
+ * + * optional bool update_restricted_editor_names = 5 [json_name = "updateRestrictedEditorNames"]; + * @return Whether the updateRestrictedEditorNames field is set. + */ + @java.lang.Override + public boolean hasUpdateRestrictedEditorNames() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Specifies whether restricted_editor_names should be updated.
+       * 
+ * + * optional bool update_restricted_editor_names = 5 [json_name = "updateRestrictedEditorNames"]; + * @return The updateRestrictedEditorNames. + */ + @java.lang.Override + public boolean getUpdateRestrictedEditorNames() { + return updateRestrictedEditorNames_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceClass_); + } + for (int i = 0; i < restrictedWorkspaceClasses_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, restrictedWorkspaceClasses_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(3, updateRestrictedWorkspaceClasses_); + } + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, restrictedEditorNames_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(5, updateRestrictedEditorNames_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceClass_); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedWorkspaceClasses_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedWorkspaceClasses_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedWorkspaceClassesList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, updateRestrictedWorkspaceClasses_); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedEditorNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedEditorNamesList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, updateRestrictedEditorNames_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings) obj; + + if (hasWorkspaceClass() != other.hasWorkspaceClass()) return false; + if (hasWorkspaceClass()) { + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + } + if (!getRestrictedWorkspaceClassesList() + .equals(other.getRestrictedWorkspaceClassesList())) return false; + if (hasUpdateRestrictedWorkspaceClasses() != other.hasUpdateRestrictedWorkspaceClasses()) return false; + if (hasUpdateRestrictedWorkspaceClasses()) { + if (getUpdateRestrictedWorkspaceClasses() + != other.getUpdateRestrictedWorkspaceClasses()) return false; + } + if (!getRestrictedEditorNamesList() + .equals(other.getRestrictedEditorNamesList())) return false; + if (hasUpdateRestrictedEditorNames() != other.hasUpdateRestrictedEditorNames()) return false; + if (hasUpdateRestrictedEditorNames()) { + if (getUpdateRestrictedEditorNames() + != other.getUpdateRestrictedEditorNames()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkspaceClass()) { + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + } + if (getRestrictedWorkspaceClassesCount() > 0) { + hash = (37 * hash) + RESTRICTED_WORKSPACE_CLASSES_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedWorkspaceClassesList().hashCode(); + } + if (hasUpdateRestrictedWorkspaceClasses()) { + hash = (37 * hash) + UPDATE_RESTRICTED_WORKSPACE_CLASSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUpdateRestrictedWorkspaceClasses()); + } + if (getRestrictedEditorNamesCount() > 0) { + hash = (37 * hash) + RESTRICTED_EDITOR_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedEditorNamesList().hashCode(); + } + if (hasUpdateRestrictedEditorNames()) { + hash = (37 * hash) + UPDATE_RESTRICTED_EDITOR_NAMES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUpdateRestrictedEditorNames()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings) + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceClass_ = ""; + restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + updateRestrictedWorkspaceClasses_ = false; + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + updateRestrictedEditorNames_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceClass_ = workspaceClass_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + restrictedWorkspaceClasses_.makeImmutable(); + result.restrictedWorkspaceClasses_ = restrictedWorkspaceClasses_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateRestrictedWorkspaceClasses_ = updateRestrictedWorkspaceClasses_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + restrictedEditorNames_.makeImmutable(); + result.restrictedEditorNames_ = restrictedEditorNames_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateRestrictedEditorNames_ = updateRestrictedEditorNames_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.getDefaultInstance()) return this; + if (other.hasWorkspaceClass()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.restrictedWorkspaceClasses_.isEmpty()) { + if (restrictedWorkspaceClasses_.isEmpty()) { + restrictedWorkspaceClasses_ = other.restrictedWorkspaceClasses_; + bitField0_ |= 0x00000002; + } else { + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.addAll(other.restrictedWorkspaceClasses_); + } + onChanged(); + } + if (other.hasUpdateRestrictedWorkspaceClasses()) { + setUpdateRestrictedWorkspaceClasses(other.getUpdateRestrictedWorkspaceClasses()); + } + if (!other.restrictedEditorNames_.isEmpty()) { + if (restrictedEditorNames_.isEmpty()) { + restrictedEditorNames_ = other.restrictedEditorNames_; + bitField0_ |= 0x00000008; + } else { + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.addAll(other.restrictedEditorNames_); + } + onChanged(); + } + if (other.hasUpdateRestrictedEditorNames()) { + setUpdateRestrictedEditorNames(other.getUpdateRestrictedEditorNames()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.add(s); + break; + } // case 18 + case 24: { + updateRestrictedWorkspaceClasses_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(s); + break; + } // case 34 + case 40: { + updateRestrictedEditorNames_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceClass_ = ""; + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string workspace_class = 1 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedWorkspaceClassesIsMutable() { + if (!restrictedWorkspaceClasses_.isModifiable()) { + restrictedWorkspaceClasses_ = new com.google.protobuf.LazyStringArrayList(restrictedWorkspaceClasses_); + } + bitField0_ |= 0x00000002; + } + /** + *
+         * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+         * If empty, all workspace classes are allowed.
+         * Only updates if update_restricted_workspace_classes is true.
+         * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return A list containing the restrictedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedWorkspaceClassesList() { + restrictedWorkspaceClasses_.makeImmutable(); + return restrictedWorkspaceClasses_; + } + /** + *
+         * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+         * If empty, all workspace classes are allowed.
+         * Only updates if update_restricted_workspace_classes is true.
+         * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return The count of restrictedWorkspaceClasses. + */ + public int getRestrictedWorkspaceClassesCount() { + return restrictedWorkspaceClasses_.size(); + } + /** + *
+         * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+         * If empty, all workspace classes are allowed.
+         * Only updates if update_restricted_workspace_classes is true.
+         * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The restrictedWorkspaceClasses at the given index. + */ + public java.lang.String getRestrictedWorkspaceClasses(int index) { + return restrictedWorkspaceClasses_.get(index); + } + /** + *
+         * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+         * If empty, all workspace classes are allowed.
+         * Only updates if update_restricted_workspace_classes is true.
+         * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedWorkspaceClassesBytes(int index) { + return restrictedWorkspaceClasses_.getByteString(index); + } + /** + *
+         * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+         * If empty, all workspace classes are allowed.
+         * Only updates if update_restricted_workspace_classes is true.
+         * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param index The index to set the value at. + * @param value The restrictedWorkspaceClasses to set. + * @return This builder for chaining. + */ + public Builder setRestrictedWorkspaceClasses( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+         * If empty, all workspace classes are allowed.
+         * Only updates if update_restricted_workspace_classes is true.
+         * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param value The restrictedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addRestrictedWorkspaceClasses( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+         * If empty, all workspace classes are allowed.
+         * Only updates if update_restricted_workspace_classes is true.
+         * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param values The restrictedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedWorkspaceClasses( + java.lang.Iterable values) { + ensureRestrictedWorkspaceClassesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedWorkspaceClasses_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+         * If empty, all workspace classes are allowed.
+         * Only updates if update_restricted_workspace_classes is true.
+         * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @return This builder for chaining. + */ + public Builder clearRestrictedWorkspaceClasses() { + restrictedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+         * restricted_workspace_classes specifies the workspace classes that are NOT allowed to be used in this configuration.
+         * If empty, all workspace classes are allowed.
+         * Only updates if update_restricted_workspace_classes is true.
+         * 
+ * + * repeated string restricted_workspace_classes = 2 [json_name = "restrictedWorkspaceClasses"]; + * @param value The bytes of the restrictedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addRestrictedWorkspaceClassesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRestrictedWorkspaceClassesIsMutable(); + restrictedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean updateRestrictedWorkspaceClasses_ ; + /** + *
+         * Specifies whether restricted_workspace_classes should be updated.
+         * 
+ * + * optional bool update_restricted_workspace_classes = 3 [json_name = "updateRestrictedWorkspaceClasses"]; + * @return Whether the updateRestrictedWorkspaceClasses field is set. + */ + @java.lang.Override + public boolean hasUpdateRestrictedWorkspaceClasses() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Specifies whether restricted_workspace_classes should be updated.
+         * 
+ * + * optional bool update_restricted_workspace_classes = 3 [json_name = "updateRestrictedWorkspaceClasses"]; + * @return The updateRestrictedWorkspaceClasses. + */ + @java.lang.Override + public boolean getUpdateRestrictedWorkspaceClasses() { + return updateRestrictedWorkspaceClasses_; + } + /** + *
+         * Specifies whether restricted_workspace_classes should be updated.
+         * 
+ * + * optional bool update_restricted_workspace_classes = 3 [json_name = "updateRestrictedWorkspaceClasses"]; + * @param value The updateRestrictedWorkspaceClasses to set. + * @return This builder for chaining. + */ + public Builder setUpdateRestrictedWorkspaceClasses(boolean value) { + + updateRestrictedWorkspaceClasses_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Specifies whether restricted_workspace_classes should be updated.
+         * 
+ * + * optional bool update_restricted_workspace_classes = 3 [json_name = "updateRestrictedWorkspaceClasses"]; + * @return This builder for chaining. + */ + public Builder clearUpdateRestrictedWorkspaceClasses() { + bitField0_ = (bitField0_ & ~0x00000004); + updateRestrictedWorkspaceClasses_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedEditorNamesIsMutable() { + if (!restrictedEditorNames_.isModifiable()) { + restrictedEditorNames_ = new com.google.protobuf.LazyStringArrayList(restrictedEditorNames_); + } + bitField0_ |= 0x00000008; + } + /** + *
+         * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+         * If empty, all editors are allowed.
+         * Only updates if update_restricted_editor_names is true.
+         * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + restrictedEditorNames_.makeImmutable(); + return restrictedEditorNames_; + } + /** + *
+         * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+         * If empty, all editors are allowed.
+         * Only updates if update_restricted_editor_names is true.
+         * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + *
+         * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+         * If empty, all editors are allowed.
+         * Only updates if update_restricted_editor_names is true.
+         * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + *
+         * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+         * If empty, all editors are allowed.
+         * Only updates if update_restricted_editor_names is true.
+         * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + /** + *
+         * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+         * If empty, all editors are allowed.
+         * Only updates if update_restricted_editor_names is true.
+         * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index to set the value at. + * @param value The restrictedEditorNames to set. + * @return This builder for chaining. + */ + public Builder setRestrictedEditorNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+         * If empty, all editors are allowed.
+         * Only updates if update_restricted_editor_names is true.
+         * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param value The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+         * If empty, all editors are allowed.
+         * Only updates if update_restricted_editor_names is true.
+         * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param values The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedEditorNames( + java.lang.Iterable values) { + ensureRestrictedEditorNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedEditorNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+         * If empty, all editors are allowed.
+         * Only updates if update_restricted_editor_names is true.
+         * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return This builder for chaining. + */ + public Builder clearRestrictedEditorNames() { + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + *
+         * restricted_editor_names specifies the editor names that are NOT allowed to be used in this configuration.
+         * If empty, all editors are allowed.
+         * Only updates if update_restricted_editor_names is true.
+         * 
+ * + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param value The bytes of the restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean updateRestrictedEditorNames_ ; + /** + *
+         * Specifies whether restricted_editor_names should be updated.
+         * 
+ * + * optional bool update_restricted_editor_names = 5 [json_name = "updateRestrictedEditorNames"]; + * @return Whether the updateRestrictedEditorNames field is set. + */ + @java.lang.Override + public boolean hasUpdateRestrictedEditorNames() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * Specifies whether restricted_editor_names should be updated.
+         * 
+ * + * optional bool update_restricted_editor_names = 5 [json_name = "updateRestrictedEditorNames"]; + * @return The updateRestrictedEditorNames. + */ + @java.lang.Override + public boolean getUpdateRestrictedEditorNames() { + return updateRestrictedEditorNames_; + } + /** + *
+         * Specifies whether restricted_editor_names should be updated.
+         * 
+ * + * optional bool update_restricted_editor_names = 5 [json_name = "updateRestrictedEditorNames"]; + * @param value The updateRestrictedEditorNames to set. + * @return This builder for chaining. + */ + public Builder setUpdateRestrictedEditorNames(boolean value) { + + updateRestrictedEditorNames_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * Specifies whether restricted_editor_names should be updated.
+         * 
+ * + * optional bool update_restricted_editor_names = 5 [json_name = "updateRestrictedEditorNames"]; + * @return This builder for chaining. + */ + public Builder clearUpdateRestrictedEditorNames() { + bitField0_ = (bitField0_ & ~0x00000010); + updateRestrictedEditorNames_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int CONFIGURATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREBUILD_SETTINGS_FIELD_NUMBER = 3; + private io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings prebuildSettings_; + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + * @return Whether the prebuildSettings field is set. + */ + @java.lang.Override + public boolean hasPrebuildSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + * @return The prebuildSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings getPrebuildSettings() { + return prebuildSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.getDefaultInstance() : prebuildSettings_; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettingsOrBuilder getPrebuildSettingsOrBuilder() { + return prebuildSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.getDefaultInstance() : prebuildSettings_; + } + + public static final int WORKSPACE_SETTINGS_FIELD_NUMBER = 4; + private io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings workspaceSettings_; + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + * @return Whether the workspaceSettings field is set. + */ + @java.lang.Override + public boolean hasWorkspaceSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + * @return The workspaceSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings getWorkspaceSettings() { + return workspaceSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.getDefaultInstance() : workspaceSettings_; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettingsOrBuilder getWorkspaceSettingsOrBuilder() { + return workspaceSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.getDefaultInstance() : workspaceSettings_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, configurationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getPrebuildSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getWorkspaceSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, configurationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPrebuildSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getWorkspaceSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest) obj; + + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasPrebuildSettings() != other.hasPrebuildSettings()) return false; + if (hasPrebuildSettings()) { + if (!getPrebuildSettings() + .equals(other.getPrebuildSettings())) return false; + } + if (hasWorkspaceSettings() != other.hasWorkspaceSettings()) return false; + if (hasWorkspaceSettings()) { + if (!getWorkspaceSettings() + .equals(other.getWorkspaceSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasPrebuildSettings()) { + hash = (37 * hash) + PREBUILD_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildSettings().hashCode(); + } + if (hasWorkspaceSettings()) { + hash = (37 * hash) + WORKSPACE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateConfigurationRequest) + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPrebuildSettingsFieldBuilder(); + getWorkspaceSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configurationId_ = ""; + name_ = ""; + prebuildSettings_ = null; + if (prebuildSettingsBuilder_ != null) { + prebuildSettingsBuilder_.dispose(); + prebuildSettingsBuilder_ = null; + } + workspaceSettings_ = null; + if (workspaceSettingsBuilder_ != null) { + workspaceSettingsBuilder_.dispose(); + workspaceSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configurationId_ = configurationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.prebuildSettings_ = prebuildSettingsBuilder_ == null + ? prebuildSettings_ + : prebuildSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.workspaceSettings_ = workspaceSettingsBuilder_ == null + ? workspaceSettings_ + : workspaceSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.getDefaultInstance()) return this; + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPrebuildSettings()) { + mergePrebuildSettings(other.getPrebuildSettings()); + } + if (other.hasWorkspaceSettings()) { + mergeWorkspaceSettings(other.getWorkspaceSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPrebuildSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getWorkspaceSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings prebuildSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettingsOrBuilder> prebuildSettingsBuilder_; + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + * @return Whether the prebuildSettings field is set. + */ + public boolean hasPrebuildSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + * @return The prebuildSettings. + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings getPrebuildSettings() { + if (prebuildSettingsBuilder_ == null) { + return prebuildSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.getDefaultInstance() : prebuildSettings_; + } else { + return prebuildSettingsBuilder_.getMessage(); + } + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + */ + public Builder setPrebuildSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings value) { + if (prebuildSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prebuildSettings_ = value; + } else { + prebuildSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + */ + public Builder setPrebuildSettings( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.Builder builderForValue) { + if (prebuildSettingsBuilder_ == null) { + prebuildSettings_ = builderForValue.build(); + } else { + prebuildSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + */ + public Builder mergePrebuildSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings value) { + if (prebuildSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + prebuildSettings_ != null && + prebuildSettings_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.getDefaultInstance()) { + getPrebuildSettingsBuilder().mergeFrom(value); + } else { + prebuildSettings_ = value; + } + } else { + prebuildSettingsBuilder_.mergeFrom(value); + } + if (prebuildSettings_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + */ + public Builder clearPrebuildSettings() { + bitField0_ = (bitField0_ & ~0x00000004); + prebuildSettings_ = null; + if (prebuildSettingsBuilder_ != null) { + prebuildSettingsBuilder_.dispose(); + prebuildSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.Builder getPrebuildSettingsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPrebuildSettingsFieldBuilder().getBuilder(); + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettingsOrBuilder getPrebuildSettingsOrBuilder() { + if (prebuildSettingsBuilder_ != null) { + return prebuildSettingsBuilder_.getMessageOrBuilder(); + } else { + return prebuildSettings_ == null ? + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.getDefaultInstance() : prebuildSettings_; + } + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.PrebuildSettings prebuild_settings = 3 [json_name = "prebuildSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettingsOrBuilder> + getPrebuildSettingsFieldBuilder() { + if (prebuildSettingsBuilder_ == null) { + prebuildSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.PrebuildSettingsOrBuilder>( + getPrebuildSettings(), + getParentForChildren(), + isClean()); + prebuildSettings_ = null; + } + return prebuildSettingsBuilder_; + } + + private io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings workspaceSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettingsOrBuilder> workspaceSettingsBuilder_; + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + * @return Whether the workspaceSettings field is set. + */ + public boolean hasWorkspaceSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + * @return The workspaceSettings. + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings getWorkspaceSettings() { + if (workspaceSettingsBuilder_ == null) { + return workspaceSettings_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.getDefaultInstance() : workspaceSettings_; + } else { + return workspaceSettingsBuilder_.getMessage(); + } + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + */ + public Builder setWorkspaceSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings value) { + if (workspaceSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspaceSettings_ = value; + } else { + workspaceSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + */ + public Builder setWorkspaceSettings( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.Builder builderForValue) { + if (workspaceSettingsBuilder_ == null) { + workspaceSettings_ = builderForValue.build(); + } else { + workspaceSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + */ + public Builder mergeWorkspaceSettings(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings value) { + if (workspaceSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + workspaceSettings_ != null && + workspaceSettings_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.getDefaultInstance()) { + getWorkspaceSettingsBuilder().mergeFrom(value); + } else { + workspaceSettings_ = value; + } + } else { + workspaceSettingsBuilder_.mergeFrom(value); + } + if (workspaceSettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + */ + public Builder clearWorkspaceSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + workspaceSettings_ = null; + if (workspaceSettingsBuilder_ != null) { + workspaceSettingsBuilder_.dispose(); + workspaceSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.Builder getWorkspaceSettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getWorkspaceSettingsFieldBuilder().getBuilder(); + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettingsOrBuilder getWorkspaceSettingsOrBuilder() { + if (workspaceSettingsBuilder_ != null) { + return workspaceSettingsBuilder_.getMessageOrBuilder(); + } else { + return workspaceSettings_ == null ? + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.getDefaultInstance() : workspaceSettings_; + } + } + /** + * optional .gitpod.v1.UpdateConfigurationRequest.WorkspaceSettings workspace_settings = 4 [json_name = "workspaceSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettingsOrBuilder> + getWorkspaceSettingsFieldBuilder() { + if (workspaceSettingsBuilder_ == null) { + workspaceSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettings.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest.WorkspaceSettingsOrBuilder>( + getWorkspaceSettings(), + getParentForChildren(), + isClean()); + workspaceSettings_ = null; + } + return workspaceSettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateConfigurationRequest) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateConfigurationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateConfigurationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + boolean hasConfiguration(); + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return The configuration. + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfiguration(); + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationResponse} + */ + public static final class UpdateConfigurationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateConfigurationResponse) + UpdateConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateConfigurationResponse.class.getName()); + } + // Use UpdateConfigurationResponse.newBuilder() to construct. + private UpdateConfigurationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateConfigurationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse.Builder.class); + } + + private int bitField0_; + public static final int CONFIGURATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration configuration_; + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + @java.lang.Override + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return The configuration. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfiguration() { + return configuration_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationOrBuilder() { + return configuration_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfiguration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfiguration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse) obj; + + if (hasConfiguration() != other.hasConfiguration()) return false; + if (hasConfiguration()) { + if (!getConfiguration() + .equals(other.getConfiguration())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateConfigurationResponse) + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_UpdateConfigurationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configuration_ = configurationBuilder_ == null + ? configuration_ + : configurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse.getDefaultInstance()) return this; + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration configuration_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder> configurationBuilder_; + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + * @return The configuration. + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null ? io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder setConfiguration(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + } else { + configurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder setConfiguration( + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder mergeConfiguration(io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration value) { + if (configurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + configuration_ != null && + configuration_ != io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance()) { + getConfigurationBuilder().mergeFrom(value); + } else { + configuration_ = value; + } + } else { + configurationBuilder_.mergeFrom(value); + } + if (configuration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public Builder clearConfiguration() { + bitField0_ = (bitField0_ & ~0x00000001); + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder getConfigurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + public io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null ? + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.getDefaultInstance() : configuration_; + } + } + /** + * .gitpod.v1.Configuration configuration = 1 [json_name = "configuration"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration, io.gitpod.publicapi.v1.ConfigurationOuterClass.Configuration.Builder, io.gitpod.publicapi.v1.ConfigurationOuterClass.ConfigurationOrBuilder>( + getConfiguration(), + getParentForChildren(), + isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateConfigurationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateConfigurationResponse) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteConfigurationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteConfigurationRequest} + */ + public static final class DeleteConfigurationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteConfigurationRequest) + DeleteConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteConfigurationRequest.class.getName()); + } + // Use DeleteConfigurationRequest.newBuilder() to construct. + private DeleteConfigurationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteConfigurationRequest() { + configurationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest.Builder.class); + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, configurationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, configurationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest) obj; + + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteConfigurationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteConfigurationRequest) + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configurationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configurationId_ = configurationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest.getDefaultInstance()) return this; + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteConfigurationRequest) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteConfigurationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteConfigurationResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteConfigurationResponse} + */ + public static final class DeleteConfigurationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteConfigurationResponse) + DeleteConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteConfigurationResponse.class.getName()); + } + // Use DeleteConfigurationResponse.newBuilder() to construct. + private DeleteConfigurationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteConfigurationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse other = (io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteConfigurationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteConfigurationResponse) + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse.class, io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.internal_static_gitpod_v1_DeleteConfigurationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse build() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse buildPartial() { + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse result = new io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse other) { + if (other == io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteConfigurationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteConfigurationResponse) + private static final io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse(); + } + + public static io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_Configuration_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_Configuration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_PrebuildSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_PrebuildSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateConfigurationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateConfigurationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateConfigurationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetConfigurationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetConfigurationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetConfigurationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListConfigurationsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListConfigurationsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListConfigurationsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListConfigurationsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateConfigurationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateConfigurationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteConfigurationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteConfigurationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteConfigurationResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035gitpod/v1/configuration.proto\022\tgitpod." + + "v1\032\032gitpod/v1/pagination.proto\032\027gitpod/v" + + "1/sorting.proto\032\037google/protobuf/timesta" + + "mp.proto\"\321\002\n\rConfiguration\022\016\n\002id\030\001 \001(\tR\002" + + "id\022\'\n\017organization_id\030\002 \001(\tR\016organizatio" + + "nId\022\022\n\004name\030\003 \001(\tR\004name\022\033\n\tclone_url\030\004 \001" + + "(\tR\010cloneUrl\022?\n\rcreation_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampR\014creationTime\022H\n" + + "\021prebuild_settings\030\006 \001(\0132\033.gitpod.v1.Pre" + + "buildSettingsR\020prebuildSettings\022K\n\022works" + + "pace_settings\030\007 \001(\0132\034.gitpod.v1.Workspac" + + "eSettingsR\021workspaceSettings\"\206\002\n\020Prebuil" + + "dSettings\022\030\n\007enabled\030\001 \001(\010R\007enabled\0226\n\027b" + + "ranch_matching_pattern\030\002 \001(\tR\025branchMatc" + + "hingPattern\022J\n\017branch_strategy\030\003 \001(\0162!.g" + + "itpod.v1.BranchMatchingStrategyR\016branchS" + + "trategy\022+\n\021prebuild_interval\030\004 \001(\005R\020preb" + + "uildInterval\022\'\n\017workspace_class\030\005 \001(\tR\016w" + + "orkspaceClass\"\266\001\n\021WorkspaceSettings\022\'\n\017w" + + "orkspace_class\030\001 \001(\tR\016workspaceClass\022@\n\034" + + "restricted_workspace_classes\030\002 \003(\tR\032rest" + + "rictedWorkspaceClasses\0226\n\027restricted_edi" + + "tor_names\030\003 \003(\tR\025restrictedEditorNames\"v" + + "\n\032CreateConfigurationRequest\022\'\n\017organiza" + + "tion_id\030\001 \001(\tR\016organizationId\022\022\n\004name\030\002 " + + "\001(\tR\004name\022\033\n\tclone_url\030\003 \001(\tR\010cloneUrl\"]" + + "\n\033CreateConfigurationResponse\022>\n\rconfigu" + + "ration\030\001 \001(\0132\030.gitpod.v1.ConfigurationR\r" + + "configuration\"D\n\027GetConfigurationRequest" + + "\022)\n\020configuration_id\030\001 \001(\tR\017configuratio" + + "nId\"Z\n\030GetConfigurationResponse\022>\n\rconfi" + + "guration\030\001 \001(\0132\030.gitpod.v1.Configuration" + + "R\rconfiguration\"\220\002\n\031ListConfigurationsRe" + + "quest\022\'\n\017organization_id\030\001 \001(\tR\016organiza" + + "tionId\022\037\n\013search_term\030\002 \001(\tR\nsearchTerm\022" + + "<\n\npagination\030\003 \001(\0132\034.gitpod.v1.Paginati" + + "onRequestR\npagination\022#\n\004sort\030\004 \003(\0132\017.gi" + + "tpod.v1.SortR\004sort\0220\n\021prebuilds_enabled\030" + + "\005 \001(\010H\000R\020prebuildsEnabled\210\001\001B\024\n\022_prebuil" + + "ds_enabled\"\235\001\n\032ListConfigurationsRespons" + + "e\022@\n\016configurations\030\001 \003(\0132\030.gitpod.v1.Co" + + "nfigurationR\016configurations\022=\n\npaginatio" + + "n\030\002 \001(\0132\035.gitpod.v1.PaginationResponseR\n" + + "pagination\"\260\t\n\032UpdateConfigurationReques" + + "t\022)\n\020configuration_id\030\001 \001(\tR\017configurati" + + "onId\022\027\n\004name\030\002 \001(\tH\000R\004name\210\001\001\022h\n\021prebuil" + + "d_settings\030\003 \001(\01326.gitpod.v1.UpdateConfi" + + "gurationRequest.PrebuildSettingsH\001R\020preb" + + "uildSettings\210\001\001\022k\n\022workspace_settings\030\004 " + + "\001(\01327.gitpod.v1.UpdateConfigurationReque" + + "st.WorkspaceSettingsH\002R\021workspaceSetting" + + "s\210\001\001\032\205\003\n\020PrebuildSettings\022\035\n\007enabled\030\001 \001" + + "(\010H\000R\007enabled\210\001\001\022;\n\027branch_matching_patt" + + "ern\030\002 \001(\tH\001R\025branchMatchingPattern\210\001\001\022O\n" + + "\017branch_strategy\030\003 \001(\0162!.gitpod.v1.Branc" + + "hMatchingStrategyH\002R\016branchStrategy\210\001\001\0220" + + "\n\021prebuild_interval\030\004 \001(\005H\003R\020prebuildInt" + + "erval\210\001\001\022,\n\017workspace_class\030\005 \001(\tH\004R\016wor" + + "kspaceClass\210\001\001B\n\n\010_enabledB\032\n\030_branch_ma" + + "tching_patternB\022\n\020_branch_strategyB\024\n\022_p" + + "rebuild_intervalB\022\n\020_workspace_class\032\270\003\n" + + "\021WorkspaceSettings\022,\n\017workspace_class\030\001 " + + "\001(\tH\000R\016workspaceClass\210\001\001\022@\n\034restricted_w" + + "orkspace_classes\030\002 \003(\tR\032restrictedWorksp" + + "aceClasses\022R\n#update_restricted_workspac" + + "e_classes\030\003 \001(\010H\001R updateRestrictedWorks" + + "paceClasses\210\001\001\0226\n\027restricted_editor_name" + + "s\030\004 \003(\tR\025restrictedEditorNames\022H\n\036update" + + "_restricted_editor_names\030\005 \001(\010H\002R\033update" + + "RestrictedEditorNames\210\001\001B\022\n\020_workspace_c" + + "lassB&\n$_update_restricted_workspace_cla" + + "ssesB!\n\037_update_restricted_editor_namesB" + + "\007\n\005_nameB\024\n\022_prebuild_settingsB\025\n\023_works" + + "pace_settings\"]\n\033UpdateConfigurationResp" + + "onse\022>\n\rconfiguration\030\001 \001(\0132\030.gitpod.v1." + + "ConfigurationR\rconfiguration\"G\n\032DeleteCo" + + "nfigurationRequest\022)\n\020configuration_id\030\001" + + " \001(\tR\017configurationId\"\035\n\033DeleteConfigura" + + "tionResponse*\311\001\n\026BranchMatchingStrategy\022" + + "(\n$BRANCH_MATCHING_STRATEGY_UNSPECIFIED\020" + + "\000\022+\n\'BRANCH_MATCHING_STRATEGY_DEFAULT_BR" + + "ANCH\020\001\022)\n%BRANCH_MATCHING_STRATEGY_ALL_B" + + "RANCHES\020\002\022-\n)BRANCH_MATCHING_STRATEGY_MA" + + "TCHED_BRANCHES\020\0032\222\004\n\024ConfigurationServic" + + "e\022f\n\023CreateConfiguration\022%.gitpod.v1.Cre" + + "ateConfigurationRequest\032&.gitpod.v1.Crea" + + "teConfigurationResponse\"\000\022]\n\020GetConfigur" + + "ation\022\".gitpod.v1.GetConfigurationReques" + + "t\032#.gitpod.v1.GetConfigurationResponse\"\000" + + "\022c\n\022ListConfigurations\022$.gitpod.v1.ListC" + + "onfigurationsRequest\032%.gitpod.v1.ListCon" + + "figurationsResponse\"\000\022f\n\023UpdateConfigura" + + "tion\022%.gitpod.v1.UpdateConfigurationRequ" + + "est\032&.gitpod.v1.UpdateConfigurationRespo" + + "nse\"\000\022f\n\023DeleteConfiguration\022%.gitpod.v1" + + ".DeleteConfigurationRequest\032&.gitpod.v1." + + "DeleteConfigurationResponse\"\000BQ\n\026io.gitp" + + "od.publicapi.v1Z7github.com/gitpod-io/gi" + + "tpod/components/public-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + io.gitpod.publicapi.v1.Sorting.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_v1_Configuration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_Configuration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_Configuration_descriptor, + new java.lang.String[] { "Id", "OrganizationId", "Name", "CloneUrl", "CreationTime", "PrebuildSettings", "WorkspaceSettings", }); + internal_static_gitpod_v1_PrebuildSettings_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_PrebuildSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_PrebuildSettings_descriptor, + new java.lang.String[] { "Enabled", "BranchMatchingPattern", "BranchStrategy", "PrebuildInterval", "WorkspaceClass", }); + internal_static_gitpod_v1_WorkspaceSettings_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_WorkspaceSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceSettings_descriptor, + new java.lang.String[] { "WorkspaceClass", "RestrictedWorkspaceClasses", "RestrictedEditorNames", }); + internal_static_gitpod_v1_CreateConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_CreateConfigurationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateConfigurationRequest_descriptor, + new java.lang.String[] { "OrganizationId", "Name", "CloneUrl", }); + internal_static_gitpod_v1_CreateConfigurationResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_CreateConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateConfigurationResponse_descriptor, + new java.lang.String[] { "Configuration", }); + internal_static_gitpod_v1_GetConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_GetConfigurationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetConfigurationRequest_descriptor, + new java.lang.String[] { "ConfigurationId", }); + internal_static_gitpod_v1_GetConfigurationResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_GetConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetConfigurationResponse_descriptor, + new java.lang.String[] { "Configuration", }); + internal_static_gitpod_v1_ListConfigurationsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_ListConfigurationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListConfigurationsRequest_descriptor, + new java.lang.String[] { "OrganizationId", "SearchTerm", "Pagination", "Sort", "PrebuildsEnabled", }); + internal_static_gitpod_v1_ListConfigurationsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_ListConfigurationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListConfigurationsResponse_descriptor, + new java.lang.String[] { "Configurations", "Pagination", }); + internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_UpdateConfigurationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor, + new java.lang.String[] { "ConfigurationId", "Name", "PrebuildSettings", "WorkspaceSettings", }); + internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_descriptor = + internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateConfigurationRequest_PrebuildSettings_descriptor, + new java.lang.String[] { "Enabled", "BranchMatchingPattern", "BranchStrategy", "PrebuildInterval", "WorkspaceClass", }); + internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_descriptor = + internal_static_gitpod_v1_UpdateConfigurationRequest_descriptor.getNestedTypes().get(1); + internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateConfigurationRequest_WorkspaceSettings_descriptor, + new java.lang.String[] { "WorkspaceClass", "RestrictedWorkspaceClasses", "UpdateRestrictedWorkspaceClasses", "RestrictedEditorNames", "UpdateRestrictedEditorNames", }); + internal_static_gitpod_v1_UpdateConfigurationResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_UpdateConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateConfigurationResponse_descriptor, + new java.lang.String[] { "Configuration", }); + internal_static_gitpod_v1_DeleteConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_v1_DeleteConfigurationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteConfigurationRequest_descriptor, + new java.lang.String[] { "ConfigurationId", }); + internal_static_gitpod_v1_DeleteConfigurationResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_v1_DeleteConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteConfigurationResponse_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + io.gitpod.publicapi.v1.Sorting.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationServiceClient.kt new file mode 100644 index 00000000000000..fd817301197f61 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationServiceClient.kt @@ -0,0 +1,108 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/configuration.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class ConfigurationServiceClient( + private val client: ProtocolClientInterface, +) : ConfigurationServiceClientInterface { + /** + * Creates a new configuration. + */ + override suspend + fun createConfiguration(request: ConfigurationOuterClass.CreateConfigurationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.ConfigurationService/CreateConfiguration", + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationRequest::class, + io.gitpod.publicapi.v1.ConfigurationOuterClass.CreateConfigurationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Retrieves a configuration. + */ + override suspend fun getConfiguration(request: ConfigurationOuterClass.GetConfigurationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.ConfigurationService/GetConfiguration", + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationRequest::class, + io.gitpod.publicapi.v1.ConfigurationOuterClass.GetConfigurationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Lists configurations. + */ + override suspend + fun listConfigurations(request: ConfigurationOuterClass.ListConfigurationsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.ConfigurationService/ListConfigurations", + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsRequest::class, + io.gitpod.publicapi.v1.ConfigurationOuterClass.ListConfigurationsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Updates a configuration. + */ + override suspend + fun updateConfiguration(request: ConfigurationOuterClass.UpdateConfigurationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.ConfigurationService/UpdateConfiguration", + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationRequest::class, + io.gitpod.publicapi.v1.ConfigurationOuterClass.UpdateConfigurationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * Deletes a configuration. + */ + override suspend + fun deleteConfiguration(request: ConfigurationOuterClass.DeleteConfigurationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.ConfigurationService/DeleteConfiguration", + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationRequest::class, + io.gitpod.publicapi.v1.ConfigurationOuterClass.DeleteConfigurationResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationServiceClientInterface.kt new file mode 100644 index 00000000000000..1cd24d96c56786 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/ConfigurationServiceClientInterface.kt @@ -0,0 +1,52 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/configuration.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface ConfigurationServiceClientInterface { + /** + * Creates a new configuration. + */ + public suspend + fun createConfiguration(request: ConfigurationOuterClass.CreateConfigurationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * Retrieves a configuration. + */ + public suspend fun getConfiguration(request: ConfigurationOuterClass.GetConfigurationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * Lists configurations. + */ + public suspend fun listConfigurations(request: ConfigurationOuterClass.ListConfigurationsRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * Updates a configuration. + */ + public suspend + fun updateConfiguration(request: ConfigurationOuterClass.UpdateConfigurationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * Deletes a configuration. + */ + public suspend + fun deleteConfiguration(request: ConfigurationOuterClass.DeleteConfigurationRequest, + headers: Headers = emptyMap()): + ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Editor.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Editor.java new file mode 100644 index 00000000000000..b9780f2fdfc11a --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Editor.java @@ -0,0 +1,724 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/editor.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Editor { + private Editor() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Editor.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EditorReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.EditorReference) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string version = 2 [json_name = "version"]; + * @return The version. + */ + java.lang.String getVersion(); + /** + * string version = 2 [json_name = "version"]; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + } + /** + * Protobuf type {@code gitpod.v1.EditorReference} + */ + public static final class EditorReference extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.EditorReference) + EditorReferenceOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + EditorReference.class.getName()); + } + // Use EditorReference.newBuilder() to construct. + private EditorReference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EditorReference() { + name_ = ""; + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Editor.internal_static_gitpod_v1_EditorReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Editor.internal_static_gitpod_v1_EditorReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Editor.EditorReference.class, io.gitpod.publicapi.v1.Editor.EditorReference.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * string version = 2 [json_name = "version"]; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * string version = 2 [json_name = "version"]; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, version_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Editor.EditorReference)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Editor.EditorReference other = (io.gitpod.publicapi.v1.Editor.EditorReference) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Editor.EditorReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Editor.EditorReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Editor.EditorReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Editor.EditorReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.EditorReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.EditorReference) + io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Editor.internal_static_gitpod_v1_EditorReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Editor.internal_static_gitpod_v1_EditorReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Editor.EditorReference.class, io.gitpod.publicapi.v1.Editor.EditorReference.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Editor.EditorReference.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Editor.internal_static_gitpod_v1_EditorReference_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference build() { + io.gitpod.publicapi.v1.Editor.EditorReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference buildPartial() { + io.gitpod.publicapi.v1.Editor.EditorReference result = new io.gitpod.publicapi.v1.Editor.EditorReference(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Editor.EditorReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Editor.EditorReference) { + return mergeFrom((io.gitpod.publicapi.v1.Editor.EditorReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Editor.EditorReference other) { + if (other == io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * string version = 2 [json_name = "version"]; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string version = 2 [json_name = "version"]; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string version = 2 [json_name = "version"]; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string version = 2 [json_name = "version"]; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string version = 2 [json_name = "version"]; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.EditorReference) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.EditorReference) + private static final io.gitpod.publicapi.v1.Editor.EditorReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Editor.EditorReference(); + } + + public static io.gitpod.publicapi.v1.Editor.EditorReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EditorReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_EditorReference_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_EditorReference_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\026gitpod/v1/editor.proto\022\tgitpod.v1\"?\n\017E" + + "ditorReference\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007ve" + + "rsion\030\002 \001(\tR\007versionBQ\n\026io.gitpod.public" + + "api.v1Z7github.com/gitpod-io/gitpod/comp" + + "onents/public-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_v1_EditorReference_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_EditorReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_EditorReference_descriptor, + new java.lang.String[] { "Name", "Version", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/EnvironmentVariableServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/EnvironmentVariableServiceClient.kt new file mode 100644 index 00000000000000..992294e3c95ff1 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/EnvironmentVariableServiceClient.kt @@ -0,0 +1,186 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/envvar.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class EnvironmentVariableServiceClient( + private val client: ProtocolClientInterface, +) : EnvironmentVariableServiceClientInterface { + /** + * ListUserEnvironmentVariables returns all environment variables for the + * authenticated user. + */ + override suspend + fun listUserEnvironmentVariables(request: Envvar.ListUserEnvironmentVariablesRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.EnvironmentVariableService/ListUserEnvironmentVariables", + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest::class, + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateUserEnvironmentVariable updates an environment variable for the + * authenticated user. + */ + override suspend + fun updateUserEnvironmentVariable(request: Envvar.UpdateUserEnvironmentVariableRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.EnvironmentVariableService/UpdateUserEnvironmentVariable", + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest::class, + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * CreateUserEnvironmentVariable creates a new environment variable for the + * authenticated user. + */ + override suspend + fun createUserEnvironmentVariable(request: Envvar.CreateUserEnvironmentVariableRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.EnvironmentVariableService/CreateUserEnvironmentVariable", + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest::class, + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteUserEnvironmentVariable deletes an environment variable for the + * authenticated user. + */ + override suspend + fun deleteUserEnvironmentVariable(request: Envvar.DeleteUserEnvironmentVariableRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.EnvironmentVariableService/DeleteUserEnvironmentVariable", + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest::class, + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListConfigurationEnvironmentVariables returns all environment variables in + * a configuration. + */ + override suspend + fun listConfigurationEnvironmentVariables(request: Envvar.ListConfigurationEnvironmentVariablesRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.EnvironmentVariableService/ListConfigurationEnvironmentVariables", + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest::class, + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateConfigurationEnvironmentVariable updates an environment variable in + * a configuration. + */ + override suspend + fun updateConfigurationEnvironmentVariable(request: Envvar.UpdateConfigurationEnvironmentVariableRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.EnvironmentVariableService/UpdateConfigurationEnvironmentVariable", + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest::class, + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * CreateConfigurationEnvironmentVariable creates a new environment variable + * in a configuration. + */ + override suspend + fun createConfigurationEnvironmentVariable(request: Envvar.CreateConfigurationEnvironmentVariableRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.EnvironmentVariableService/CreateConfigurationEnvironmentVariable", + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest::class, + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteConfigurationEnvironmentVariable deletes an environment variable in + * a configuration. + */ + override suspend + fun deleteConfigurationEnvironmentVariable(request: Envvar.DeleteConfigurationEnvironmentVariableRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.EnvironmentVariableService/DeleteConfigurationEnvironmentVariable", + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest::class, + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse::class, + StreamType.UNARY, + ), + ) + + + override suspend + fun resolveWorkspaceEnvironmentVariables(request: Envvar.ResolveWorkspaceEnvironmentVariablesRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.EnvironmentVariableService/ResolveWorkspaceEnvironmentVariables", + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest::class, + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/EnvironmentVariableServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/EnvironmentVariableServiceClientInterface.kt new file mode 100644 index 00000000000000..7e3144030b32b3 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/EnvironmentVariableServiceClientInterface.kt @@ -0,0 +1,87 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/envvar.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface EnvironmentVariableServiceClientInterface { + /** + * ListUserEnvironmentVariables returns all environment variables for the + * authenticated user. + */ + public suspend + fun listUserEnvironmentVariables(request: Envvar.ListUserEnvironmentVariablesRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * UpdateUserEnvironmentVariable updates an environment variable for the + * authenticated user. + */ + public suspend + fun updateUserEnvironmentVariable(request: Envvar.UpdateUserEnvironmentVariableRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * CreateUserEnvironmentVariable creates a new environment variable for the + * authenticated user. + */ + public suspend + fun createUserEnvironmentVariable(request: Envvar.CreateUserEnvironmentVariableRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * DeleteUserEnvironmentVariable deletes an environment variable for the + * authenticated user. + */ + public suspend + fun deleteUserEnvironmentVariable(request: Envvar.DeleteUserEnvironmentVariableRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * ListConfigurationEnvironmentVariables returns all environment variables in + * a configuration. + */ + public suspend + fun listConfigurationEnvironmentVariables(request: Envvar.ListConfigurationEnvironmentVariablesRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * UpdateConfigurationEnvironmentVariable updates an environment variable in + * a configuration. + */ + public suspend + fun updateConfigurationEnvironmentVariable(request: Envvar.UpdateConfigurationEnvironmentVariableRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * CreateConfigurationEnvironmentVariable creates a new environment variable + * in a configuration. + */ + public suspend + fun createConfigurationEnvironmentVariable(request: Envvar.CreateConfigurationEnvironmentVariableRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * DeleteConfigurationEnvironmentVariable deletes an environment variable in + * a configuration. + */ + public suspend + fun deleteConfigurationEnvironmentVariable(request: Envvar.DeleteConfigurationEnvironmentVariableRequest, + headers: Headers = emptyMap()): + ResponseMessage + + public suspend + fun resolveWorkspaceEnvironmentVariables(request: Envvar.ResolveWorkspaceEnvironmentVariablesRequest, + headers: Headers = emptyMap()): + ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Envvar.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Envvar.java new file mode 100644 index 00000000000000..3c1f46994d437f --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Envvar.java @@ -0,0 +1,15387 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/envvar.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Envvar { + private Envvar() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Envvar.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code gitpod.v1.EnvironmentVariableAdmission} + */ + public enum EnvironmentVariableAdmission + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ENVIRONMENT_VARIABLE_ADMISSION_UNSPECIFIED = 0; + */ + ENVIRONMENT_VARIABLE_ADMISSION_UNSPECIFIED(0), + /** + * ENVIRONMENT_VARIABLE_ADMISSION_PREBUILD = 1; + */ + ENVIRONMENT_VARIABLE_ADMISSION_PREBUILD(1), + /** + * ENVIRONMENT_VARIABLE_ADMISSION_EVERYWHERE = 2; + */ + ENVIRONMENT_VARIABLE_ADMISSION_EVERYWHERE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + EnvironmentVariableAdmission.class.getName()); + } + /** + * ENVIRONMENT_VARIABLE_ADMISSION_UNSPECIFIED = 0; + */ + public static final int ENVIRONMENT_VARIABLE_ADMISSION_UNSPECIFIED_VALUE = 0; + /** + * ENVIRONMENT_VARIABLE_ADMISSION_PREBUILD = 1; + */ + public static final int ENVIRONMENT_VARIABLE_ADMISSION_PREBUILD_VALUE = 1; + /** + * ENVIRONMENT_VARIABLE_ADMISSION_EVERYWHERE = 2; + */ + public static final int ENVIRONMENT_VARIABLE_ADMISSION_EVERYWHERE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnvironmentVariableAdmission valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EnvironmentVariableAdmission forNumber(int value) { + switch (value) { + case 0: return ENVIRONMENT_VARIABLE_ADMISSION_UNSPECIFIED; + case 1: return ENVIRONMENT_VARIABLE_ADMISSION_PREBUILD; + case 2: return ENVIRONMENT_VARIABLE_ADMISSION_EVERYWHERE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EnvironmentVariableAdmission> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnvironmentVariableAdmission findValueByNumber(int number) { + return EnvironmentVariableAdmission.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.getDescriptor().getEnumTypes().get(0); + } + + private static final EnvironmentVariableAdmission[] VALUES = values(); + + public static EnvironmentVariableAdmission valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EnvironmentVariableAdmission(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.EnvironmentVariableAdmission) + } + + public interface UserEnvironmentVariableOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UserEnvironmentVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string value = 3 [json_name = "value"]; + * @return The value. + */ + java.lang.String getValue(); + /** + * string value = 3 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + * string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The repositoryPattern. + */ + java.lang.String getRepositoryPattern(); + /** + * string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The bytes for repositoryPattern. + */ + com.google.protobuf.ByteString + getRepositoryPatternBytes(); + } + /** + * Protobuf type {@code gitpod.v1.UserEnvironmentVariable} + */ + public static final class UserEnvironmentVariable extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UserEnvironmentVariable) + UserEnvironmentVariableOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UserEnvironmentVariable.class.getName()); + } + // Use UserEnvironmentVariable.newBuilder() to construct. + private UserEnvironmentVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UserEnvironmentVariable() { + id_ = ""; + name_ = ""; + value_ = ""; + repositoryPattern_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UserEnvironmentVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UserEnvironmentVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.class, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * string value = 3 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * string value = 3 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_PATTERN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object repositoryPattern_ = ""; + /** + * string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The repositoryPattern. + */ + @java.lang.Override + public java.lang.String getRepositoryPattern() { + java.lang.Object ref = repositoryPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryPattern_ = s; + return s; + } + } + /** + * string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The bytes for repositoryPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRepositoryPatternBytes() { + java.lang.Object ref = repositoryPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repositoryPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repositoryPattern_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, repositoryPattern_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repositoryPattern_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, repositoryPattern_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable other = (io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getRepositoryPattern() + .equals(other.getRepositoryPattern())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + REPOSITORY_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getRepositoryPattern().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UserEnvironmentVariable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UserEnvironmentVariable) + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UserEnvironmentVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UserEnvironmentVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.class, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + name_ = ""; + value_ = ""; + repositoryPattern_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UserEnvironmentVariable_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable build() { + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable buildPartial() { + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable result = new io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.repositoryPattern_ = repositoryPattern_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable other) { + if (other == io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRepositoryPattern().isEmpty()) { + repositoryPattern_ = other.repositoryPattern_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + repositoryPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 3 [json_name = "value"]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 3 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 3 [json_name = "value"]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string value = 3 [json_name = "value"]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string value = 3 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object repositoryPattern_ = ""; + /** + * string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The repositoryPattern. + */ + public java.lang.String getRepositoryPattern() { + java.lang.Object ref = repositoryPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The bytes for repositoryPattern. + */ + public com.google.protobuf.ByteString + getRepositoryPatternBytes() { + java.lang.Object ref = repositoryPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repositoryPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @param value The repositoryPattern to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPattern( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + repositoryPattern_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return This builder for chaining. + */ + public Builder clearRepositoryPattern() { + repositoryPattern_ = getDefaultInstance().getRepositoryPattern(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @param value The bytes for repositoryPattern to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPatternBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + repositoryPattern_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UserEnvironmentVariable) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UserEnvironmentVariable) + private static final io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable(); + } + + public static io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserEnvironmentVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListUserEnvironmentVariablesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListUserEnvironmentVariablesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListUserEnvironmentVariablesRequest} + */ + public static final class ListUserEnvironmentVariablesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListUserEnvironmentVariablesRequest) + ListUserEnvironmentVariablesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListUserEnvironmentVariablesRequest.class.getName()); + } + // Use ListUserEnvironmentVariablesRequest.newBuilder() to construct. + private ListUserEnvironmentVariablesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListUserEnvironmentVariablesRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest.class, io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest other = (io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListUserEnvironmentVariablesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListUserEnvironmentVariablesRequest) + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest.class, io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest build() { + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest buildPartial() { + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest result = new io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest other) { + if (other == io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListUserEnvironmentVariablesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListUserEnvironmentVariablesRequest) + private static final io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest(); + } + + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUserEnvironmentVariablesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListUserEnvironmentVariablesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListUserEnvironmentVariablesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + java.util.List + getEnvironmentVariablesList(); + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getEnvironmentVariables(int index); + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + int getEnvironmentVariablesCount(); + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + java.util.List + getEnvironmentVariablesOrBuilderList(); + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index); + + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListUserEnvironmentVariablesResponse} + */ + public static final class ListUserEnvironmentVariablesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListUserEnvironmentVariablesResponse) + ListUserEnvironmentVariablesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListUserEnvironmentVariablesResponse.class.getName()); + } + // Use ListUserEnvironmentVariablesResponse.newBuilder() to construct. + private ListUserEnvironmentVariablesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListUserEnvironmentVariablesResponse() { + environmentVariables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse.class, io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse.Builder.class); + } + + private int bitField0_; + public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List environmentVariables_; + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public java.util.List getEnvironmentVariablesList() { + return environmentVariables_; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public java.util.List + getEnvironmentVariablesOrBuilderList() { + return environmentVariables_; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public int getEnvironmentVariablesCount() { + return environmentVariables_.size(); + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getEnvironmentVariables(int index) { + return environmentVariables_.get(index); + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index) { + return environmentVariables_.get(index); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < environmentVariables_.size(); i++) { + output.writeMessage(1, environmentVariables_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < environmentVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, environmentVariables_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse other = (io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse) obj; + + if (!getEnvironmentVariablesList() + .equals(other.getEnvironmentVariablesList())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnvironmentVariablesCount() > 0) { + hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariablesList().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListUserEnvironmentVariablesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListUserEnvironmentVariablesResponse) + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse.class, io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getEnvironmentVariablesFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (environmentVariablesBuilder_ == null) { + environmentVariables_ = java.util.Collections.emptyList(); + } else { + environmentVariables_ = null; + environmentVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse build() { + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse buildPartial() { + io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse result = new io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse result) { + if (environmentVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + environmentVariables_ = java.util.Collections.unmodifiableList(environmentVariables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.environmentVariables_ = environmentVariables_; + } else { + result.environmentVariables_ = environmentVariablesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse other) { + if (other == io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse.getDefaultInstance()) return this; + if (environmentVariablesBuilder_ == null) { + if (!other.environmentVariables_.isEmpty()) { + if (environmentVariables_.isEmpty()) { + environmentVariables_ = other.environmentVariables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.addAll(other.environmentVariables_); + } + onChanged(); + } + } else { + if (!other.environmentVariables_.isEmpty()) { + if (environmentVariablesBuilder_.isEmpty()) { + environmentVariablesBuilder_.dispose(); + environmentVariablesBuilder_ = null; + environmentVariables_ = other.environmentVariables_; + bitField0_ = (bitField0_ & ~0x00000001); + environmentVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getEnvironmentVariablesFieldBuilder() : null; + } else { + environmentVariablesBuilder_.addAllMessages(other.environmentVariables_); + } + } + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable m = + input.readMessage( + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.parser(), + extensionRegistry); + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(m); + } else { + environmentVariablesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List environmentVariables_ = + java.util.Collections.emptyList(); + private void ensureEnvironmentVariablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + environmentVariables_ = new java.util.ArrayList(environmentVariables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder> environmentVariablesBuilder_; + + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public java.util.List getEnvironmentVariablesList() { + if (environmentVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(environmentVariables_); + } else { + return environmentVariablesBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public int getEnvironmentVariablesCount() { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.size(); + } else { + return environmentVariablesBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getEnvironmentVariables(int index) { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.get(index); + } else { + return environmentVariablesBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder setEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.set(index, value); + onChanged(); + } else { + environmentVariablesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder setEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables(io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(value); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(index, value); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addAllEnvironmentVariables( + java.lang.Iterable values) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, environmentVariables_); + onChanged(); + } else { + environmentVariablesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder clearEnvironmentVariables() { + if (environmentVariablesBuilder_ == null) { + environmentVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + environmentVariablesBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder removeEnvironmentVariables(int index) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.remove(index); + onChanged(); + } else { + environmentVariablesBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder getEnvironmentVariablesBuilder( + int index) { + return getEnvironmentVariablesFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index) { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.get(index); } else { + return environmentVariablesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public java.util.List + getEnvironmentVariablesOrBuilderList() { + if (environmentVariablesBuilder_ != null) { + return environmentVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(environmentVariables_); + } + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder addEnvironmentVariablesBuilder() { + return getEnvironmentVariablesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder addEnvironmentVariablesBuilder( + int index) { + return getEnvironmentVariablesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.UserEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public java.util.List + getEnvironmentVariablesBuilderList() { + return getEnvironmentVariablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder> + getEnvironmentVariablesFieldBuilder() { + if (environmentVariablesBuilder_ == null) { + environmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder>( + environmentVariables_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + environmentVariables_ = null; + } + return environmentVariablesBuilder_; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListUserEnvironmentVariablesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListUserEnvironmentVariablesResponse) + private static final io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse(); + } + + public static io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUserEnvironmentVariablesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListUserEnvironmentVariablesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateUserEnvironmentVariableRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateUserEnvironmentVariableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + java.lang.String getEnvironmentVariableId(); + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + com.google.protobuf.ByteString + getEnvironmentVariableIdBytes(); + + /** + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string value = 3 [json_name = "value"]; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * optional string value = 3 [json_name = "value"]; + * @return The value. + */ + java.lang.String getValue(); + /** + * optional string value = 3 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return Whether the repositoryPattern field is set. + */ + boolean hasRepositoryPattern(); + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The repositoryPattern. + */ + java.lang.String getRepositoryPattern(); + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The bytes for repositoryPattern. + */ + com.google.protobuf.ByteString + getRepositoryPatternBytes(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserEnvironmentVariableRequest} + */ + public static final class UpdateUserEnvironmentVariableRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateUserEnvironmentVariableRequest) + UpdateUserEnvironmentVariableRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateUserEnvironmentVariableRequest.class.getName()); + } + // Use UpdateUserEnvironmentVariableRequest.newBuilder() to construct. + private UpdateUserEnvironmentVariableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateUserEnvironmentVariableRequest() { + environmentVariableId_ = ""; + name_ = ""; + value_ = ""; + repositoryPattern_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest.Builder.class); + } + + private int bitField0_; + public static final int ENVIRONMENT_VARIABLE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object environmentVariableId_ = ""; + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + @java.lang.Override + public java.lang.String getEnvironmentVariableId() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentVariableId_ = s; + return s; + } + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEnvironmentVariableIdBytes() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentVariableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * optional string value = 3 [json_name = "value"]; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string value = 3 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * optional string value = 3 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_PATTERN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object repositoryPattern_ = ""; + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return Whether the repositoryPattern field is set. + */ + @java.lang.Override + public boolean hasRepositoryPattern() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The repositoryPattern. + */ + @java.lang.Override + public java.lang.String getRepositoryPattern() { + java.lang.Object ref = repositoryPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryPattern_ = s; + return s; + } + } + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The bytes for repositoryPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRepositoryPatternBytes() { + java.lang.Object ref = repositoryPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repositoryPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentVariableId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, environmentVariableId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, value_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, repositoryPattern_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentVariableId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, environmentVariableId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, value_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, repositoryPattern_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest other = (io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest) obj; + + if (!getEnvironmentVariableId() + .equals(other.getEnvironmentVariableId())) return false; + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (hasRepositoryPattern() != other.hasRepositoryPattern()) return false; + if (hasRepositoryPattern()) { + if (!getRepositoryPattern() + .equals(other.getRepositoryPattern())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENVIRONMENT_VARIABLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariableId().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasRepositoryPattern()) { + hash = (37 * hash) + REPOSITORY_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getRepositoryPattern().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserEnvironmentVariableRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateUserEnvironmentVariableRequest) + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environmentVariableId_ = ""; + name_ = ""; + value_ = ""; + repositoryPattern_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest build() { + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest buildPartial() { + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest result = new io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environmentVariableId_ = environmentVariableId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = value_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.repositoryPattern_ = repositoryPattern_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest other) { + if (other == io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest.getDefaultInstance()) return this; + if (!other.getEnvironmentVariableId().isEmpty()) { + environmentVariableId_ = other.environmentVariableId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasValue()) { + value_ = other.value_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRepositoryPattern()) { + repositoryPattern_ = other.repositoryPattern_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + environmentVariableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + repositoryPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object environmentVariableId_ = ""; + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + public java.lang.String getEnvironmentVariableId() { + java.lang.Object ref = environmentVariableId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentVariableId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + public com.google.protobuf.ByteString + getEnvironmentVariableIdBytes() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentVariableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @param value The environmentVariableId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentVariableId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + environmentVariableId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return This builder for chaining. + */ + public Builder clearEnvironmentVariableId() { + environmentVariableId_ = getDefaultInstance().getEnvironmentVariableId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @param value The bytes for environmentVariableId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentVariableIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + environmentVariableId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * optional string value = 3 [json_name = "value"]; + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string value = 3 [json_name = "value"]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string value = 3 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string value = 3 [json_name = "value"]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string value = 3 [json_name = "value"]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string value = 3 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object repositoryPattern_ = ""; + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return Whether the repositoryPattern field is set. + */ + public boolean hasRepositoryPattern() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The repositoryPattern. + */ + public java.lang.String getRepositoryPattern() { + java.lang.Object ref = repositoryPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return The bytes for repositoryPattern. + */ + public com.google.protobuf.ByteString + getRepositoryPatternBytes() { + java.lang.Object ref = repositoryPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repositoryPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @param value The repositoryPattern to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPattern( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + repositoryPattern_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @return This builder for chaining. + */ + public Builder clearRepositoryPattern() { + repositoryPattern_ = getDefaultInstance().getRepositoryPattern(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * optional string repository_pattern = 4 [json_name = "repositoryPattern"]; + * @param value The bytes for repositoryPattern to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPatternBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + repositoryPattern_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateUserEnvironmentVariableRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateUserEnvironmentVariableRequest) + private static final io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest(); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUserEnvironmentVariableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateUserEnvironmentVariableResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateUserEnvironmentVariableResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + boolean hasEnvironmentVariable(); + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getEnvironmentVariable(); + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserEnvironmentVariableResponse} + */ + public static final class UpdateUserEnvironmentVariableResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateUserEnvironmentVariableResponse) + UpdateUserEnvironmentVariableResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateUserEnvironmentVariableResponse.class.getName()); + } + // Use UpdateUserEnvironmentVariableResponse.newBuilder() to construct. + private UpdateUserEnvironmentVariableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateUserEnvironmentVariableResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse.Builder.class); + } + + private int bitField0_; + public static final int ENVIRONMENT_VARIABLE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable environmentVariable_; + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + @java.lang.Override + public boolean hasEnvironmentVariable() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getEnvironmentVariable() { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder() { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEnvironmentVariable()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEnvironmentVariable()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse other = (io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse) obj; + + if (hasEnvironmentVariable() != other.hasEnvironmentVariable()) return false; + if (hasEnvironmentVariable()) { + if (!getEnvironmentVariable() + .equals(other.getEnvironmentVariable())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnvironmentVariable()) { + hash = (37 * hash) + ENVIRONMENT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariable().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserEnvironmentVariableResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateUserEnvironmentVariableResponse) + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getEnvironmentVariableFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environmentVariable_ = null; + if (environmentVariableBuilder_ != null) { + environmentVariableBuilder_.dispose(); + environmentVariableBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse build() { + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse buildPartial() { + io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse result = new io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environmentVariable_ = environmentVariableBuilder_ == null + ? environmentVariable_ + : environmentVariableBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse other) { + if (other == io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse.getDefaultInstance()) return this; + if (other.hasEnvironmentVariable()) { + mergeEnvironmentVariable(other.getEnvironmentVariable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEnvironmentVariableFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable environmentVariable_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder> environmentVariableBuilder_; + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + public boolean hasEnvironmentVariable() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getEnvironmentVariable() { + if (environmentVariableBuilder_ == null) { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } else { + return environmentVariableBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder setEnvironmentVariable(io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable value) { + if (environmentVariableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environmentVariable_ = value; + } else { + environmentVariableBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder setEnvironmentVariable( + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder builderForValue) { + if (environmentVariableBuilder_ == null) { + environmentVariable_ = builderForValue.build(); + } else { + environmentVariableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder mergeEnvironmentVariable(io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable value) { + if (environmentVariableBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + environmentVariable_ != null && + environmentVariable_ != io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance()) { + getEnvironmentVariableBuilder().mergeFrom(value); + } else { + environmentVariable_ = value; + } + } else { + environmentVariableBuilder_.mergeFrom(value); + } + if (environmentVariable_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder clearEnvironmentVariable() { + bitField0_ = (bitField0_ & ~0x00000001); + environmentVariable_ = null; + if (environmentVariableBuilder_ != null) { + environmentVariableBuilder_.dispose(); + environmentVariableBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder getEnvironmentVariableBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEnvironmentVariableFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder() { + if (environmentVariableBuilder_ != null) { + return environmentVariableBuilder_.getMessageOrBuilder(); + } else { + return environmentVariable_ == null ? + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder> + getEnvironmentVariableFieldBuilder() { + if (environmentVariableBuilder_ == null) { + environmentVariableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder>( + getEnvironmentVariable(), + getParentForChildren(), + isClean()); + environmentVariable_ = null; + } + return environmentVariableBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateUserEnvironmentVariableResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateUserEnvironmentVariableResponse) + private static final io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse(); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUserEnvironmentVariableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateUserEnvironmentVariableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateUserEnvironmentVariableRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateUserEnvironmentVariableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string value = 2 [json_name = "value"]; + * @return The value. + */ + java.lang.String getValue(); + /** + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + * string repository_pattern = 3 [json_name = "repositoryPattern"]; + * @return The repositoryPattern. + */ + java.lang.String getRepositoryPattern(); + /** + * string repository_pattern = 3 [json_name = "repositoryPattern"]; + * @return The bytes for repositoryPattern. + */ + com.google.protobuf.ByteString + getRepositoryPatternBytes(); + } + /** + * Protobuf type {@code gitpod.v1.CreateUserEnvironmentVariableRequest} + */ + public static final class CreateUserEnvironmentVariableRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateUserEnvironmentVariableRequest) + CreateUserEnvironmentVariableRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateUserEnvironmentVariableRequest.class.getName()); + } + // Use CreateUserEnvironmentVariableRequest.newBuilder() to construct. + private CreateUserEnvironmentVariableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateUserEnvironmentVariableRequest() { + name_ = ""; + value_ = ""; + repositoryPattern_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * string value = 2 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_PATTERN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object repositoryPattern_ = ""; + /** + * string repository_pattern = 3 [json_name = "repositoryPattern"]; + * @return The repositoryPattern. + */ + @java.lang.Override + public java.lang.String getRepositoryPattern() { + java.lang.Object ref = repositoryPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryPattern_ = s; + return s; + } + } + /** + * string repository_pattern = 3 [json_name = "repositoryPattern"]; + * @return The bytes for repositoryPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRepositoryPatternBytes() { + java.lang.Object ref = repositoryPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repositoryPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repositoryPattern_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, repositoryPattern_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repositoryPattern_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, repositoryPattern_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest other = (io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getRepositoryPattern() + .equals(other.getRepositoryPattern())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + REPOSITORY_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getRepositoryPattern().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateUserEnvironmentVariableRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateUserEnvironmentVariableRequest) + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + value_ = ""; + repositoryPattern_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest build() { + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest buildPartial() { + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest result = new io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.repositoryPattern_ = repositoryPattern_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest other) { + if (other == io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRepositoryPattern().isEmpty()) { + repositoryPattern_ = other.repositoryPattern_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + repositoryPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 2 [json_name = "value"]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 2 [json_name = "value"]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string value = 2 [json_name = "value"]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string value = 2 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object repositoryPattern_ = ""; + /** + * string repository_pattern = 3 [json_name = "repositoryPattern"]; + * @return The repositoryPattern. + */ + public java.lang.String getRepositoryPattern() { + java.lang.Object ref = repositoryPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string repository_pattern = 3 [json_name = "repositoryPattern"]; + * @return The bytes for repositoryPattern. + */ + public com.google.protobuf.ByteString + getRepositoryPatternBytes() { + java.lang.Object ref = repositoryPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repositoryPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string repository_pattern = 3 [json_name = "repositoryPattern"]; + * @param value The repositoryPattern to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPattern( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + repositoryPattern_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string repository_pattern = 3 [json_name = "repositoryPattern"]; + * @return This builder for chaining. + */ + public Builder clearRepositoryPattern() { + repositoryPattern_ = getDefaultInstance().getRepositoryPattern(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string repository_pattern = 3 [json_name = "repositoryPattern"]; + * @param value The bytes for repositoryPattern to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPatternBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + repositoryPattern_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateUserEnvironmentVariableRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateUserEnvironmentVariableRequest) + private static final io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest(); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUserEnvironmentVariableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateUserEnvironmentVariableResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateUserEnvironmentVariableResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + boolean hasEnvironmentVariable(); + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getEnvironmentVariable(); + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateUserEnvironmentVariableResponse} + */ + public static final class CreateUserEnvironmentVariableResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateUserEnvironmentVariableResponse) + CreateUserEnvironmentVariableResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateUserEnvironmentVariableResponse.class.getName()); + } + // Use CreateUserEnvironmentVariableResponse.newBuilder() to construct. + private CreateUserEnvironmentVariableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateUserEnvironmentVariableResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse.Builder.class); + } + + private int bitField0_; + public static final int ENVIRONMENT_VARIABLE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable environmentVariable_; + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + @java.lang.Override + public boolean hasEnvironmentVariable() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getEnvironmentVariable() { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder() { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEnvironmentVariable()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEnvironmentVariable()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse other = (io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse) obj; + + if (hasEnvironmentVariable() != other.hasEnvironmentVariable()) return false; + if (hasEnvironmentVariable()) { + if (!getEnvironmentVariable() + .equals(other.getEnvironmentVariable())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnvironmentVariable()) { + hash = (37 * hash) + ENVIRONMENT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariable().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateUserEnvironmentVariableResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateUserEnvironmentVariableResponse) + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getEnvironmentVariableFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environmentVariable_ = null; + if (environmentVariableBuilder_ != null) { + environmentVariableBuilder_.dispose(); + environmentVariableBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse build() { + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse buildPartial() { + io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse result = new io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environmentVariable_ = environmentVariableBuilder_ == null + ? environmentVariable_ + : environmentVariableBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse other) { + if (other == io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse.getDefaultInstance()) return this; + if (other.hasEnvironmentVariable()) { + mergeEnvironmentVariable(other.getEnvironmentVariable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEnvironmentVariableFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable environmentVariable_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder> environmentVariableBuilder_; + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + public boolean hasEnvironmentVariable() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable getEnvironmentVariable() { + if (environmentVariableBuilder_ == null) { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } else { + return environmentVariableBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder setEnvironmentVariable(io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable value) { + if (environmentVariableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environmentVariable_ = value; + } else { + environmentVariableBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder setEnvironmentVariable( + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder builderForValue) { + if (environmentVariableBuilder_ == null) { + environmentVariable_ = builderForValue.build(); + } else { + environmentVariableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder mergeEnvironmentVariable(io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable value) { + if (environmentVariableBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + environmentVariable_ != null && + environmentVariable_ != io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance()) { + getEnvironmentVariableBuilder().mergeFrom(value); + } else { + environmentVariable_ = value; + } + } else { + environmentVariableBuilder_.mergeFrom(value); + } + if (environmentVariable_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder clearEnvironmentVariable() { + bitField0_ = (bitField0_ & ~0x00000001); + environmentVariable_ = null; + if (environmentVariableBuilder_ != null) { + environmentVariableBuilder_.dispose(); + environmentVariableBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder getEnvironmentVariableBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEnvironmentVariableFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder() { + if (environmentVariableBuilder_ != null) { + return environmentVariableBuilder_.getMessageOrBuilder(); + } else { + return environmentVariable_ == null ? + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + } + /** + * .gitpod.v1.UserEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder> + getEnvironmentVariableFieldBuilder() { + if (environmentVariableBuilder_ == null) { + environmentVariableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.UserEnvironmentVariableOrBuilder>( + getEnvironmentVariable(), + getParentForChildren(), + isClean()); + environmentVariable_ = null; + } + return environmentVariableBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateUserEnvironmentVariableResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateUserEnvironmentVariableResponse) + private static final io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse(); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUserEnvironmentVariableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateUserEnvironmentVariableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteUserEnvironmentVariableRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteUserEnvironmentVariableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + java.lang.String getEnvironmentVariableId(); + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + com.google.protobuf.ByteString + getEnvironmentVariableIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteUserEnvironmentVariableRequest} + */ + public static final class DeleteUserEnvironmentVariableRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteUserEnvironmentVariableRequest) + DeleteUserEnvironmentVariableRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteUserEnvironmentVariableRequest.class.getName()); + } + // Use DeleteUserEnvironmentVariableRequest.newBuilder() to construct. + private DeleteUserEnvironmentVariableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteUserEnvironmentVariableRequest() { + environmentVariableId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest.Builder.class); + } + + public static final int ENVIRONMENT_VARIABLE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object environmentVariableId_ = ""; + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + @java.lang.Override + public java.lang.String getEnvironmentVariableId() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentVariableId_ = s; + return s; + } + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEnvironmentVariableIdBytes() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentVariableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentVariableId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, environmentVariableId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentVariableId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, environmentVariableId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest other = (io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest) obj; + + if (!getEnvironmentVariableId() + .equals(other.getEnvironmentVariableId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENVIRONMENT_VARIABLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariableId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteUserEnvironmentVariableRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteUserEnvironmentVariableRequest) + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environmentVariableId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest build() { + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest buildPartial() { + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest result = new io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environmentVariableId_ = environmentVariableId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest other) { + if (other == io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest.getDefaultInstance()) return this; + if (!other.getEnvironmentVariableId().isEmpty()) { + environmentVariableId_ = other.environmentVariableId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + environmentVariableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object environmentVariableId_ = ""; + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + public java.lang.String getEnvironmentVariableId() { + java.lang.Object ref = environmentVariableId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentVariableId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + public com.google.protobuf.ByteString + getEnvironmentVariableIdBytes() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentVariableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @param value The environmentVariableId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentVariableId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + environmentVariableId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return This builder for chaining. + */ + public Builder clearEnvironmentVariableId() { + environmentVariableId_ = getDefaultInstance().getEnvironmentVariableId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @param value The bytes for environmentVariableId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentVariableIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + environmentVariableId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteUserEnvironmentVariableRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteUserEnvironmentVariableRequest) + private static final io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest(); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUserEnvironmentVariableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteUserEnvironmentVariableResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteUserEnvironmentVariableResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteUserEnvironmentVariableResponse} + */ + public static final class DeleteUserEnvironmentVariableResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteUserEnvironmentVariableResponse) + DeleteUserEnvironmentVariableResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteUserEnvironmentVariableResponse.class.getName()); + } + // Use DeleteUserEnvironmentVariableResponse.newBuilder() to construct. + private DeleteUserEnvironmentVariableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteUserEnvironmentVariableResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse other = (io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteUserEnvironmentVariableResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteUserEnvironmentVariableResponse) + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse build() { + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse buildPartial() { + io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse result = new io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse other) { + if (other == io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteUserEnvironmentVariableResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteUserEnvironmentVariableResponse) + private static final io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse(); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUserEnvironmentVariableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteUserEnvironmentVariableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConfigurationEnvironmentVariableOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ConfigurationEnvironmentVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + int getAdmissionValue(); + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The admission. + */ + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission getAdmission(); + } + /** + * Protobuf type {@code gitpod.v1.ConfigurationEnvironmentVariable} + */ + public static final class ConfigurationEnvironmentVariable extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ConfigurationEnvironmentVariable) + ConfigurationEnvironmentVariableOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ConfigurationEnvironmentVariable.class.getName()); + } + // Use ConfigurationEnvironmentVariable.newBuilder() to construct. + private ConfigurationEnvironmentVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ConfigurationEnvironmentVariable() { + id_ = ""; + name_ = ""; + configurationId_ = ""; + admission_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ConfigurationEnvironmentVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ConfigurationEnvironmentVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.class, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMISSION_FIELD_NUMBER = 5; + private int admission_ = 0; + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission getAdmission() { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission result = io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, configurationId_); + } + if (admission_ != io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.ENVIRONMENT_VARIABLE_ADMISSION_UNSPECIFIED.getNumber()) { + output.writeEnum(5, admission_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, configurationId_); + } + if (admission_ != io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.ENVIRONMENT_VARIABLE_ADMISSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, admission_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable other = (io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (admission_ != other.admission_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (37 * hash) + ADMISSION_FIELD_NUMBER; + hash = (53 * hash) + admission_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ConfigurationEnvironmentVariable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ConfigurationEnvironmentVariable) + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ConfigurationEnvironmentVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ConfigurationEnvironmentVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.class, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + name_ = ""; + configurationId_ = ""; + admission_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ConfigurationEnvironmentVariable_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable build() { + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable buildPartial() { + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable result = new io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.configurationId_ = configurationId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.admission_ = admission_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable other) { + if (other == io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.admission_ != 0) { + setAdmissionValue(other.getAdmissionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: { + admission_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int admission_ = 0; + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @param value The enum numeric value on the wire for admission to set. + * @return This builder for chaining. + */ + public Builder setAdmissionValue(int value) { + admission_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission getAdmission() { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission result = io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @param value The admission to set. + * @return This builder for chaining. + */ + public Builder setAdmission(io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + admission_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return This builder for chaining. + */ + public Builder clearAdmission() { + bitField0_ = (bitField0_ & ~0x00000008); + admission_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ConfigurationEnvironmentVariable) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ConfigurationEnvironmentVariable) + private static final io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable(); + } + + public static io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigurationEnvironmentVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListConfigurationEnvironmentVariablesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListConfigurationEnvironmentVariablesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListConfigurationEnvironmentVariablesRequest} + */ + public static final class ListConfigurationEnvironmentVariablesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListConfigurationEnvironmentVariablesRequest) + ListConfigurationEnvironmentVariablesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListConfigurationEnvironmentVariablesRequest.class.getName()); + } + // Use ListConfigurationEnvironmentVariablesRequest.newBuilder() to construct. + private ListConfigurationEnvironmentVariablesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListConfigurationEnvironmentVariablesRequest() { + configurationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest.class, io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest.Builder.class); + } + + private int bitField0_; + public static final int CONFIGURATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, configurationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, configurationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest other = (io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest) obj; + + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListConfigurationEnvironmentVariablesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListConfigurationEnvironmentVariablesRequest) + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest.class, io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configurationId_ = ""; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest build() { + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest buildPartial() { + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest result = new io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configurationId_ = configurationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest other) { + if (other == io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest.getDefaultInstance()) return this; + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListConfigurationEnvironmentVariablesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListConfigurationEnvironmentVariablesRequest) + private static final io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest(); + } + + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConfigurationEnvironmentVariablesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListConfigurationEnvironmentVariablesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListConfigurationEnvironmentVariablesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + java.util.List + getEnvironmentVariablesList(); + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getEnvironmentVariables(int index); + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + int getEnvironmentVariablesCount(); + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + java.util.List + getEnvironmentVariablesOrBuilderList(); + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index); + + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListConfigurationEnvironmentVariablesResponse} + */ + public static final class ListConfigurationEnvironmentVariablesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListConfigurationEnvironmentVariablesResponse) + ListConfigurationEnvironmentVariablesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListConfigurationEnvironmentVariablesResponse.class.getName()); + } + // Use ListConfigurationEnvironmentVariablesResponse.newBuilder() to construct. + private ListConfigurationEnvironmentVariablesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListConfigurationEnvironmentVariablesResponse() { + environmentVariables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse.class, io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse.Builder.class); + } + + private int bitField0_; + public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List environmentVariables_; + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public java.util.List getEnvironmentVariablesList() { + return environmentVariables_; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public java.util.List + getEnvironmentVariablesOrBuilderList() { + return environmentVariables_; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public int getEnvironmentVariablesCount() { + return environmentVariables_.size(); + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getEnvironmentVariables(int index) { + return environmentVariables_.get(index); + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index) { + return environmentVariables_.get(index); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < environmentVariables_.size(); i++) { + output.writeMessage(1, environmentVariables_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < environmentVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, environmentVariables_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse other = (io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse) obj; + + if (!getEnvironmentVariablesList() + .equals(other.getEnvironmentVariablesList())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnvironmentVariablesCount() > 0) { + hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariablesList().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListConfigurationEnvironmentVariablesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListConfigurationEnvironmentVariablesResponse) + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse.class, io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getEnvironmentVariablesFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (environmentVariablesBuilder_ == null) { + environmentVariables_ = java.util.Collections.emptyList(); + } else { + environmentVariables_ = null; + environmentVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse build() { + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse buildPartial() { + io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse result = new io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse result) { + if (environmentVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + environmentVariables_ = java.util.Collections.unmodifiableList(environmentVariables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.environmentVariables_ = environmentVariables_; + } else { + result.environmentVariables_ = environmentVariablesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse other) { + if (other == io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse.getDefaultInstance()) return this; + if (environmentVariablesBuilder_ == null) { + if (!other.environmentVariables_.isEmpty()) { + if (environmentVariables_.isEmpty()) { + environmentVariables_ = other.environmentVariables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.addAll(other.environmentVariables_); + } + onChanged(); + } + } else { + if (!other.environmentVariables_.isEmpty()) { + if (environmentVariablesBuilder_.isEmpty()) { + environmentVariablesBuilder_.dispose(); + environmentVariablesBuilder_ = null; + environmentVariables_ = other.environmentVariables_; + bitField0_ = (bitField0_ & ~0x00000001); + environmentVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getEnvironmentVariablesFieldBuilder() : null; + } else { + environmentVariablesBuilder_.addAllMessages(other.environmentVariables_); + } + } + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable m = + input.readMessage( + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.parser(), + extensionRegistry); + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(m); + } else { + environmentVariablesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List environmentVariables_ = + java.util.Collections.emptyList(); + private void ensureEnvironmentVariablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + environmentVariables_ = new java.util.ArrayList(environmentVariables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder> environmentVariablesBuilder_; + + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public java.util.List getEnvironmentVariablesList() { + if (environmentVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(environmentVariables_); + } else { + return environmentVariablesBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public int getEnvironmentVariablesCount() { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.size(); + } else { + return environmentVariablesBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getEnvironmentVariables(int index) { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.get(index); + } else { + return environmentVariablesBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder setEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.set(index, value); + onChanged(); + } else { + environmentVariablesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder setEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables(io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(value); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(index, value); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addAllEnvironmentVariables( + java.lang.Iterable values) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, environmentVariables_); + onChanged(); + } else { + environmentVariablesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder clearEnvironmentVariables() { + if (environmentVariablesBuilder_ == null) { + environmentVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + environmentVariablesBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder removeEnvironmentVariables(int index) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.remove(index); + onChanged(); + } else { + environmentVariablesBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder getEnvironmentVariablesBuilder( + int index) { + return getEnvironmentVariablesFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index) { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.get(index); } else { + return environmentVariablesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public java.util.List + getEnvironmentVariablesOrBuilderList() { + if (environmentVariablesBuilder_ != null) { + return environmentVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(environmentVariables_); + } + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder addEnvironmentVariablesBuilder() { + return getEnvironmentVariablesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder addEnvironmentVariablesBuilder( + int index) { + return getEnvironmentVariablesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.ConfigurationEnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public java.util.List + getEnvironmentVariablesBuilderList() { + return getEnvironmentVariablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder> + getEnvironmentVariablesFieldBuilder() { + if (environmentVariablesBuilder_ == null) { + environmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder>( + environmentVariables_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + environmentVariables_ = null; + } + return environmentVariablesBuilder_; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListConfigurationEnvironmentVariablesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListConfigurationEnvironmentVariablesResponse) + private static final io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse(); + } + + public static io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConfigurationEnvironmentVariablesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ListConfigurationEnvironmentVariablesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateConfigurationEnvironmentVariableRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateConfigurationEnvironmentVariableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + * string environment_variable_id = 2 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + java.lang.String getEnvironmentVariableId(); + /** + * string environment_variable_id = 2 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + com.google.protobuf.ByteString + getEnvironmentVariableIdBytes(); + + /** + * optional string name = 3 [json_name = "name"]; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + * optional string name = 3 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * optional string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string value = 4 [json_name = "value"]; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * optional string value = 4 [json_name = "value"]; + * @return The value. + */ + java.lang.String getValue(); + /** + * optional string value = 4 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return Whether the admission field is set. + */ + boolean hasAdmission(); + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + int getAdmissionValue(); + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The admission. + */ + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission getAdmission(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationEnvironmentVariableRequest} + */ + public static final class UpdateConfigurationEnvironmentVariableRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateConfigurationEnvironmentVariableRequest) + UpdateConfigurationEnvironmentVariableRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateConfigurationEnvironmentVariableRequest.class.getName()); + } + // Use UpdateConfigurationEnvironmentVariableRequest.newBuilder() to construct. + private UpdateConfigurationEnvironmentVariableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateConfigurationEnvironmentVariableRequest() { + configurationId_ = ""; + environmentVariableId_ = ""; + name_ = ""; + value_ = ""; + admission_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest.Builder.class); + } + + private int bitField0_; + public static final int CONFIGURATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENVIRONMENT_VARIABLE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object environmentVariableId_ = ""; + /** + * string environment_variable_id = 2 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + @java.lang.Override + public java.lang.String getEnvironmentVariableId() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentVariableId_ = s; + return s; + } + } + /** + * string environment_variable_id = 2 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEnvironmentVariableIdBytes() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentVariableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * optional string name = 3 [json_name = "name"]; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string name = 3 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * optional string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * optional string value = 4 [json_name = "value"]; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string value = 4 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * optional string value = 4 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMISSION_FIELD_NUMBER = 5; + private int admission_ = 0; + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return Whether the admission field is set. + */ + @java.lang.Override public boolean hasAdmission() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission getAdmission() { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission result = io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentVariableId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, environmentVariableId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, value_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(5, admission_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentVariableId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, environmentVariableId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, value_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, admission_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest other = (io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest) obj; + + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!getEnvironmentVariableId() + .equals(other.getEnvironmentVariableId())) return false; + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (hasAdmission() != other.hasAdmission()) return false; + if (hasAdmission()) { + if (admission_ != other.admission_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (37 * hash) + ENVIRONMENT_VARIABLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariableId().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasAdmission()) { + hash = (37 * hash) + ADMISSION_FIELD_NUMBER; + hash = (53 * hash) + admission_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationEnvironmentVariableRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateConfigurationEnvironmentVariableRequest) + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configurationId_ = ""; + environmentVariableId_ = ""; + name_ = ""; + value_ = ""; + admission_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest build() { + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest buildPartial() { + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest result = new io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configurationId_ = configurationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environmentVariableId_ = environmentVariableId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.value_ = value_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.admission_ = admission_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest other) { + if (other == io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest.getDefaultInstance()) return this; + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEnvironmentVariableId().isEmpty()) { + environmentVariableId_ = other.environmentVariableId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasValue()) { + value_ = other.value_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasAdmission()) { + setAdmission(other.getAdmission()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + environmentVariableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + admission_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object environmentVariableId_ = ""; + /** + * string environment_variable_id = 2 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + public java.lang.String getEnvironmentVariableId() { + java.lang.Object ref = environmentVariableId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentVariableId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string environment_variable_id = 2 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + public com.google.protobuf.ByteString + getEnvironmentVariableIdBytes() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentVariableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string environment_variable_id = 2 [json_name = "environmentVariableId"]; + * @param value The environmentVariableId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentVariableId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + environmentVariableId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string environment_variable_id = 2 [json_name = "environmentVariableId"]; + * @return This builder for chaining. + */ + public Builder clearEnvironmentVariableId() { + environmentVariableId_ = getDefaultInstance().getEnvironmentVariableId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string environment_variable_id = 2 [json_name = "environmentVariableId"]; + * @param value The bytes for environmentVariableId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentVariableIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + environmentVariableId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 3 [json_name = "name"]; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string name = 3 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string name = 3 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string name = 3 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string name = 3 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * optional string value = 4 [json_name = "value"]; + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string value = 4 [json_name = "value"]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string value = 4 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string value = 4 [json_name = "value"]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + value_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional string value = 4 [json_name = "value"]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * optional string value = 4 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int admission_ = 0; + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return Whether the admission field is set. + */ + @java.lang.Override public boolean hasAdmission() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @param value The enum numeric value on the wire for admission to set. + * @return This builder for chaining. + */ + public Builder setAdmissionValue(int value) { + admission_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission getAdmission() { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission result = io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.UNRECOGNIZED : result; + } + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @param value The admission to set. + * @return This builder for chaining. + */ + public Builder setAdmission(io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + admission_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .gitpod.v1.EnvironmentVariableAdmission admission = 5 [json_name = "admission"]; + * @return This builder for chaining. + */ + public Builder clearAdmission() { + bitField0_ = (bitField0_ & ~0x00000010); + admission_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateConfigurationEnvironmentVariableRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateConfigurationEnvironmentVariableRequest) + private static final io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest(); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConfigurationEnvironmentVariableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateConfigurationEnvironmentVariableResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateConfigurationEnvironmentVariableResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + boolean hasEnvironmentVariable(); + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getEnvironmentVariable(); + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationEnvironmentVariableResponse} + */ + public static final class UpdateConfigurationEnvironmentVariableResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateConfigurationEnvironmentVariableResponse) + UpdateConfigurationEnvironmentVariableResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateConfigurationEnvironmentVariableResponse.class.getName()); + } + // Use UpdateConfigurationEnvironmentVariableResponse.newBuilder() to construct. + private UpdateConfigurationEnvironmentVariableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateConfigurationEnvironmentVariableResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse.Builder.class); + } + + private int bitField0_; + public static final int ENVIRONMENT_VARIABLE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable environmentVariable_; + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + @java.lang.Override + public boolean hasEnvironmentVariable() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getEnvironmentVariable() { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder() { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEnvironmentVariable()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEnvironmentVariable()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse other = (io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse) obj; + + if (hasEnvironmentVariable() != other.hasEnvironmentVariable()) return false; + if (hasEnvironmentVariable()) { + if (!getEnvironmentVariable() + .equals(other.getEnvironmentVariable())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnvironmentVariable()) { + hash = (37 * hash) + ENVIRONMENT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariable().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateConfigurationEnvironmentVariableResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateConfigurationEnvironmentVariableResponse) + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getEnvironmentVariableFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environmentVariable_ = null; + if (environmentVariableBuilder_ != null) { + environmentVariableBuilder_.dispose(); + environmentVariableBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse build() { + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse buildPartial() { + io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse result = new io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environmentVariable_ = environmentVariableBuilder_ == null + ? environmentVariable_ + : environmentVariableBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse other) { + if (other == io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse.getDefaultInstance()) return this; + if (other.hasEnvironmentVariable()) { + mergeEnvironmentVariable(other.getEnvironmentVariable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEnvironmentVariableFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable environmentVariable_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder> environmentVariableBuilder_; + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + public boolean hasEnvironmentVariable() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getEnvironmentVariable() { + if (environmentVariableBuilder_ == null) { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } else { + return environmentVariableBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder setEnvironmentVariable(io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable value) { + if (environmentVariableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environmentVariable_ = value; + } else { + environmentVariableBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder setEnvironmentVariable( + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder builderForValue) { + if (environmentVariableBuilder_ == null) { + environmentVariable_ = builderForValue.build(); + } else { + environmentVariableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder mergeEnvironmentVariable(io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable value) { + if (environmentVariableBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + environmentVariable_ != null && + environmentVariable_ != io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance()) { + getEnvironmentVariableBuilder().mergeFrom(value); + } else { + environmentVariable_ = value; + } + } else { + environmentVariableBuilder_.mergeFrom(value); + } + if (environmentVariable_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder clearEnvironmentVariable() { + bitField0_ = (bitField0_ & ~0x00000001); + environmentVariable_ = null; + if (environmentVariableBuilder_ != null) { + environmentVariableBuilder_.dispose(); + environmentVariableBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder getEnvironmentVariableBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEnvironmentVariableFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder() { + if (environmentVariableBuilder_ != null) { + return environmentVariableBuilder_.getMessageOrBuilder(); + } else { + return environmentVariable_ == null ? + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder> + getEnvironmentVariableFieldBuilder() { + if (environmentVariableBuilder_ == null) { + environmentVariableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder>( + getEnvironmentVariable(), + getParentForChildren(), + isClean()); + environmentVariable_ = null; + } + return environmentVariableBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateConfigurationEnvironmentVariableResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateConfigurationEnvironmentVariableResponse) + private static final io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse(); + } + + public static io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConfigurationEnvironmentVariableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.UpdateConfigurationEnvironmentVariableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateConfigurationEnvironmentVariableRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateConfigurationEnvironmentVariableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string value = 3 [json_name = "value"]; + * @return The value. + */ + java.lang.String getValue(); + /** + * string value = 3 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 4 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + int getAdmissionValue(); + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 4 [json_name = "admission"]; + * @return The admission. + */ + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission getAdmission(); + } + /** + * Protobuf type {@code gitpod.v1.CreateConfigurationEnvironmentVariableRequest} + */ + public static final class CreateConfigurationEnvironmentVariableRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateConfigurationEnvironmentVariableRequest) + CreateConfigurationEnvironmentVariableRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateConfigurationEnvironmentVariableRequest.class.getName()); + } + // Use CreateConfigurationEnvironmentVariableRequest.newBuilder() to construct. + private CreateConfigurationEnvironmentVariableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateConfigurationEnvironmentVariableRequest() { + configurationId_ = ""; + name_ = ""; + value_ = ""; + admission_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest.Builder.class); + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * string value = 3 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * string value = 3 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMISSION_FIELD_NUMBER = 4; + private int admission_ = 0; + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 4 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 4 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission getAdmission() { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission result = io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, value_); + } + if (admission_ != io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.ENVIRONMENT_VARIABLE_ADMISSION_UNSPECIFIED.getNumber()) { + output.writeEnum(4, admission_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, value_); + } + if (admission_ != io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.ENVIRONMENT_VARIABLE_ADMISSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, admission_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest other = (io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest) obj; + + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (admission_ != other.admission_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + ADMISSION_FIELD_NUMBER; + hash = (53 * hash) + admission_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateConfigurationEnvironmentVariableRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateConfigurationEnvironmentVariableRequest) + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configurationId_ = ""; + name_ = ""; + value_ = ""; + admission_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest build() { + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest buildPartial() { + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest result = new io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configurationId_ = configurationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.admission_ = admission_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest other) { + if (other == io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest.getDefaultInstance()) return this; + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.admission_ != 0) { + setAdmissionValue(other.getAdmissionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + admission_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 3 [json_name = "value"]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 3 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 3 [json_name = "value"]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string value = 3 [json_name = "value"]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string value = 3 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int admission_ = 0; + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 4 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 4 [json_name = "admission"]; + * @param value The enum numeric value on the wire for admission to set. + * @return This builder for chaining. + */ + public Builder setAdmissionValue(int value) { + admission_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 4 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission getAdmission() { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission result = io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 4 [json_name = "admission"]; + * @param value The admission to set. + * @return This builder for chaining. + */ + public Builder setAdmission(io.gitpod.publicapi.v1.Envvar.EnvironmentVariableAdmission value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + admission_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.EnvironmentVariableAdmission admission = 4 [json_name = "admission"]; + * @return This builder for chaining. + */ + public Builder clearAdmission() { + bitField0_ = (bitField0_ & ~0x00000008); + admission_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateConfigurationEnvironmentVariableRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateConfigurationEnvironmentVariableRequest) + private static final io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest(); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConfigurationEnvironmentVariableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateConfigurationEnvironmentVariableResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateConfigurationEnvironmentVariableResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + boolean hasEnvironmentVariable(); + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getEnvironmentVariable(); + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateConfigurationEnvironmentVariableResponse} + */ + public static final class CreateConfigurationEnvironmentVariableResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateConfigurationEnvironmentVariableResponse) + CreateConfigurationEnvironmentVariableResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateConfigurationEnvironmentVariableResponse.class.getName()); + } + // Use CreateConfigurationEnvironmentVariableResponse.newBuilder() to construct. + private CreateConfigurationEnvironmentVariableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateConfigurationEnvironmentVariableResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse.Builder.class); + } + + private int bitField0_; + public static final int ENVIRONMENT_VARIABLE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable environmentVariable_; + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + @java.lang.Override + public boolean hasEnvironmentVariable() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getEnvironmentVariable() { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder() { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEnvironmentVariable()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEnvironmentVariable()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse other = (io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse) obj; + + if (hasEnvironmentVariable() != other.hasEnvironmentVariable()) return false; + if (hasEnvironmentVariable()) { + if (!getEnvironmentVariable() + .equals(other.getEnvironmentVariable())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnvironmentVariable()) { + hash = (37 * hash) + ENVIRONMENT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariable().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateConfigurationEnvironmentVariableResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateConfigurationEnvironmentVariableResponse) + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getEnvironmentVariableFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environmentVariable_ = null; + if (environmentVariableBuilder_ != null) { + environmentVariableBuilder_.dispose(); + environmentVariableBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse build() { + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse buildPartial() { + io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse result = new io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environmentVariable_ = environmentVariableBuilder_ == null + ? environmentVariable_ + : environmentVariableBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse other) { + if (other == io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse.getDefaultInstance()) return this; + if (other.hasEnvironmentVariable()) { + mergeEnvironmentVariable(other.getEnvironmentVariable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEnvironmentVariableFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable environmentVariable_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder> environmentVariableBuilder_; + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return Whether the environmentVariable field is set. + */ + public boolean hasEnvironmentVariable() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + * @return The environmentVariable. + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable getEnvironmentVariable() { + if (environmentVariableBuilder_ == null) { + return environmentVariable_ == null ? io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } else { + return environmentVariableBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder setEnvironmentVariable(io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable value) { + if (environmentVariableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environmentVariable_ = value; + } else { + environmentVariableBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder setEnvironmentVariable( + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder builderForValue) { + if (environmentVariableBuilder_ == null) { + environmentVariable_ = builderForValue.build(); + } else { + environmentVariableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder mergeEnvironmentVariable(io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable value) { + if (environmentVariableBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + environmentVariable_ != null && + environmentVariable_ != io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance()) { + getEnvironmentVariableBuilder().mergeFrom(value); + } else { + environmentVariable_ = value; + } + } else { + environmentVariableBuilder_.mergeFrom(value); + } + if (environmentVariable_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public Builder clearEnvironmentVariable() { + bitField0_ = (bitField0_ & ~0x00000001); + environmentVariable_ = null; + if (environmentVariableBuilder_ != null) { + environmentVariableBuilder_.dispose(); + environmentVariableBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder getEnvironmentVariableBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEnvironmentVariableFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + public io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder getEnvironmentVariableOrBuilder() { + if (environmentVariableBuilder_ != null) { + return environmentVariableBuilder_.getMessageOrBuilder(); + } else { + return environmentVariable_ == null ? + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.getDefaultInstance() : environmentVariable_; + } + } + /** + * .gitpod.v1.ConfigurationEnvironmentVariable environment_variable = 1 [json_name = "environmentVariable"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder> + getEnvironmentVariableFieldBuilder() { + if (environmentVariableBuilder_ == null) { + environmentVariableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.ConfigurationEnvironmentVariableOrBuilder>( + getEnvironmentVariable(), + getParentForChildren(), + isClean()); + environmentVariable_ = null; + } + return environmentVariableBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateConfigurationEnvironmentVariableResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateConfigurationEnvironmentVariableResponse) + private static final io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse(); + } + + public static io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConfigurationEnvironmentVariableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.CreateConfigurationEnvironmentVariableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteConfigurationEnvironmentVariableRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteConfigurationEnvironmentVariableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + java.lang.String getEnvironmentVariableId(); + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + com.google.protobuf.ByteString + getEnvironmentVariableIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteConfigurationEnvironmentVariableRequest} + */ + public static final class DeleteConfigurationEnvironmentVariableRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteConfigurationEnvironmentVariableRequest) + DeleteConfigurationEnvironmentVariableRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteConfigurationEnvironmentVariableRequest.class.getName()); + } + // Use DeleteConfigurationEnvironmentVariableRequest.newBuilder() to construct. + private DeleteConfigurationEnvironmentVariableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteConfigurationEnvironmentVariableRequest() { + environmentVariableId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest.Builder.class); + } + + public static final int ENVIRONMENT_VARIABLE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object environmentVariableId_ = ""; + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + @java.lang.Override + public java.lang.String getEnvironmentVariableId() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentVariableId_ = s; + return s; + } + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEnvironmentVariableIdBytes() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentVariableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentVariableId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, environmentVariableId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentVariableId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, environmentVariableId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest other = (io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest) obj; + + if (!getEnvironmentVariableId() + .equals(other.getEnvironmentVariableId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENVIRONMENT_VARIABLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariableId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteConfigurationEnvironmentVariableRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteConfigurationEnvironmentVariableRequest) + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest.class, io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environmentVariableId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest build() { + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest buildPartial() { + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest result = new io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environmentVariableId_ = environmentVariableId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest other) { + if (other == io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest.getDefaultInstance()) return this; + if (!other.getEnvironmentVariableId().isEmpty()) { + environmentVariableId_ = other.environmentVariableId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + environmentVariableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object environmentVariableId_ = ""; + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The environmentVariableId. + */ + public java.lang.String getEnvironmentVariableId() { + java.lang.Object ref = environmentVariableId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentVariableId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return The bytes for environmentVariableId. + */ + public com.google.protobuf.ByteString + getEnvironmentVariableIdBytes() { + java.lang.Object ref = environmentVariableId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentVariableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @param value The environmentVariableId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentVariableId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + environmentVariableId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @return This builder for chaining. + */ + public Builder clearEnvironmentVariableId() { + environmentVariableId_ = getDefaultInstance().getEnvironmentVariableId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string environment_variable_id = 1 [json_name = "environmentVariableId"]; + * @param value The bytes for environmentVariableId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentVariableIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + environmentVariableId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteConfigurationEnvironmentVariableRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteConfigurationEnvironmentVariableRequest) + private static final io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest(); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConfigurationEnvironmentVariableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteConfigurationEnvironmentVariableResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteConfigurationEnvironmentVariableResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteConfigurationEnvironmentVariableResponse} + */ + public static final class DeleteConfigurationEnvironmentVariableResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteConfigurationEnvironmentVariableResponse) + DeleteConfigurationEnvironmentVariableResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteConfigurationEnvironmentVariableResponse.class.getName()); + } + // Use DeleteConfigurationEnvironmentVariableResponse.newBuilder() to construct. + private DeleteConfigurationEnvironmentVariableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteConfigurationEnvironmentVariableResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse other = (io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteConfigurationEnvironmentVariableResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteConfigurationEnvironmentVariableResponse) + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse.class, io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse build() { + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse buildPartial() { + io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse result = new io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse other) { + if (other == io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteConfigurationEnvironmentVariableResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteConfigurationEnvironmentVariableResponse) + private static final io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse(); + } + + public static io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConfigurationEnvironmentVariableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.DeleteConfigurationEnvironmentVariableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResolveWorkspaceEnvironmentVariablesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ResolveWorkspaceEnvironmentVariablesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ResolveWorkspaceEnvironmentVariablesRequest} + */ + public static final class ResolveWorkspaceEnvironmentVariablesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ResolveWorkspaceEnvironmentVariablesRequest) + ResolveWorkspaceEnvironmentVariablesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ResolveWorkspaceEnvironmentVariablesRequest.class.getName()); + } + // Use ResolveWorkspaceEnvironmentVariablesRequest.newBuilder() to construct. + private ResolveWorkspaceEnvironmentVariablesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResolveWorkspaceEnvironmentVariablesRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest.class, io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest other = (io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ResolveWorkspaceEnvironmentVariablesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ResolveWorkspaceEnvironmentVariablesRequest) + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest.class, io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest build() { + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest buildPartial() { + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest result = new io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest other) { + if (other == io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ResolveWorkspaceEnvironmentVariablesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ResolveWorkspaceEnvironmentVariablesRequest) + private static final io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest(); + } + + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResolveWorkspaceEnvironmentVariablesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResolveWorkspaceEnvironmentVariablesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ResolveWorkspaceEnvironmentVariablesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + java.util.List + getEnvironmentVariablesList(); + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable getEnvironmentVariables(int index); + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + int getEnvironmentVariablesCount(); + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + java.util.List + getEnvironmentVariablesOrBuilderList(); + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ResolveWorkspaceEnvironmentVariablesResponse} + */ + public static final class ResolveWorkspaceEnvironmentVariablesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ResolveWorkspaceEnvironmentVariablesResponse) + ResolveWorkspaceEnvironmentVariablesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ResolveWorkspaceEnvironmentVariablesResponse.class.getName()); + } + // Use ResolveWorkspaceEnvironmentVariablesResponse.newBuilder() to construct. + private ResolveWorkspaceEnvironmentVariablesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResolveWorkspaceEnvironmentVariablesResponse() { + environmentVariables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse.class, io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse.Builder.class); + } + + public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List environmentVariables_; + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public java.util.List getEnvironmentVariablesList() { + return environmentVariables_; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public java.util.List + getEnvironmentVariablesOrBuilderList() { + return environmentVariables_; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public int getEnvironmentVariablesCount() { + return environmentVariables_.size(); + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable getEnvironmentVariables(int index) { + return environmentVariables_.get(index); + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index) { + return environmentVariables_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < environmentVariables_.size(); i++) { + output.writeMessage(1, environmentVariables_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < environmentVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, environmentVariables_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse other = (io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse) obj; + + if (!getEnvironmentVariablesList() + .equals(other.getEnvironmentVariablesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnvironmentVariablesCount() > 0) { + hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ResolveWorkspaceEnvironmentVariablesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ResolveWorkspaceEnvironmentVariablesResponse) + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse.class, io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (environmentVariablesBuilder_ == null) { + environmentVariables_ = java.util.Collections.emptyList(); + } else { + environmentVariables_ = null; + environmentVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse build() { + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse buildPartial() { + io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse result = new io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse result) { + if (environmentVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + environmentVariables_ = java.util.Collections.unmodifiableList(environmentVariables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.environmentVariables_ = environmentVariables_; + } else { + result.environmentVariables_ = environmentVariablesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse other) { + if (other == io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse.getDefaultInstance()) return this; + if (environmentVariablesBuilder_ == null) { + if (!other.environmentVariables_.isEmpty()) { + if (environmentVariables_.isEmpty()) { + environmentVariables_ = other.environmentVariables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.addAll(other.environmentVariables_); + } + onChanged(); + } + } else { + if (!other.environmentVariables_.isEmpty()) { + if (environmentVariablesBuilder_.isEmpty()) { + environmentVariablesBuilder_.dispose(); + environmentVariablesBuilder_ = null; + environmentVariables_ = other.environmentVariables_; + bitField0_ = (bitField0_ & ~0x00000001); + environmentVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getEnvironmentVariablesFieldBuilder() : null; + } else { + environmentVariablesBuilder_.addAllMessages(other.environmentVariables_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable m = + input.readMessage( + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.parser(), + extensionRegistry); + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(m); + } else { + environmentVariablesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List environmentVariables_ = + java.util.Collections.emptyList(); + private void ensureEnvironmentVariablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + environmentVariables_ = new java.util.ArrayList(environmentVariables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder> environmentVariablesBuilder_; + + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public java.util.List getEnvironmentVariablesList() { + if (environmentVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(environmentVariables_); + } else { + return environmentVariablesBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public int getEnvironmentVariablesCount() { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.size(); + } else { + return environmentVariablesBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable getEnvironmentVariables(int index) { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.get(index); + } else { + return environmentVariablesBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder setEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.set(index, value); + onChanged(); + } else { + environmentVariablesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder setEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables(io.gitpod.publicapi.v1.Envvar.EnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(value); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(index, value); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder addAllEnvironmentVariables( + java.lang.Iterable values) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, environmentVariables_); + onChanged(); + } else { + environmentVariablesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder clearEnvironmentVariables() { + if (environmentVariablesBuilder_ == null) { + environmentVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + environmentVariablesBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public Builder removeEnvironmentVariables(int index) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.remove(index); + onChanged(); + } else { + environmentVariablesBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder getEnvironmentVariablesBuilder( + int index) { + return getEnvironmentVariablesFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index) { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.get(index); } else { + return environmentVariablesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public java.util.List + getEnvironmentVariablesOrBuilderList() { + if (environmentVariablesBuilder_ != null) { + return environmentVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(environmentVariables_); + } + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder addEnvironmentVariablesBuilder() { + return getEnvironmentVariablesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder addEnvironmentVariablesBuilder( + int index) { + return getEnvironmentVariablesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 1 [json_name = "environmentVariables"]; + */ + public java.util.List + getEnvironmentVariablesBuilderList() { + return getEnvironmentVariablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder> + getEnvironmentVariablesFieldBuilder() { + if (environmentVariablesBuilder_ == null) { + environmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder>( + environmentVariables_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + environmentVariables_ = null; + } + return environmentVariablesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ResolveWorkspaceEnvironmentVariablesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ResolveWorkspaceEnvironmentVariablesResponse) + private static final io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse(); + } + + public static io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResolveWorkspaceEnvironmentVariablesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.ResolveWorkspaceEnvironmentVariablesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EnvironmentVariableOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.EnvironmentVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string value = 2 [json_name = "value"]; + * @return The value. + */ + java.lang.String getValue(); + /** + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code gitpod.v1.EnvironmentVariable} + */ + public static final class EnvironmentVariable extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.EnvironmentVariable) + EnvironmentVariableOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + EnvironmentVariable.class.getName()); + } + // Use EnvironmentVariable.newBuilder() to construct. + private EnvironmentVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EnvironmentVariable() { + name_ = ""; + value_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_EnvironmentVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_EnvironmentVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.class, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * string value = 2 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Envvar.EnvironmentVariable)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable other = (io.gitpod.publicapi.v1.Envvar.EnvironmentVariable) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Envvar.EnvironmentVariable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.EnvironmentVariable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.EnvironmentVariable) + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_EnvironmentVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_EnvironmentVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.class, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Envvar.internal_static_gitpod_v1_EnvironmentVariable_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable build() { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable buildPartial() { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable result = new io.gitpod.publicapi.v1.Envvar.EnvironmentVariable(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Envvar.EnvironmentVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Envvar.EnvironmentVariable) { + return mergeFrom((io.gitpod.publicapi.v1.Envvar.EnvironmentVariable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Envvar.EnvironmentVariable other) { + if (other == io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 2 [json_name = "value"]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 2 [json_name = "value"]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string value = 2 [json_name = "value"]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string value = 2 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.EnvironmentVariable) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.EnvironmentVariable) + private static final io.gitpod.publicapi.v1.Envvar.EnvironmentVariable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Envvar.EnvironmentVariable(); + } + + public static io.gitpod.publicapi.v1.Envvar.EnvironmentVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvironmentVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UserEnvironmentVariable_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UserEnvironmentVariable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ConfigurationEnvironmentVariable_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ConfigurationEnvironmentVariable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_EnvironmentVariable_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_EnvironmentVariable_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\026gitpod/v1/envvar.proto\022\tgitpod.v1\032\032git" + + "pod/v1/pagination.proto\"\202\001\n\027UserEnvironm" + + "entVariable\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(" + + "\tR\004name\022\024\n\005value\030\003 \001(\tR\005value\022-\n\022reposit" + + "ory_pattern\030\004 \001(\tR\021repositoryPattern\"c\n#" + + "ListUserEnvironmentVariablesRequest\022<\n\np" + + "agination\030\001 \001(\0132\034.gitpod.v1.PaginationRe" + + "questR\npagination\"\276\001\n$ListUserEnvironmen" + + "tVariablesResponse\022W\n\025environment_variab" + + "les\030\001 \003(\0132\".gitpod.v1.UserEnvironmentVar" + + "iableR\024environmentVariables\022=\n\npaginatio" + + "n\030\002 \001(\0132\035.gitpod.v1.PaginationResponseR\n" + + "pagination\"\360\001\n$UpdateUserEnvironmentVari" + + "ableRequest\0226\n\027environment_variable_id\030\001" + + " \001(\tR\025environmentVariableId\022\027\n\004name\030\002 \001(" + + "\tH\000R\004name\210\001\001\022\031\n\005value\030\003 \001(\tH\001R\005value\210\001\001\022" + + "2\n\022repository_pattern\030\004 \001(\tH\002R\021repositor" + + "yPattern\210\001\001B\007\n\005_nameB\010\n\006_valueB\025\n\023_repos" + + "itory_pattern\"~\n%UpdateUserEnvironmentVa" + + "riableResponse\022U\n\024environment_variable\030\001" + + " \001(\0132\".gitpod.v1.UserEnvironmentVariable" + + "R\023environmentVariable\"\177\n$CreateUserEnvir" + + "onmentVariableRequest\022\022\n\004name\030\001 \001(\tR\004nam" + + "e\022\024\n\005value\030\002 \001(\tR\005value\022-\n\022repository_pa" + + "ttern\030\003 \001(\tR\021repositoryPattern\"~\n%Create" + + "UserEnvironmentVariableResponse\022U\n\024envir" + + "onment_variable\030\001 \001(\0132\".gitpod.v1.UserEn" + + "vironmentVariableR\023environmentVariable\"^" + + "\n$DeleteUserEnvironmentVariableRequest\0226" + + "\n\027environment_variable_id\030\001 \001(\tR\025environ" + + "mentVariableId\"\'\n%DeleteUserEnvironmentV" + + "ariableResponse\"\270\001\n ConfigurationEnviron" + + "mentVariable\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001" + + "(\tR\004name\022)\n\020configuration_id\030\004 \001(\tR\017conf" + + "igurationId\022E\n\tadmission\030\005 \001(\0162\'.gitpod." + + "v1.EnvironmentVariableAdmissionR\tadmissi" + + "on\"\227\001\n,ListConfigurationEnvironmentVaria" + + "blesRequest\022)\n\020configuration_id\030\001 \001(\tR\017c" + + "onfigurationId\022<\n\npagination\030\002 \001(\0132\034.git" + + "pod.v1.PaginationRequestR\npagination\"\320\001\n" + + "-ListConfigurationEnvironmentVariablesRe" + + "sponse\022`\n\025environment_variables\030\001 \003(\0132+." + + "gitpod.v1.ConfigurationEnvironmentVariab" + + "leR\024environmentVariables\022=\n\npagination\030\002" + + " \001(\0132\035.gitpod.v1.PaginationResponseR\npag" + + "ination\"\263\002\n-UpdateConfigurationEnvironme" + + "ntVariableRequest\022)\n\020configuration_id\030\001 " + + "\001(\tR\017configurationId\0226\n\027environment_vari" + + "able_id\030\002 \001(\tR\025environmentVariableId\022\027\n\004" + + "name\030\003 \001(\tH\000R\004name\210\001\001\022\031\n\005value\030\004 \001(\tH\001R\005" + + "value\210\001\001\022J\n\tadmission\030\005 \001(\0162\'.gitpod.v1." + + "EnvironmentVariableAdmissionH\002R\tadmissio" + + "n\210\001\001B\007\n\005_nameB\010\n\006_valueB\014\n\n_admission\"\220\001" + + "\n.UpdateConfigurationEnvironmentVariable" + + "Response\022^\n\024environment_variable\030\001 \001(\0132+" + + ".gitpod.v1.ConfigurationEnvironmentVaria" + + "bleR\023environmentVariable\"\313\001\n-CreateConfi" + + "gurationEnvironmentVariableRequest\022)\n\020co" + + "nfiguration_id\030\001 \001(\tR\017configurationId\022\022\n" + + "\004name\030\002 \001(\tR\004name\022\024\n\005value\030\003 \001(\tR\005value\022" + + "E\n\tadmission\030\004 \001(\0162\'.gitpod.v1.Environme" + + "ntVariableAdmissionR\tadmission\"\220\001\n.Creat" + + "eConfigurationEnvironmentVariableRespons" + + "e\022^\n\024environment_variable\030\001 \001(\0132+.gitpod" + + ".v1.ConfigurationEnvironmentVariableR\023en" + + "vironmentVariable\"g\n-DeleteConfiguration" + + "EnvironmentVariableRequest\0226\n\027environmen" + + "t_variable_id\030\001 \001(\tR\025environmentVariable" + + "Id\"0\n.DeleteConfigurationEnvironmentVari" + + "ableResponse\"P\n+ResolveWorkspaceEnvironm" + + "entVariablesRequest\022!\n\014workspace_id\030\001 \001(" + + "\tR\013workspaceId\"\203\001\n,ResolveWorkspaceEnvir" + + "onmentVariablesResponse\022S\n\025environment_v" + + "ariables\030\001 \003(\0132\036.gitpod.v1.EnvironmentVa" + + "riableR\024environmentVariables\"?\n\023Environm" + + "entVariable\022\022\n\004name\030\001 \001(\tR\004name\022\024\n\005value" + + "\030\002 \001(\tR\005value*\252\001\n\034EnvironmentVariableAdm" + + "ission\022.\n*ENVIRONMENT_VARIABLE_ADMISSION" + + "_UNSPECIFIED\020\000\022+\n\'ENVIRONMENT_VARIABLE_A" + + "DMISSION_PREBUILD\020\001\022-\n)ENVIRONMENT_VARIA" + + "BLE_ADMISSION_EVERYWHERE\020\0022\326\n\n\032Environme" + + "ntVariableService\022\201\001\n\034ListUserEnvironmen" + + "tVariables\022..gitpod.v1.ListUserEnvironme" + + "ntVariablesRequest\032/.gitpod.v1.ListUserE" + + "nvironmentVariablesResponse\"\000\022\204\001\n\035Update" + + "UserEnvironmentVariable\022/.gitpod.v1.Upda" + + "teUserEnvironmentVariableRequest\0320.gitpo" + + "d.v1.UpdateUserEnvironmentVariableRespon" + + "se\"\000\022\204\001\n\035CreateUserEnvironmentVariable\022/" + + ".gitpod.v1.CreateUserEnvironmentVariable" + + "Request\0320.gitpod.v1.CreateUserEnvironmen" + + "tVariableResponse\"\000\022\204\001\n\035DeleteUserEnviro" + + "nmentVariable\022/.gitpod.v1.DeleteUserEnvi" + + "ronmentVariableRequest\0320.gitpod.v1.Delet" + + "eUserEnvironmentVariableResponse\"\000\022\234\001\n%L" + + "istConfigurationEnvironmentVariables\0227.g" + + "itpod.v1.ListConfigurationEnvironmentVar" + + "iablesRequest\0328.gitpod.v1.ListConfigurat" + + "ionEnvironmentVariablesResponse\"\000\022\237\001\n&Up" + + "dateConfigurationEnvironmentVariable\0228.g" + + "itpod.v1.UpdateConfigurationEnvironmentV" + + "ariableRequest\0329.gitpod.v1.UpdateConfigu" + + "rationEnvironmentVariableResponse\"\000\022\237\001\n&" + + "CreateConfigurationEnvironmentVariable\0228" + + ".gitpod.v1.CreateConfigurationEnvironmen" + + "tVariableRequest\0329.gitpod.v1.CreateConfi" + + "gurationEnvironmentVariableResponse\"\000\022\237\001" + + "\n&DeleteConfigurationEnvironmentVariable" + + "\0228.gitpod.v1.DeleteConfigurationEnvironm" + + "entVariableRequest\0329.gitpod.v1.DeleteCon" + + "figurationEnvironmentVariableResponse\"\000\022" + + "\231\001\n$ResolveWorkspaceEnvironmentVariables" + + "\0226.gitpod.v1.ResolveWorkspaceEnvironment" + + "VariablesRequest\0327.gitpod.v1.ResolveWork" + + "spaceEnvironmentVariablesResponse\"\000BQ\n\026i" + + "o.gitpod.publicapi.v1Z7github.com/gitpod" + + "-io/gitpod/components/public-api/go/v1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + }); + internal_static_gitpod_v1_UserEnvironmentVariable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_UserEnvironmentVariable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UserEnvironmentVariable_descriptor, + new java.lang.String[] { "Id", "Name", "Value", "RepositoryPattern", }); + internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListUserEnvironmentVariablesRequest_descriptor, + new java.lang.String[] { "Pagination", }); + internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListUserEnvironmentVariablesResponse_descriptor, + new java.lang.String[] { "EnvironmentVariables", "Pagination", }); + internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateUserEnvironmentVariableRequest_descriptor, + new java.lang.String[] { "EnvironmentVariableId", "Name", "Value", "RepositoryPattern", }); + internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateUserEnvironmentVariableResponse_descriptor, + new java.lang.String[] { "EnvironmentVariable", }); + internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateUserEnvironmentVariableRequest_descriptor, + new java.lang.String[] { "Name", "Value", "RepositoryPattern", }); + internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateUserEnvironmentVariableResponse_descriptor, + new java.lang.String[] { "EnvironmentVariable", }); + internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteUserEnvironmentVariableRequest_descriptor, + new java.lang.String[] { "EnvironmentVariableId", }); + internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteUserEnvironmentVariableResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_ConfigurationEnvironmentVariable_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_ConfigurationEnvironmentVariable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ConfigurationEnvironmentVariable_descriptor, + new java.lang.String[] { "Id", "Name", "ConfigurationId", "Admission", }); + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesRequest_descriptor, + new java.lang.String[] { "ConfigurationId", "Pagination", }); + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListConfigurationEnvironmentVariablesResponse_descriptor, + new java.lang.String[] { "EnvironmentVariables", "Pagination", }); + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableRequest_descriptor, + new java.lang.String[] { "ConfigurationId", "EnvironmentVariableId", "Name", "Value", "Admission", }); + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateConfigurationEnvironmentVariableResponse_descriptor, + new java.lang.String[] { "EnvironmentVariable", }); + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableRequest_descriptor, + new java.lang.String[] { "ConfigurationId", "Name", "Value", "Admission", }); + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateConfigurationEnvironmentVariableResponse_descriptor, + new java.lang.String[] { "EnvironmentVariable", }); + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableRequest_descriptor, + new java.lang.String[] { "EnvironmentVariableId", }); + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteConfigurationEnvironmentVariableResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ResolveWorkspaceEnvironmentVariablesResponse_descriptor, + new java.lang.String[] { "EnvironmentVariables", }); + internal_static_gitpod_v1_EnvironmentVariable_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_gitpod_v1_EnvironmentVariable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_EnvironmentVariable_descriptor, + new java.lang.String[] { "Name", "Value", }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Error.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Error.java new file mode 100644 index 00000000000000..2bc18ead7b60a1 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Error.java @@ -0,0 +1,8239 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/error.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Error { + private Error() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Error.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PermissionDeniedDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.PermissionDeniedDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + * @return Whether the userBlocked field is set. + */ + boolean hasUserBlocked(); + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + * @return The userBlocked. + */ + io.gitpod.publicapi.v1.Error.UserBlockedError getUserBlocked(); + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + */ + io.gitpod.publicapi.v1.Error.UserBlockedErrorOrBuilder getUserBlockedOrBuilder(); + + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + * @return Whether the needsVerification field is set. + */ + boolean hasNeedsVerification(); + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + * @return The needsVerification. + */ + io.gitpod.publicapi.v1.Error.NeedsVerificationError getNeedsVerification(); + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + */ + io.gitpod.publicapi.v1.Error.NeedsVerificationErrorOrBuilder getNeedsVerificationOrBuilder(); + + io.gitpod.publicapi.v1.Error.PermissionDeniedDetails.ReasonCase getReasonCase(); + } + /** + *
+   * details for PERMISSION_DENIED status code
+   * 
+ * + * Protobuf type {@code gitpod.v1.PermissionDeniedDetails} + */ + public static final class PermissionDeniedDetails extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.PermissionDeniedDetails) + PermissionDeniedDetailsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PermissionDeniedDetails.class.getName()); + } + // Use PermissionDeniedDetails.newBuilder() to construct. + private PermissionDeniedDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PermissionDeniedDetails() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PermissionDeniedDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PermissionDeniedDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.PermissionDeniedDetails.class, io.gitpod.publicapi.v1.Error.PermissionDeniedDetails.Builder.class); + } + + private int reasonCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object reason_; + public enum ReasonCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_BLOCKED(1), + NEEDS_VERIFICATION(2), + REASON_NOT_SET(0); + private final int value; + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 1: return USER_BLOCKED; + case 2: return NEEDS_VERIFICATION; + case 0: return REASON_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public static final int USER_BLOCKED_FIELD_NUMBER = 1; + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + * @return Whether the userBlocked field is set. + */ + @java.lang.Override + public boolean hasUserBlocked() { + return reasonCase_ == 1; + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + * @return The userBlocked. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.UserBlockedError getUserBlocked() { + if (reasonCase_ == 1) { + return (io.gitpod.publicapi.v1.Error.UserBlockedError) reason_; + } + return io.gitpod.publicapi.v1.Error.UserBlockedError.getDefaultInstance(); + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.UserBlockedErrorOrBuilder getUserBlockedOrBuilder() { + if (reasonCase_ == 1) { + return (io.gitpod.publicapi.v1.Error.UserBlockedError) reason_; + } + return io.gitpod.publicapi.v1.Error.UserBlockedError.getDefaultInstance(); + } + + public static final int NEEDS_VERIFICATION_FIELD_NUMBER = 2; + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + * @return Whether the needsVerification field is set. + */ + @java.lang.Override + public boolean hasNeedsVerification() { + return reasonCase_ == 2; + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + * @return The needsVerification. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.NeedsVerificationError getNeedsVerification() { + if (reasonCase_ == 2) { + return (io.gitpod.publicapi.v1.Error.NeedsVerificationError) reason_; + } + return io.gitpod.publicapi.v1.Error.NeedsVerificationError.getDefaultInstance(); + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.NeedsVerificationErrorOrBuilder getNeedsVerificationOrBuilder() { + if (reasonCase_ == 2) { + return (io.gitpod.publicapi.v1.Error.NeedsVerificationError) reason_; + } + return io.gitpod.publicapi.v1.Error.NeedsVerificationError.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reasonCase_ == 1) { + output.writeMessage(1, (io.gitpod.publicapi.v1.Error.UserBlockedError) reason_); + } + if (reasonCase_ == 2) { + output.writeMessage(2, (io.gitpod.publicapi.v1.Error.NeedsVerificationError) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reasonCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.gitpod.publicapi.v1.Error.UserBlockedError) reason_); + } + if (reasonCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.gitpod.publicapi.v1.Error.NeedsVerificationError) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.PermissionDeniedDetails)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.PermissionDeniedDetails other = (io.gitpod.publicapi.v1.Error.PermissionDeniedDetails) obj; + + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 1: + if (!getUserBlocked() + .equals(other.getUserBlocked())) return false; + break; + case 2: + if (!getNeedsVerification() + .equals(other.getNeedsVerification())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (reasonCase_) { + case 1: + hash = (37 * hash) + USER_BLOCKED_FIELD_NUMBER; + hash = (53 * hash) + getUserBlocked().hashCode(); + break; + case 2: + hash = (37 * hash) + NEEDS_VERIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getNeedsVerification().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.PermissionDeniedDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * details for PERMISSION_DENIED status code
+     * 
+ * + * Protobuf type {@code gitpod.v1.PermissionDeniedDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.PermissionDeniedDetails) + io.gitpod.publicapi.v1.Error.PermissionDeniedDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PermissionDeniedDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PermissionDeniedDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.PermissionDeniedDetails.class, io.gitpod.publicapi.v1.Error.PermissionDeniedDetails.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.PermissionDeniedDetails.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (userBlockedBuilder_ != null) { + userBlockedBuilder_.clear(); + } + if (needsVerificationBuilder_ != null) { + needsVerificationBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PermissionDeniedDetails_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PermissionDeniedDetails getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.PermissionDeniedDetails.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PermissionDeniedDetails build() { + io.gitpod.publicapi.v1.Error.PermissionDeniedDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PermissionDeniedDetails buildPartial() { + io.gitpod.publicapi.v1.Error.PermissionDeniedDetails result = new io.gitpod.publicapi.v1.Error.PermissionDeniedDetails(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Error.PermissionDeniedDetails result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.v1.Error.PermissionDeniedDetails result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 1 && + userBlockedBuilder_ != null) { + result.reason_ = userBlockedBuilder_.build(); + } + if (reasonCase_ == 2 && + needsVerificationBuilder_ != null) { + result.reason_ = needsVerificationBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.PermissionDeniedDetails) { + return mergeFrom((io.gitpod.publicapi.v1.Error.PermissionDeniedDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.PermissionDeniedDetails other) { + if (other == io.gitpod.publicapi.v1.Error.PermissionDeniedDetails.getDefaultInstance()) return this; + switch (other.getReasonCase()) { + case USER_BLOCKED: { + mergeUserBlocked(other.getUserBlocked()); + break; + } + case NEEDS_VERIFICATION: { + mergeNeedsVerification(other.getNeedsVerification()); + break; + } + case REASON_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserBlockedFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getNeedsVerificationFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int reasonCase_ = 0; + private java.lang.Object reason_; + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.UserBlockedError, io.gitpod.publicapi.v1.Error.UserBlockedError.Builder, io.gitpod.publicapi.v1.Error.UserBlockedErrorOrBuilder> userBlockedBuilder_; + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + * @return Whether the userBlocked field is set. + */ + @java.lang.Override + public boolean hasUserBlocked() { + return reasonCase_ == 1; + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + * @return The userBlocked. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.UserBlockedError getUserBlocked() { + if (userBlockedBuilder_ == null) { + if (reasonCase_ == 1) { + return (io.gitpod.publicapi.v1.Error.UserBlockedError) reason_; + } + return io.gitpod.publicapi.v1.Error.UserBlockedError.getDefaultInstance(); + } else { + if (reasonCase_ == 1) { + return userBlockedBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.Error.UserBlockedError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + */ + public Builder setUserBlocked(io.gitpod.publicapi.v1.Error.UserBlockedError value) { + if (userBlockedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + userBlockedBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + */ + public Builder setUserBlocked( + io.gitpod.publicapi.v1.Error.UserBlockedError.Builder builderForValue) { + if (userBlockedBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + userBlockedBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 1; + return this; + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + */ + public Builder mergeUserBlocked(io.gitpod.publicapi.v1.Error.UserBlockedError value) { + if (userBlockedBuilder_ == null) { + if (reasonCase_ == 1 && + reason_ != io.gitpod.publicapi.v1.Error.UserBlockedError.getDefaultInstance()) { + reason_ = io.gitpod.publicapi.v1.Error.UserBlockedError.newBuilder((io.gitpod.publicapi.v1.Error.UserBlockedError) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 1) { + userBlockedBuilder_.mergeFrom(value); + } else { + userBlockedBuilder_.setMessage(value); + } + } + reasonCase_ = 1; + return this; + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + */ + public Builder clearUserBlocked() { + if (userBlockedBuilder_ == null) { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + } + userBlockedBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + */ + public io.gitpod.publicapi.v1.Error.UserBlockedError.Builder getUserBlockedBuilder() { + return getUserBlockedFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.UserBlockedErrorOrBuilder getUserBlockedOrBuilder() { + if ((reasonCase_ == 1) && (userBlockedBuilder_ != null)) { + return userBlockedBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 1) { + return (io.gitpod.publicapi.v1.Error.UserBlockedError) reason_; + } + return io.gitpod.publicapi.v1.Error.UserBlockedError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.UserBlockedError user_blocked = 1 [json_name = "userBlocked"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.UserBlockedError, io.gitpod.publicapi.v1.Error.UserBlockedError.Builder, io.gitpod.publicapi.v1.Error.UserBlockedErrorOrBuilder> + getUserBlockedFieldBuilder() { + if (userBlockedBuilder_ == null) { + if (!(reasonCase_ == 1)) { + reason_ = io.gitpod.publicapi.v1.Error.UserBlockedError.getDefaultInstance(); + } + userBlockedBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.UserBlockedError, io.gitpod.publicapi.v1.Error.UserBlockedError.Builder, io.gitpod.publicapi.v1.Error.UserBlockedErrorOrBuilder>( + (io.gitpod.publicapi.v1.Error.UserBlockedError) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 1; + onChanged(); + return userBlockedBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.NeedsVerificationError, io.gitpod.publicapi.v1.Error.NeedsVerificationError.Builder, io.gitpod.publicapi.v1.Error.NeedsVerificationErrorOrBuilder> needsVerificationBuilder_; + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + * @return Whether the needsVerification field is set. + */ + @java.lang.Override + public boolean hasNeedsVerification() { + return reasonCase_ == 2; + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + * @return The needsVerification. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.NeedsVerificationError getNeedsVerification() { + if (needsVerificationBuilder_ == null) { + if (reasonCase_ == 2) { + return (io.gitpod.publicapi.v1.Error.NeedsVerificationError) reason_; + } + return io.gitpod.publicapi.v1.Error.NeedsVerificationError.getDefaultInstance(); + } else { + if (reasonCase_ == 2) { + return needsVerificationBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.Error.NeedsVerificationError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + */ + public Builder setNeedsVerification(io.gitpod.publicapi.v1.Error.NeedsVerificationError value) { + if (needsVerificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + needsVerificationBuilder_.setMessage(value); + } + reasonCase_ = 2; + return this; + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + */ + public Builder setNeedsVerification( + io.gitpod.publicapi.v1.Error.NeedsVerificationError.Builder builderForValue) { + if (needsVerificationBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + needsVerificationBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 2; + return this; + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + */ + public Builder mergeNeedsVerification(io.gitpod.publicapi.v1.Error.NeedsVerificationError value) { + if (needsVerificationBuilder_ == null) { + if (reasonCase_ == 2 && + reason_ != io.gitpod.publicapi.v1.Error.NeedsVerificationError.getDefaultInstance()) { + reason_ = io.gitpod.publicapi.v1.Error.NeedsVerificationError.newBuilder((io.gitpod.publicapi.v1.Error.NeedsVerificationError) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 2) { + needsVerificationBuilder_.mergeFrom(value); + } else { + needsVerificationBuilder_.setMessage(value); + } + } + reasonCase_ = 2; + return this; + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + */ + public Builder clearNeedsVerification() { + if (needsVerificationBuilder_ == null) { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + } + needsVerificationBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + */ + public io.gitpod.publicapi.v1.Error.NeedsVerificationError.Builder getNeedsVerificationBuilder() { + return getNeedsVerificationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.NeedsVerificationErrorOrBuilder getNeedsVerificationOrBuilder() { + if ((reasonCase_ == 2) && (needsVerificationBuilder_ != null)) { + return needsVerificationBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 2) { + return (io.gitpod.publicapi.v1.Error.NeedsVerificationError) reason_; + } + return io.gitpod.publicapi.v1.Error.NeedsVerificationError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.NeedsVerificationError needs_verification = 2 [json_name = "needsVerification"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.NeedsVerificationError, io.gitpod.publicapi.v1.Error.NeedsVerificationError.Builder, io.gitpod.publicapi.v1.Error.NeedsVerificationErrorOrBuilder> + getNeedsVerificationFieldBuilder() { + if (needsVerificationBuilder_ == null) { + if (!(reasonCase_ == 2)) { + reason_ = io.gitpod.publicapi.v1.Error.NeedsVerificationError.getDefaultInstance(); + } + needsVerificationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.NeedsVerificationError, io.gitpod.publicapi.v1.Error.NeedsVerificationError.Builder, io.gitpod.publicapi.v1.Error.NeedsVerificationErrorOrBuilder>( + (io.gitpod.publicapi.v1.Error.NeedsVerificationError) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 2; + onChanged(); + return needsVerificationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.PermissionDeniedDetails) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.PermissionDeniedDetails) + private static final io.gitpod.publicapi.v1.Error.PermissionDeniedDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.PermissionDeniedDetails(); + } + + public static io.gitpod.publicapi.v1.Error.PermissionDeniedDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PermissionDeniedDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PermissionDeniedDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserBlockedErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UserBlockedError) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.UserBlockedError} + */ + public static final class UserBlockedError extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UserBlockedError) + UserBlockedErrorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UserBlockedError.class.getName()); + } + // Use UserBlockedError.newBuilder() to construct. + private UserBlockedError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UserBlockedError() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_UserBlockedError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_UserBlockedError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.UserBlockedError.class, io.gitpod.publicapi.v1.Error.UserBlockedError.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.UserBlockedError)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.UserBlockedError other = (io.gitpod.publicapi.v1.Error.UserBlockedError) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.UserBlockedError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.UserBlockedError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UserBlockedError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UserBlockedError) + io.gitpod.publicapi.v1.Error.UserBlockedErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_UserBlockedError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_UserBlockedError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.UserBlockedError.class, io.gitpod.publicapi.v1.Error.UserBlockedError.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.UserBlockedError.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_UserBlockedError_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.UserBlockedError getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.UserBlockedError.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.UserBlockedError build() { + io.gitpod.publicapi.v1.Error.UserBlockedError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.UserBlockedError buildPartial() { + io.gitpod.publicapi.v1.Error.UserBlockedError result = new io.gitpod.publicapi.v1.Error.UserBlockedError(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.UserBlockedError) { + return mergeFrom((io.gitpod.publicapi.v1.Error.UserBlockedError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.UserBlockedError other) { + if (other == io.gitpod.publicapi.v1.Error.UserBlockedError.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UserBlockedError) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UserBlockedError) + private static final io.gitpod.publicapi.v1.Error.UserBlockedError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.UserBlockedError(); + } + + public static io.gitpod.publicapi.v1.Error.UserBlockedError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserBlockedError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.UserBlockedError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NeedsVerificationErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.NeedsVerificationError) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.NeedsVerificationError} + */ + public static final class NeedsVerificationError extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.NeedsVerificationError) + NeedsVerificationErrorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + NeedsVerificationError.class.getName()); + } + // Use NeedsVerificationError.newBuilder() to construct. + private NeedsVerificationError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private NeedsVerificationError() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_NeedsVerificationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_NeedsVerificationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.NeedsVerificationError.class, io.gitpod.publicapi.v1.Error.NeedsVerificationError.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.NeedsVerificationError)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.NeedsVerificationError other = (io.gitpod.publicapi.v1.Error.NeedsVerificationError) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.NeedsVerificationError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.NeedsVerificationError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.NeedsVerificationError) + io.gitpod.publicapi.v1.Error.NeedsVerificationErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_NeedsVerificationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_NeedsVerificationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.NeedsVerificationError.class, io.gitpod.publicapi.v1.Error.NeedsVerificationError.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.NeedsVerificationError.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_NeedsVerificationError_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.NeedsVerificationError getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.NeedsVerificationError.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.NeedsVerificationError build() { + io.gitpod.publicapi.v1.Error.NeedsVerificationError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.NeedsVerificationError buildPartial() { + io.gitpod.publicapi.v1.Error.NeedsVerificationError result = new io.gitpod.publicapi.v1.Error.NeedsVerificationError(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.NeedsVerificationError) { + return mergeFrom((io.gitpod.publicapi.v1.Error.NeedsVerificationError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.NeedsVerificationError other) { + if (other == io.gitpod.publicapi.v1.Error.NeedsVerificationError.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.NeedsVerificationError) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.NeedsVerificationError) + private static final io.gitpod.publicapi.v1.Error.NeedsVerificationError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.NeedsVerificationError(); + } + + public static io.gitpod.publicapi.v1.Error.NeedsVerificationError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NeedsVerificationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.NeedsVerificationError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FailedPreconditionDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.FailedPreconditionDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + * @return Whether the paymentSpendingLimitReached field is set. + */ + boolean hasPaymentSpendingLimitReached(); + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + * @return The paymentSpendingLimitReached. + */ + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError getPaymentSpendingLimitReached(); + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + */ + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedErrorOrBuilder getPaymentSpendingLimitReachedOrBuilder(); + + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + * @return Whether the invalidCostCenter field is set. + */ + boolean hasInvalidCostCenter(); + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + * @return The invalidCostCenter. + */ + io.gitpod.publicapi.v1.Error.InvalidCostCenterError getInvalidCostCenter(); + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + */ + io.gitpod.publicapi.v1.Error.InvalidCostCenterErrorOrBuilder getInvalidCostCenterOrBuilder(); + + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + * @return Whether the tooManyRunningWorkspaces field is set. + */ + boolean hasTooManyRunningWorkspaces(); + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + * @return The tooManyRunningWorkspaces. + */ + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError getTooManyRunningWorkspaces(); + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + */ + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesErrorOrBuilder getTooManyRunningWorkspacesOrBuilder(); + + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + * @return Whether the invalidGitpodYml field is set. + */ + boolean hasInvalidGitpodYml(); + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + * @return The invalidGitpodYml. + */ + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError getInvalidGitpodYml(); + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + */ + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLErrorOrBuilder getInvalidGitpodYmlOrBuilder(); + + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + * @return Whether the repositoryNotFound field is set. + */ + boolean hasRepositoryNotFound(); + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + * @return The repositoryNotFound. + */ + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError getRepositoryNotFound(); + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + */ + io.gitpod.publicapi.v1.Error.RepositoryNotFoundErrorOrBuilder getRepositoryNotFoundOrBuilder(); + + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + * @return Whether the repositoryUnauthorized field is set. + */ + boolean hasRepositoryUnauthorized(); + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + * @return The repositoryUnauthorized. + */ + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError getRepositoryUnauthorized(); + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + */ + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedErrorOrBuilder getRepositoryUnauthorizedOrBuilder(); + + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + * @return Whether the imageBuildLogsNotYetAvailable field is set. + */ + boolean hasImageBuildLogsNotYetAvailable(); + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + * @return The imageBuildLogsNotYetAvailable. + */ + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError getImageBuildLogsNotYetAvailable(); + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + */ + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableErrorOrBuilder getImageBuildLogsNotYetAvailableOrBuilder(); + + io.gitpod.publicapi.v1.Error.FailedPreconditionDetails.ReasonCase getReasonCase(); + } + /** + *
+   * details for FAILED_PRECONDITION status code
+   * 
+ * + * Protobuf type {@code gitpod.v1.FailedPreconditionDetails} + */ + public static final class FailedPreconditionDetails extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.FailedPreconditionDetails) + FailedPreconditionDetailsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + FailedPreconditionDetails.class.getName()); + } + // Use FailedPreconditionDetails.newBuilder() to construct. + private FailedPreconditionDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private FailedPreconditionDetails() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_FailedPreconditionDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_FailedPreconditionDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.FailedPreconditionDetails.class, io.gitpod.publicapi.v1.Error.FailedPreconditionDetails.Builder.class); + } + + private int reasonCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object reason_; + public enum ReasonCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PAYMENT_SPENDING_LIMIT_REACHED(1), + INVALID_COST_CENTER(2), + TOO_MANY_RUNNING_WORKSPACES(3), + INVALID_GITPOD_YML(4), + REPOSITORY_NOT_FOUND(5), + REPOSITORY_UNAUTHORIZED(6), + IMAGE_BUILD_LOGS_NOT_YET_AVAILABLE(7), + REASON_NOT_SET(0); + private final int value; + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 1: return PAYMENT_SPENDING_LIMIT_REACHED; + case 2: return INVALID_COST_CENTER; + case 3: return TOO_MANY_RUNNING_WORKSPACES; + case 4: return INVALID_GITPOD_YML; + case 5: return REPOSITORY_NOT_FOUND; + case 6: return REPOSITORY_UNAUTHORIZED; + case 7: return IMAGE_BUILD_LOGS_NOT_YET_AVAILABLE; + case 0: return REASON_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public static final int PAYMENT_SPENDING_LIMIT_REACHED_FIELD_NUMBER = 1; + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + * @return Whether the paymentSpendingLimitReached field is set. + */ + @java.lang.Override + public boolean hasPaymentSpendingLimitReached() { + return reasonCase_ == 1; + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + * @return The paymentSpendingLimitReached. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError getPaymentSpendingLimitReached() { + if (reasonCase_ == 1) { + return (io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) reason_; + } + return io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.getDefaultInstance(); + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedErrorOrBuilder getPaymentSpendingLimitReachedOrBuilder() { + if (reasonCase_ == 1) { + return (io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) reason_; + } + return io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.getDefaultInstance(); + } + + public static final int INVALID_COST_CENTER_FIELD_NUMBER = 2; + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + * @return Whether the invalidCostCenter field is set. + */ + @java.lang.Override + public boolean hasInvalidCostCenter() { + return reasonCase_ == 2; + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + * @return The invalidCostCenter. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidCostCenterError getInvalidCostCenter() { + if (reasonCase_ == 2) { + return (io.gitpod.publicapi.v1.Error.InvalidCostCenterError) reason_; + } + return io.gitpod.publicapi.v1.Error.InvalidCostCenterError.getDefaultInstance(); + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidCostCenterErrorOrBuilder getInvalidCostCenterOrBuilder() { + if (reasonCase_ == 2) { + return (io.gitpod.publicapi.v1.Error.InvalidCostCenterError) reason_; + } + return io.gitpod.publicapi.v1.Error.InvalidCostCenterError.getDefaultInstance(); + } + + public static final int TOO_MANY_RUNNING_WORKSPACES_FIELD_NUMBER = 3; + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + * @return Whether the tooManyRunningWorkspaces field is set. + */ + @java.lang.Override + public boolean hasTooManyRunningWorkspaces() { + return reasonCase_ == 3; + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + * @return The tooManyRunningWorkspaces. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError getTooManyRunningWorkspaces() { + if (reasonCase_ == 3) { + return (io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) reason_; + } + return io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.getDefaultInstance(); + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesErrorOrBuilder getTooManyRunningWorkspacesOrBuilder() { + if (reasonCase_ == 3) { + return (io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) reason_; + } + return io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.getDefaultInstance(); + } + + public static final int INVALID_GITPOD_YML_FIELD_NUMBER = 4; + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + * @return Whether the invalidGitpodYml field is set. + */ + @java.lang.Override + public boolean hasInvalidGitpodYml() { + return reasonCase_ == 4; + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + * @return The invalidGitpodYml. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError getInvalidGitpodYml() { + if (reasonCase_ == 4) { + return (io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) reason_; + } + return io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.getDefaultInstance(); + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidGitpodYMLErrorOrBuilder getInvalidGitpodYmlOrBuilder() { + if (reasonCase_ == 4) { + return (io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) reason_; + } + return io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.getDefaultInstance(); + } + + public static final int REPOSITORY_NOT_FOUND_FIELD_NUMBER = 5; + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + * @return Whether the repositoryNotFound field is set. + */ + @java.lang.Override + public boolean hasRepositoryNotFound() { + return reasonCase_ == 5; + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + * @return The repositoryNotFound. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryNotFoundError getRepositoryNotFound() { + if (reasonCase_ == 5) { + return (io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) reason_; + } + return io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.getDefaultInstance(); + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryNotFoundErrorOrBuilder getRepositoryNotFoundOrBuilder() { + if (reasonCase_ == 5) { + return (io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) reason_; + } + return io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.getDefaultInstance(); + } + + public static final int REPOSITORY_UNAUTHORIZED_FIELD_NUMBER = 6; + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + * @return Whether the repositoryUnauthorized field is set. + */ + @java.lang.Override + public boolean hasRepositoryUnauthorized() { + return reasonCase_ == 6; + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + * @return The repositoryUnauthorized. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError getRepositoryUnauthorized() { + if (reasonCase_ == 6) { + return (io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) reason_; + } + return io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.getDefaultInstance(); + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedErrorOrBuilder getRepositoryUnauthorizedOrBuilder() { + if (reasonCase_ == 6) { + return (io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) reason_; + } + return io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.getDefaultInstance(); + } + + public static final int IMAGE_BUILD_LOGS_NOT_YET_AVAILABLE_FIELD_NUMBER = 7; + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + * @return Whether the imageBuildLogsNotYetAvailable field is set. + */ + @java.lang.Override + public boolean hasImageBuildLogsNotYetAvailable() { + return reasonCase_ == 7; + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + * @return The imageBuildLogsNotYetAvailable. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError getImageBuildLogsNotYetAvailable() { + if (reasonCase_ == 7) { + return (io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) reason_; + } + return io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.getDefaultInstance(); + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableErrorOrBuilder getImageBuildLogsNotYetAvailableOrBuilder() { + if (reasonCase_ == 7) { + return (io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) reason_; + } + return io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reasonCase_ == 1) { + output.writeMessage(1, (io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) reason_); + } + if (reasonCase_ == 2) { + output.writeMessage(2, (io.gitpod.publicapi.v1.Error.InvalidCostCenterError) reason_); + } + if (reasonCase_ == 3) { + output.writeMessage(3, (io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) reason_); + } + if (reasonCase_ == 4) { + output.writeMessage(4, (io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) reason_); + } + if (reasonCase_ == 5) { + output.writeMessage(5, (io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) reason_); + } + if (reasonCase_ == 6) { + output.writeMessage(6, (io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) reason_); + } + if (reasonCase_ == 7) { + output.writeMessage(7, (io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reasonCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) reason_); + } + if (reasonCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.gitpod.publicapi.v1.Error.InvalidCostCenterError) reason_); + } + if (reasonCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) reason_); + } + if (reasonCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) reason_); + } + if (reasonCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) reason_); + } + if (reasonCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) reason_); + } + if (reasonCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.FailedPreconditionDetails)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.FailedPreconditionDetails other = (io.gitpod.publicapi.v1.Error.FailedPreconditionDetails) obj; + + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 1: + if (!getPaymentSpendingLimitReached() + .equals(other.getPaymentSpendingLimitReached())) return false; + break; + case 2: + if (!getInvalidCostCenter() + .equals(other.getInvalidCostCenter())) return false; + break; + case 3: + if (!getTooManyRunningWorkspaces() + .equals(other.getTooManyRunningWorkspaces())) return false; + break; + case 4: + if (!getInvalidGitpodYml() + .equals(other.getInvalidGitpodYml())) return false; + break; + case 5: + if (!getRepositoryNotFound() + .equals(other.getRepositoryNotFound())) return false; + break; + case 6: + if (!getRepositoryUnauthorized() + .equals(other.getRepositoryUnauthorized())) return false; + break; + case 7: + if (!getImageBuildLogsNotYetAvailable() + .equals(other.getImageBuildLogsNotYetAvailable())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (reasonCase_) { + case 1: + hash = (37 * hash) + PAYMENT_SPENDING_LIMIT_REACHED_FIELD_NUMBER; + hash = (53 * hash) + getPaymentSpendingLimitReached().hashCode(); + break; + case 2: + hash = (37 * hash) + INVALID_COST_CENTER_FIELD_NUMBER; + hash = (53 * hash) + getInvalidCostCenter().hashCode(); + break; + case 3: + hash = (37 * hash) + TOO_MANY_RUNNING_WORKSPACES_FIELD_NUMBER; + hash = (53 * hash) + getTooManyRunningWorkspaces().hashCode(); + break; + case 4: + hash = (37 * hash) + INVALID_GITPOD_YML_FIELD_NUMBER; + hash = (53 * hash) + getInvalidGitpodYml().hashCode(); + break; + case 5: + hash = (37 * hash) + REPOSITORY_NOT_FOUND_FIELD_NUMBER; + hash = (53 * hash) + getRepositoryNotFound().hashCode(); + break; + case 6: + hash = (37 * hash) + REPOSITORY_UNAUTHORIZED_FIELD_NUMBER; + hash = (53 * hash) + getRepositoryUnauthorized().hashCode(); + break; + case 7: + hash = (37 * hash) + IMAGE_BUILD_LOGS_NOT_YET_AVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getImageBuildLogsNotYetAvailable().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.FailedPreconditionDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * details for FAILED_PRECONDITION status code
+     * 
+ * + * Protobuf type {@code gitpod.v1.FailedPreconditionDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.FailedPreconditionDetails) + io.gitpod.publicapi.v1.Error.FailedPreconditionDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_FailedPreconditionDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_FailedPreconditionDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.FailedPreconditionDetails.class, io.gitpod.publicapi.v1.Error.FailedPreconditionDetails.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.FailedPreconditionDetails.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (paymentSpendingLimitReachedBuilder_ != null) { + paymentSpendingLimitReachedBuilder_.clear(); + } + if (invalidCostCenterBuilder_ != null) { + invalidCostCenterBuilder_.clear(); + } + if (tooManyRunningWorkspacesBuilder_ != null) { + tooManyRunningWorkspacesBuilder_.clear(); + } + if (invalidGitpodYmlBuilder_ != null) { + invalidGitpodYmlBuilder_.clear(); + } + if (repositoryNotFoundBuilder_ != null) { + repositoryNotFoundBuilder_.clear(); + } + if (repositoryUnauthorizedBuilder_ != null) { + repositoryUnauthorizedBuilder_.clear(); + } + if (imageBuildLogsNotYetAvailableBuilder_ != null) { + imageBuildLogsNotYetAvailableBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_FailedPreconditionDetails_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.FailedPreconditionDetails getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.FailedPreconditionDetails.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.FailedPreconditionDetails build() { + io.gitpod.publicapi.v1.Error.FailedPreconditionDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.FailedPreconditionDetails buildPartial() { + io.gitpod.publicapi.v1.Error.FailedPreconditionDetails result = new io.gitpod.publicapi.v1.Error.FailedPreconditionDetails(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Error.FailedPreconditionDetails result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.v1.Error.FailedPreconditionDetails result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 1 && + paymentSpendingLimitReachedBuilder_ != null) { + result.reason_ = paymentSpendingLimitReachedBuilder_.build(); + } + if (reasonCase_ == 2 && + invalidCostCenterBuilder_ != null) { + result.reason_ = invalidCostCenterBuilder_.build(); + } + if (reasonCase_ == 3 && + tooManyRunningWorkspacesBuilder_ != null) { + result.reason_ = tooManyRunningWorkspacesBuilder_.build(); + } + if (reasonCase_ == 4 && + invalidGitpodYmlBuilder_ != null) { + result.reason_ = invalidGitpodYmlBuilder_.build(); + } + if (reasonCase_ == 5 && + repositoryNotFoundBuilder_ != null) { + result.reason_ = repositoryNotFoundBuilder_.build(); + } + if (reasonCase_ == 6 && + repositoryUnauthorizedBuilder_ != null) { + result.reason_ = repositoryUnauthorizedBuilder_.build(); + } + if (reasonCase_ == 7 && + imageBuildLogsNotYetAvailableBuilder_ != null) { + result.reason_ = imageBuildLogsNotYetAvailableBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.FailedPreconditionDetails) { + return mergeFrom((io.gitpod.publicapi.v1.Error.FailedPreconditionDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.FailedPreconditionDetails other) { + if (other == io.gitpod.publicapi.v1.Error.FailedPreconditionDetails.getDefaultInstance()) return this; + switch (other.getReasonCase()) { + case PAYMENT_SPENDING_LIMIT_REACHED: { + mergePaymentSpendingLimitReached(other.getPaymentSpendingLimitReached()); + break; + } + case INVALID_COST_CENTER: { + mergeInvalidCostCenter(other.getInvalidCostCenter()); + break; + } + case TOO_MANY_RUNNING_WORKSPACES: { + mergeTooManyRunningWorkspaces(other.getTooManyRunningWorkspaces()); + break; + } + case INVALID_GITPOD_YML: { + mergeInvalidGitpodYml(other.getInvalidGitpodYml()); + break; + } + case REPOSITORY_NOT_FOUND: { + mergeRepositoryNotFound(other.getRepositoryNotFound()); + break; + } + case REPOSITORY_UNAUTHORIZED: { + mergeRepositoryUnauthorized(other.getRepositoryUnauthorized()); + break; + } + case IMAGE_BUILD_LOGS_NOT_YET_AVAILABLE: { + mergeImageBuildLogsNotYetAvailable(other.getImageBuildLogsNotYetAvailable()); + break; + } + case REASON_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaymentSpendingLimitReachedFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getInvalidCostCenterFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getTooManyRunningWorkspacesFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getInvalidGitpodYmlFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getRepositoryNotFoundFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getRepositoryUnauthorizedFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getImageBuildLogsNotYetAvailableFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int reasonCase_ = 0; + private java.lang.Object reason_; + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError, io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.Builder, io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedErrorOrBuilder> paymentSpendingLimitReachedBuilder_; + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + * @return Whether the paymentSpendingLimitReached field is set. + */ + @java.lang.Override + public boolean hasPaymentSpendingLimitReached() { + return reasonCase_ == 1; + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + * @return The paymentSpendingLimitReached. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError getPaymentSpendingLimitReached() { + if (paymentSpendingLimitReachedBuilder_ == null) { + if (reasonCase_ == 1) { + return (io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) reason_; + } + return io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.getDefaultInstance(); + } else { + if (reasonCase_ == 1) { + return paymentSpendingLimitReachedBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + */ + public Builder setPaymentSpendingLimitReached(io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError value) { + if (paymentSpendingLimitReachedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + paymentSpendingLimitReachedBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + */ + public Builder setPaymentSpendingLimitReached( + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.Builder builderForValue) { + if (paymentSpendingLimitReachedBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + paymentSpendingLimitReachedBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 1; + return this; + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + */ + public Builder mergePaymentSpendingLimitReached(io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError value) { + if (paymentSpendingLimitReachedBuilder_ == null) { + if (reasonCase_ == 1 && + reason_ != io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.getDefaultInstance()) { + reason_ = io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.newBuilder((io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 1) { + paymentSpendingLimitReachedBuilder_.mergeFrom(value); + } else { + paymentSpendingLimitReachedBuilder_.setMessage(value); + } + } + reasonCase_ = 1; + return this; + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + */ + public Builder clearPaymentSpendingLimitReached() { + if (paymentSpendingLimitReachedBuilder_ == null) { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + } + paymentSpendingLimitReachedBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + */ + public io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.Builder getPaymentSpendingLimitReachedBuilder() { + return getPaymentSpendingLimitReachedFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedErrorOrBuilder getPaymentSpendingLimitReachedOrBuilder() { + if ((reasonCase_ == 1) && (paymentSpendingLimitReachedBuilder_ != null)) { + return paymentSpendingLimitReachedBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 1) { + return (io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) reason_; + } + return io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.PaymentSpendingLimitReachedError payment_spending_limit_reached = 1 [json_name = "paymentSpendingLimitReached"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError, io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.Builder, io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedErrorOrBuilder> + getPaymentSpendingLimitReachedFieldBuilder() { + if (paymentSpendingLimitReachedBuilder_ == null) { + if (!(reasonCase_ == 1)) { + reason_ = io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.getDefaultInstance(); + } + paymentSpendingLimitReachedBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError, io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.Builder, io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedErrorOrBuilder>( + (io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 1; + onChanged(); + return paymentSpendingLimitReachedBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.InvalidCostCenterError, io.gitpod.publicapi.v1.Error.InvalidCostCenterError.Builder, io.gitpod.publicapi.v1.Error.InvalidCostCenterErrorOrBuilder> invalidCostCenterBuilder_; + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + * @return Whether the invalidCostCenter field is set. + */ + @java.lang.Override + public boolean hasInvalidCostCenter() { + return reasonCase_ == 2; + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + * @return The invalidCostCenter. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidCostCenterError getInvalidCostCenter() { + if (invalidCostCenterBuilder_ == null) { + if (reasonCase_ == 2) { + return (io.gitpod.publicapi.v1.Error.InvalidCostCenterError) reason_; + } + return io.gitpod.publicapi.v1.Error.InvalidCostCenterError.getDefaultInstance(); + } else { + if (reasonCase_ == 2) { + return invalidCostCenterBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.Error.InvalidCostCenterError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + */ + public Builder setInvalidCostCenter(io.gitpod.publicapi.v1.Error.InvalidCostCenterError value) { + if (invalidCostCenterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + invalidCostCenterBuilder_.setMessage(value); + } + reasonCase_ = 2; + return this; + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + */ + public Builder setInvalidCostCenter( + io.gitpod.publicapi.v1.Error.InvalidCostCenterError.Builder builderForValue) { + if (invalidCostCenterBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + invalidCostCenterBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 2; + return this; + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + */ + public Builder mergeInvalidCostCenter(io.gitpod.publicapi.v1.Error.InvalidCostCenterError value) { + if (invalidCostCenterBuilder_ == null) { + if (reasonCase_ == 2 && + reason_ != io.gitpod.publicapi.v1.Error.InvalidCostCenterError.getDefaultInstance()) { + reason_ = io.gitpod.publicapi.v1.Error.InvalidCostCenterError.newBuilder((io.gitpod.publicapi.v1.Error.InvalidCostCenterError) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 2) { + invalidCostCenterBuilder_.mergeFrom(value); + } else { + invalidCostCenterBuilder_.setMessage(value); + } + } + reasonCase_ = 2; + return this; + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + */ + public Builder clearInvalidCostCenter() { + if (invalidCostCenterBuilder_ == null) { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + } + invalidCostCenterBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + */ + public io.gitpod.publicapi.v1.Error.InvalidCostCenterError.Builder getInvalidCostCenterBuilder() { + return getInvalidCostCenterFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidCostCenterErrorOrBuilder getInvalidCostCenterOrBuilder() { + if ((reasonCase_ == 2) && (invalidCostCenterBuilder_ != null)) { + return invalidCostCenterBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 2) { + return (io.gitpod.publicapi.v1.Error.InvalidCostCenterError) reason_; + } + return io.gitpod.publicapi.v1.Error.InvalidCostCenterError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.InvalidCostCenterError invalid_cost_center = 2 [json_name = "invalidCostCenter"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.InvalidCostCenterError, io.gitpod.publicapi.v1.Error.InvalidCostCenterError.Builder, io.gitpod.publicapi.v1.Error.InvalidCostCenterErrorOrBuilder> + getInvalidCostCenterFieldBuilder() { + if (invalidCostCenterBuilder_ == null) { + if (!(reasonCase_ == 2)) { + reason_ = io.gitpod.publicapi.v1.Error.InvalidCostCenterError.getDefaultInstance(); + } + invalidCostCenterBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.InvalidCostCenterError, io.gitpod.publicapi.v1.Error.InvalidCostCenterError.Builder, io.gitpod.publicapi.v1.Error.InvalidCostCenterErrorOrBuilder>( + (io.gitpod.publicapi.v1.Error.InvalidCostCenterError) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 2; + onChanged(); + return invalidCostCenterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError, io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.Builder, io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesErrorOrBuilder> tooManyRunningWorkspacesBuilder_; + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + * @return Whether the tooManyRunningWorkspaces field is set. + */ + @java.lang.Override + public boolean hasTooManyRunningWorkspaces() { + return reasonCase_ == 3; + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + * @return The tooManyRunningWorkspaces. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError getTooManyRunningWorkspaces() { + if (tooManyRunningWorkspacesBuilder_ == null) { + if (reasonCase_ == 3) { + return (io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) reason_; + } + return io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.getDefaultInstance(); + } else { + if (reasonCase_ == 3) { + return tooManyRunningWorkspacesBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + */ + public Builder setTooManyRunningWorkspaces(io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError value) { + if (tooManyRunningWorkspacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + tooManyRunningWorkspacesBuilder_.setMessage(value); + } + reasonCase_ = 3; + return this; + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + */ + public Builder setTooManyRunningWorkspaces( + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.Builder builderForValue) { + if (tooManyRunningWorkspacesBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + tooManyRunningWorkspacesBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 3; + return this; + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + */ + public Builder mergeTooManyRunningWorkspaces(io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError value) { + if (tooManyRunningWorkspacesBuilder_ == null) { + if (reasonCase_ == 3 && + reason_ != io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.getDefaultInstance()) { + reason_ = io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.newBuilder((io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 3) { + tooManyRunningWorkspacesBuilder_.mergeFrom(value); + } else { + tooManyRunningWorkspacesBuilder_.setMessage(value); + } + } + reasonCase_ = 3; + return this; + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + */ + public Builder clearTooManyRunningWorkspaces() { + if (tooManyRunningWorkspacesBuilder_ == null) { + if (reasonCase_ == 3) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 3) { + reasonCase_ = 0; + reason_ = null; + } + tooManyRunningWorkspacesBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + */ + public io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.Builder getTooManyRunningWorkspacesBuilder() { + return getTooManyRunningWorkspacesFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesErrorOrBuilder getTooManyRunningWorkspacesOrBuilder() { + if ((reasonCase_ == 3) && (tooManyRunningWorkspacesBuilder_ != null)) { + return tooManyRunningWorkspacesBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 3) { + return (io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) reason_; + } + return io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.TooManyRunningWorkspacesError too_many_running_workspaces = 3 [json_name = "tooManyRunningWorkspaces"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError, io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.Builder, io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesErrorOrBuilder> + getTooManyRunningWorkspacesFieldBuilder() { + if (tooManyRunningWorkspacesBuilder_ == null) { + if (!(reasonCase_ == 3)) { + reason_ = io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.getDefaultInstance(); + } + tooManyRunningWorkspacesBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError, io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.Builder, io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesErrorOrBuilder>( + (io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 3; + onChanged(); + return tooManyRunningWorkspacesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError, io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.Builder, io.gitpod.publicapi.v1.Error.InvalidGitpodYMLErrorOrBuilder> invalidGitpodYmlBuilder_; + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + * @return Whether the invalidGitpodYml field is set. + */ + @java.lang.Override + public boolean hasInvalidGitpodYml() { + return reasonCase_ == 4; + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + * @return The invalidGitpodYml. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError getInvalidGitpodYml() { + if (invalidGitpodYmlBuilder_ == null) { + if (reasonCase_ == 4) { + return (io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) reason_; + } + return io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.getDefaultInstance(); + } else { + if (reasonCase_ == 4) { + return invalidGitpodYmlBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + */ + public Builder setInvalidGitpodYml(io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError value) { + if (invalidGitpodYmlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + invalidGitpodYmlBuilder_.setMessage(value); + } + reasonCase_ = 4; + return this; + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + */ + public Builder setInvalidGitpodYml( + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.Builder builderForValue) { + if (invalidGitpodYmlBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + invalidGitpodYmlBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 4; + return this; + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + */ + public Builder mergeInvalidGitpodYml(io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError value) { + if (invalidGitpodYmlBuilder_ == null) { + if (reasonCase_ == 4 && + reason_ != io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.getDefaultInstance()) { + reason_ = io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.newBuilder((io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 4) { + invalidGitpodYmlBuilder_.mergeFrom(value); + } else { + invalidGitpodYmlBuilder_.setMessage(value); + } + } + reasonCase_ = 4; + return this; + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + */ + public Builder clearInvalidGitpodYml() { + if (invalidGitpodYmlBuilder_ == null) { + if (reasonCase_ == 4) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 4) { + reasonCase_ = 0; + reason_ = null; + } + invalidGitpodYmlBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + */ + public io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.Builder getInvalidGitpodYmlBuilder() { + return getInvalidGitpodYmlFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidGitpodYMLErrorOrBuilder getInvalidGitpodYmlOrBuilder() { + if ((reasonCase_ == 4) && (invalidGitpodYmlBuilder_ != null)) { + return invalidGitpodYmlBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 4) { + return (io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) reason_; + } + return io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.InvalidGitpodYMLError invalid_gitpod_yml = 4 [json_name = "invalidGitpodYml"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError, io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.Builder, io.gitpod.publicapi.v1.Error.InvalidGitpodYMLErrorOrBuilder> + getInvalidGitpodYmlFieldBuilder() { + if (invalidGitpodYmlBuilder_ == null) { + if (!(reasonCase_ == 4)) { + reason_ = io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.getDefaultInstance(); + } + invalidGitpodYmlBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError, io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.Builder, io.gitpod.publicapi.v1.Error.InvalidGitpodYMLErrorOrBuilder>( + (io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 4; + onChanged(); + return invalidGitpodYmlBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError, io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.Builder, io.gitpod.publicapi.v1.Error.RepositoryNotFoundErrorOrBuilder> repositoryNotFoundBuilder_; + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + * @return Whether the repositoryNotFound field is set. + */ + @java.lang.Override + public boolean hasRepositoryNotFound() { + return reasonCase_ == 5; + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + * @return The repositoryNotFound. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryNotFoundError getRepositoryNotFound() { + if (repositoryNotFoundBuilder_ == null) { + if (reasonCase_ == 5) { + return (io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) reason_; + } + return io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return repositoryNotFoundBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + */ + public Builder setRepositoryNotFound(io.gitpod.publicapi.v1.Error.RepositoryNotFoundError value) { + if (repositoryNotFoundBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + repositoryNotFoundBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + */ + public Builder setRepositoryNotFound( + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.Builder builderForValue) { + if (repositoryNotFoundBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + repositoryNotFoundBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + */ + public Builder mergeRepositoryNotFound(io.gitpod.publicapi.v1.Error.RepositoryNotFoundError value) { + if (repositoryNotFoundBuilder_ == null) { + if (reasonCase_ == 5 && + reason_ != io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.getDefaultInstance()) { + reason_ = io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.newBuilder((io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + repositoryNotFoundBuilder_.mergeFrom(value); + } else { + repositoryNotFoundBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + */ + public Builder clearRepositoryNotFound() { + if (repositoryNotFoundBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + repositoryNotFoundBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + */ + public io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.Builder getRepositoryNotFoundBuilder() { + return getRepositoryNotFoundFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryNotFoundErrorOrBuilder getRepositoryNotFoundOrBuilder() { + if ((reasonCase_ == 5) && (repositoryNotFoundBuilder_ != null)) { + return repositoryNotFoundBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) reason_; + } + return io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.RepositoryNotFoundError repository_not_found = 5 [json_name = "repositoryNotFound"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError, io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.Builder, io.gitpod.publicapi.v1.Error.RepositoryNotFoundErrorOrBuilder> + getRepositoryNotFoundFieldBuilder() { + if (repositoryNotFoundBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.getDefaultInstance(); + } + repositoryNotFoundBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError, io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.Builder, io.gitpod.publicapi.v1.Error.RepositoryNotFoundErrorOrBuilder>( + (io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return repositoryNotFoundBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError, io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.Builder, io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedErrorOrBuilder> repositoryUnauthorizedBuilder_; + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + * @return Whether the repositoryUnauthorized field is set. + */ + @java.lang.Override + public boolean hasRepositoryUnauthorized() { + return reasonCase_ == 6; + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + * @return The repositoryUnauthorized. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError getRepositoryUnauthorized() { + if (repositoryUnauthorizedBuilder_ == null) { + if (reasonCase_ == 6) { + return (io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) reason_; + } + return io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return repositoryUnauthorizedBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + */ + public Builder setRepositoryUnauthorized(io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError value) { + if (repositoryUnauthorizedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + repositoryUnauthorizedBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + */ + public Builder setRepositoryUnauthorized( + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.Builder builderForValue) { + if (repositoryUnauthorizedBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + repositoryUnauthorizedBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + */ + public Builder mergeRepositoryUnauthorized(io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError value) { + if (repositoryUnauthorizedBuilder_ == null) { + if (reasonCase_ == 6 && + reason_ != io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.getDefaultInstance()) { + reason_ = io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.newBuilder((io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + repositoryUnauthorizedBuilder_.mergeFrom(value); + } else { + repositoryUnauthorizedBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + */ + public Builder clearRepositoryUnauthorized() { + if (repositoryUnauthorizedBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + repositoryUnauthorizedBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + */ + public io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.Builder getRepositoryUnauthorizedBuilder() { + return getRepositoryUnauthorizedFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedErrorOrBuilder getRepositoryUnauthorizedOrBuilder() { + if ((reasonCase_ == 6) && (repositoryUnauthorizedBuilder_ != null)) { + return repositoryUnauthorizedBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) reason_; + } + return io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.RepositoryUnauthorizedError repository_unauthorized = 6 [json_name = "repositoryUnauthorized"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError, io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.Builder, io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedErrorOrBuilder> + getRepositoryUnauthorizedFieldBuilder() { + if (repositoryUnauthorizedBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.getDefaultInstance(); + } + repositoryUnauthorizedBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError, io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.Builder, io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedErrorOrBuilder>( + (io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 6; + onChanged(); + return repositoryUnauthorizedBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError, io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.Builder, io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableErrorOrBuilder> imageBuildLogsNotYetAvailableBuilder_; + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + * @return Whether the imageBuildLogsNotYetAvailable field is set. + */ + @java.lang.Override + public boolean hasImageBuildLogsNotYetAvailable() { + return reasonCase_ == 7; + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + * @return The imageBuildLogsNotYetAvailable. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError getImageBuildLogsNotYetAvailable() { + if (imageBuildLogsNotYetAvailableBuilder_ == null) { + if (reasonCase_ == 7) { + return (io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) reason_; + } + return io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.getDefaultInstance(); + } else { + if (reasonCase_ == 7) { + return imageBuildLogsNotYetAvailableBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + */ + public Builder setImageBuildLogsNotYetAvailable(io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError value) { + if (imageBuildLogsNotYetAvailableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + imageBuildLogsNotYetAvailableBuilder_.setMessage(value); + } + reasonCase_ = 7; + return this; + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + */ + public Builder setImageBuildLogsNotYetAvailable( + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.Builder builderForValue) { + if (imageBuildLogsNotYetAvailableBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + imageBuildLogsNotYetAvailableBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 7; + return this; + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + */ + public Builder mergeImageBuildLogsNotYetAvailable(io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError value) { + if (imageBuildLogsNotYetAvailableBuilder_ == null) { + if (reasonCase_ == 7 && + reason_ != io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.getDefaultInstance()) { + reason_ = io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.newBuilder((io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 7) { + imageBuildLogsNotYetAvailableBuilder_.mergeFrom(value); + } else { + imageBuildLogsNotYetAvailableBuilder_.setMessage(value); + } + } + reasonCase_ = 7; + return this; + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + */ + public Builder clearImageBuildLogsNotYetAvailable() { + if (imageBuildLogsNotYetAvailableBuilder_ == null) { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + } + imageBuildLogsNotYetAvailableBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + */ + public io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.Builder getImageBuildLogsNotYetAvailableBuilder() { + return getImageBuildLogsNotYetAvailableFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableErrorOrBuilder getImageBuildLogsNotYetAvailableOrBuilder() { + if ((reasonCase_ == 7) && (imageBuildLogsNotYetAvailableBuilder_ != null)) { + return imageBuildLogsNotYetAvailableBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 7) { + return (io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) reason_; + } + return io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.getDefaultInstance(); + } + } + /** + * .gitpod.v1.ImageBuildLogsNotYetAvailableError image_build_logs_not_yet_available = 7 [json_name = "imageBuildLogsNotYetAvailable"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError, io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.Builder, io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableErrorOrBuilder> + getImageBuildLogsNotYetAvailableFieldBuilder() { + if (imageBuildLogsNotYetAvailableBuilder_ == null) { + if (!(reasonCase_ == 7)) { + reason_ = io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.getDefaultInstance(); + } + imageBuildLogsNotYetAvailableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError, io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.Builder, io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableErrorOrBuilder>( + (io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 7; + onChanged(); + return imageBuildLogsNotYetAvailableBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.FailedPreconditionDetails) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.FailedPreconditionDetails) + private static final io.gitpod.publicapi.v1.Error.FailedPreconditionDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.FailedPreconditionDetails(); + } + + public static io.gitpod.publicapi.v1.Error.FailedPreconditionDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailedPreconditionDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.FailedPreconditionDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PaymentSpendingLimitReachedErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.PaymentSpendingLimitReachedError) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.PaymentSpendingLimitReachedError} + */ + public static final class PaymentSpendingLimitReachedError extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.PaymentSpendingLimitReachedError) + PaymentSpendingLimitReachedErrorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PaymentSpendingLimitReachedError.class.getName()); + } + // Use PaymentSpendingLimitReachedError.newBuilder() to construct. + private PaymentSpendingLimitReachedError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PaymentSpendingLimitReachedError() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PaymentSpendingLimitReachedError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PaymentSpendingLimitReachedError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.class, io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError other = (io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.PaymentSpendingLimitReachedError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.PaymentSpendingLimitReachedError) + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PaymentSpendingLimitReachedError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PaymentSpendingLimitReachedError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.class, io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_PaymentSpendingLimitReachedError_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError build() { + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError buildPartial() { + io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError result = new io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError) { + return mergeFrom((io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError other) { + if (other == io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.PaymentSpendingLimitReachedError) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.PaymentSpendingLimitReachedError) + private static final io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError(); + } + + public static io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PaymentSpendingLimitReachedError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.PaymentSpendingLimitReachedError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InvalidCostCenterErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.InvalidCostCenterError) + com.google.protobuf.MessageOrBuilder { + + /** + * string attribution_id = 1 [json_name = "attributionId"]; + * @return The attributionId. + */ + java.lang.String getAttributionId(); + /** + * string attribution_id = 1 [json_name = "attributionId"]; + * @return The bytes for attributionId. + */ + com.google.protobuf.ByteString + getAttributionIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.InvalidCostCenterError} + */ + public static final class InvalidCostCenterError extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.InvalidCostCenterError) + InvalidCostCenterErrorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + InvalidCostCenterError.class.getName()); + } + // Use InvalidCostCenterError.newBuilder() to construct. + private InvalidCostCenterError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private InvalidCostCenterError() { + attributionId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidCostCenterError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidCostCenterError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.InvalidCostCenterError.class, io.gitpod.publicapi.v1.Error.InvalidCostCenterError.Builder.class); + } + + public static final int ATTRIBUTION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object attributionId_ = ""; + /** + * string attribution_id = 1 [json_name = "attributionId"]; + * @return The attributionId. + */ + @java.lang.Override + public java.lang.String getAttributionId() { + java.lang.Object ref = attributionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributionId_ = s; + return s; + } + } + /** + * string attribution_id = 1 [json_name = "attributionId"]; + * @return The bytes for attributionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAttributionIdBytes() { + java.lang.Object ref = attributionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attributionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, attributionId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attributionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, attributionId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.InvalidCostCenterError)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.InvalidCostCenterError other = (io.gitpod.publicapi.v1.Error.InvalidCostCenterError) obj; + + if (!getAttributionId() + .equals(other.getAttributionId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTRIBUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getAttributionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.InvalidCostCenterError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.InvalidCostCenterError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.InvalidCostCenterError) + io.gitpod.publicapi.v1.Error.InvalidCostCenterErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidCostCenterError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidCostCenterError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.InvalidCostCenterError.class, io.gitpod.publicapi.v1.Error.InvalidCostCenterError.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.InvalidCostCenterError.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributionId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidCostCenterError_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidCostCenterError getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.InvalidCostCenterError.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidCostCenterError build() { + io.gitpod.publicapi.v1.Error.InvalidCostCenterError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidCostCenterError buildPartial() { + io.gitpod.publicapi.v1.Error.InvalidCostCenterError result = new io.gitpod.publicapi.v1.Error.InvalidCostCenterError(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Error.InvalidCostCenterError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attributionId_ = attributionId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.InvalidCostCenterError) { + return mergeFrom((io.gitpod.publicapi.v1.Error.InvalidCostCenterError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.InvalidCostCenterError other) { + if (other == io.gitpod.publicapi.v1.Error.InvalidCostCenterError.getDefaultInstance()) return this; + if (!other.getAttributionId().isEmpty()) { + attributionId_ = other.attributionId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + attributionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object attributionId_ = ""; + /** + * string attribution_id = 1 [json_name = "attributionId"]; + * @return The attributionId. + */ + public java.lang.String getAttributionId() { + java.lang.Object ref = attributionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string attribution_id = 1 [json_name = "attributionId"]; + * @return The bytes for attributionId. + */ + public com.google.protobuf.ByteString + getAttributionIdBytes() { + java.lang.Object ref = attributionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string attribution_id = 1 [json_name = "attributionId"]; + * @param value The attributionId to set. + * @return This builder for chaining. + */ + public Builder setAttributionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + attributionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string attribution_id = 1 [json_name = "attributionId"]; + * @return This builder for chaining. + */ + public Builder clearAttributionId() { + attributionId_ = getDefaultInstance().getAttributionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string attribution_id = 1 [json_name = "attributionId"]; + * @param value The bytes for attributionId to set. + * @return This builder for chaining. + */ + public Builder setAttributionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + attributionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.InvalidCostCenterError) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.InvalidCostCenterError) + private static final io.gitpod.publicapi.v1.Error.InvalidCostCenterError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.InvalidCostCenterError(); + } + + public static io.gitpod.publicapi.v1.Error.InvalidCostCenterError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvalidCostCenterError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidCostCenterError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TooManyRunningWorkspacesErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.TooManyRunningWorkspacesError) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.TooManyRunningWorkspacesError} + */ + public static final class TooManyRunningWorkspacesError extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.TooManyRunningWorkspacesError) + TooManyRunningWorkspacesErrorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + TooManyRunningWorkspacesError.class.getName()); + } + // Use TooManyRunningWorkspacesError.newBuilder() to construct. + private TooManyRunningWorkspacesError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TooManyRunningWorkspacesError() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_TooManyRunningWorkspacesError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_TooManyRunningWorkspacesError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.class, io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError other = (io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.TooManyRunningWorkspacesError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.TooManyRunningWorkspacesError) + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_TooManyRunningWorkspacesError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_TooManyRunningWorkspacesError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.class, io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_TooManyRunningWorkspacesError_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError build() { + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError buildPartial() { + io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError result = new io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError) { + return mergeFrom((io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError other) { + if (other == io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.TooManyRunningWorkspacesError) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.TooManyRunningWorkspacesError) + private static final io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError(); + } + + public static io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TooManyRunningWorkspacesError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.TooManyRunningWorkspacesError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InvalidGitpodYMLErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.InvalidGitpodYMLError) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string violations = 1 [json_name = "violations"]; + * @return A list containing the violations. + */ + java.util.List + getViolationsList(); + /** + * repeated string violations = 1 [json_name = "violations"]; + * @return The count of violations. + */ + int getViolationsCount(); + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param index The index of the element to return. + * @return The violations at the given index. + */ + java.lang.String getViolations(int index); + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param index The index of the value to return. + * @return The bytes of the violations at the given index. + */ + com.google.protobuf.ByteString + getViolationsBytes(int index); + } + /** + * Protobuf type {@code gitpod.v1.InvalidGitpodYMLError} + */ + public static final class InvalidGitpodYMLError extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.InvalidGitpodYMLError) + InvalidGitpodYMLErrorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + InvalidGitpodYMLError.class.getName()); + } + // Use InvalidGitpodYMLError.newBuilder() to construct. + private InvalidGitpodYMLError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private InvalidGitpodYMLError() { + violations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidGitpodYMLError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidGitpodYMLError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.class, io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.Builder.class); + } + + public static final int VIOLATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList violations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string violations = 1 [json_name = "violations"]; + * @return A list containing the violations. + */ + public com.google.protobuf.ProtocolStringList + getViolationsList() { + return violations_; + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @return The count of violations. + */ + public int getViolationsCount() { + return violations_.size(); + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param index The index of the element to return. + * @return The violations at the given index. + */ + public java.lang.String getViolations(int index) { + return violations_.get(index); + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param index The index of the value to return. + * @return The bytes of the violations at the given index. + */ + public com.google.protobuf.ByteString + getViolationsBytes(int index) { + return violations_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < violations_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, violations_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < violations_.size(); i++) { + dataSize += computeStringSizeNoTag(violations_.getRaw(i)); + } + size += dataSize; + size += 1 * getViolationsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError other = (io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) obj; + + if (!getViolationsList() + .equals(other.getViolationsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getViolationsCount() > 0) { + hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER; + hash = (53 * hash) + getViolationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.InvalidGitpodYMLError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.InvalidGitpodYMLError) + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidGitpodYMLError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidGitpodYMLError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.class, io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + violations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_InvalidGitpodYMLError_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError build() { + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError buildPartial() { + io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError result = new io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + violations_.makeImmutable(); + result.violations_ = violations_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError) { + return mergeFrom((io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError other) { + if (other == io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError.getDefaultInstance()) return this; + if (!other.violations_.isEmpty()) { + if (violations_.isEmpty()) { + violations_ = other.violations_; + bitField0_ |= 0x00000001; + } else { + ensureViolationsIsMutable(); + violations_.addAll(other.violations_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureViolationsIsMutable(); + violations_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList violations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureViolationsIsMutable() { + if (!violations_.isModifiable()) { + violations_ = new com.google.protobuf.LazyStringArrayList(violations_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @return A list containing the violations. + */ + public com.google.protobuf.ProtocolStringList + getViolationsList() { + violations_.makeImmutable(); + return violations_; + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @return The count of violations. + */ + public int getViolationsCount() { + return violations_.size(); + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param index The index of the element to return. + * @return The violations at the given index. + */ + public java.lang.String getViolations(int index) { + return violations_.get(index); + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param index The index of the value to return. + * @return The bytes of the violations at the given index. + */ + public com.google.protobuf.ByteString + getViolationsBytes(int index) { + return violations_.getByteString(index); + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param index The index to set the value at. + * @param value The violations to set. + * @return This builder for chaining. + */ + public Builder setViolations( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureViolationsIsMutable(); + violations_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param value The violations to add. + * @return This builder for chaining. + */ + public Builder addViolations( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureViolationsIsMutable(); + violations_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param values The violations to add. + * @return This builder for chaining. + */ + public Builder addAllViolations( + java.lang.Iterable values) { + ensureViolationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, violations_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @return This builder for chaining. + */ + public Builder clearViolations() { + violations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string violations = 1 [json_name = "violations"]; + * @param value The bytes of the violations to add. + * @return This builder for chaining. + */ + public Builder addViolationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureViolationsIsMutable(); + violations_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.InvalidGitpodYMLError) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.InvalidGitpodYMLError) + private static final io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError(); + } + + public static io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvalidGitpodYMLError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.InvalidGitpodYMLError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RepositoryNotFoundErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.RepositoryNotFoundError) + com.google.protobuf.MessageOrBuilder { + + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + * string owner = 2 [json_name = "owner"]; + * @return The owner. + */ + java.lang.String getOwner(); + /** + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. + */ + com.google.protobuf.ByteString + getOwnerBytes(); + + /** + * bool user_is_owner = 3 [json_name = "userIsOwner"]; + * @return The userIsOwner. + */ + boolean getUserIsOwner(); + + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @return A list containing the userScopes. + */ + java.util.List + getUserScopesList(); + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @return The count of userScopes. + */ + int getUserScopesCount(); + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param index The index of the element to return. + * @return The userScopes at the given index. + */ + java.lang.String getUserScopes(int index); + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param index The index of the value to return. + * @return The bytes of the userScopes at the given index. + */ + com.google.protobuf.ByteString + getUserScopesBytes(int index); + + /** + * string last_update = 5 [json_name = "lastUpdate"]; + * @return The lastUpdate. + */ + java.lang.String getLastUpdate(); + /** + * string last_update = 5 [json_name = "lastUpdate"]; + * @return The bytes for lastUpdate. + */ + com.google.protobuf.ByteString + getLastUpdateBytes(); + } + /** + * Protobuf type {@code gitpod.v1.RepositoryNotFoundError} + */ + public static final class RepositoryNotFoundError extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.RepositoryNotFoundError) + RepositoryNotFoundErrorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + RepositoryNotFoundError.class.getName()); + } + // Use RepositoryNotFoundError.newBuilder() to construct. + private RepositoryNotFoundError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RepositoryNotFoundError() { + host_ = ""; + owner_ = ""; + userScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + lastUpdate_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryNotFoundError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryNotFoundError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.class, io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.Builder.class); + } + + public static final int HOST_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object owner_ = ""; + /** + * string owner = 2 [json_name = "owner"]; + * @return The owner. + */ + @java.lang.Override + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } + } + /** + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_IS_OWNER_FIELD_NUMBER = 3; + private boolean userIsOwner_ = false; + /** + * bool user_is_owner = 3 [json_name = "userIsOwner"]; + * @return The userIsOwner. + */ + @java.lang.Override + public boolean getUserIsOwner() { + return userIsOwner_; + } + + public static final int USER_SCOPES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList userScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @return A list containing the userScopes. + */ + public com.google.protobuf.ProtocolStringList + getUserScopesList() { + return userScopes_; + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @return The count of userScopes. + */ + public int getUserScopesCount() { + return userScopes_.size(); + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param index The index of the element to return. + * @return The userScopes at the given index. + */ + public java.lang.String getUserScopes(int index) { + return userScopes_.get(index); + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param index The index of the value to return. + * @return The bytes of the userScopes at the given index. + */ + public com.google.protobuf.ByteString + getUserScopesBytes(int index) { + return userScopes_.getByteString(index); + } + + public static final int LAST_UPDATE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object lastUpdate_ = ""; + /** + * string last_update = 5 [json_name = "lastUpdate"]; + * @return The lastUpdate. + */ + @java.lang.Override + public java.lang.String getLastUpdate() { + java.lang.Object ref = lastUpdate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastUpdate_ = s; + return s; + } + } + /** + * string last_update = 5 [json_name = "lastUpdate"]; + * @return The bytes for lastUpdate. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLastUpdateBytes() { + java.lang.Object ref = lastUpdate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastUpdate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, owner_); + } + if (userIsOwner_ != false) { + output.writeBool(3, userIsOwner_); + } + for (int i = 0; i < userScopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, userScopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastUpdate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, lastUpdate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, owner_); + } + if (userIsOwner_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, userIsOwner_); + } + { + int dataSize = 0; + for (int i = 0; i < userScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(userScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getUserScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastUpdate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, lastUpdate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.RepositoryNotFoundError)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError other = (io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) obj; + + if (!getHost() + .equals(other.getHost())) return false; + if (!getOwner() + .equals(other.getOwner())) return false; + if (getUserIsOwner() + != other.getUserIsOwner()) return false; + if (!getUserScopesList() + .equals(other.getUserScopesList())) return false; + if (!getLastUpdate() + .equals(other.getLastUpdate())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + hash = (37 * hash) + USER_IS_OWNER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUserIsOwner()); + if (getUserScopesCount() > 0) { + hash = (37 * hash) + USER_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getUserScopesList().hashCode(); + } + hash = (37 * hash) + LAST_UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getLastUpdate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.RepositoryNotFoundError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.RepositoryNotFoundError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.RepositoryNotFoundError) + io.gitpod.publicapi.v1.Error.RepositoryNotFoundErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryNotFoundError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryNotFoundError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.class, io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + host_ = ""; + owner_ = ""; + userIsOwner_ = false; + userScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + lastUpdate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryNotFoundError_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryNotFoundError getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryNotFoundError build() { + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryNotFoundError buildPartial() { + io.gitpod.publicapi.v1.Error.RepositoryNotFoundError result = new io.gitpod.publicapi.v1.Error.RepositoryNotFoundError(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Error.RepositoryNotFoundError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.owner_ = owner_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.userIsOwner_ = userIsOwner_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + userScopes_.makeImmutable(); + result.userScopes_ = userScopes_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lastUpdate_ = lastUpdate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.RepositoryNotFoundError) { + return mergeFrom((io.gitpod.publicapi.v1.Error.RepositoryNotFoundError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.RepositoryNotFoundError other) { + if (other == io.gitpod.publicapi.v1.Error.RepositoryNotFoundError.getDefaultInstance()) return this; + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOwner().isEmpty()) { + owner_ = other.owner_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getUserIsOwner() != false) { + setUserIsOwner(other.getUserIsOwner()); + } + if (!other.userScopes_.isEmpty()) { + if (userScopes_.isEmpty()) { + userScopes_ = other.userScopes_; + bitField0_ |= 0x00000008; + } else { + ensureUserScopesIsMutable(); + userScopes_.addAll(other.userScopes_); + } + onChanged(); + } + if (!other.getLastUpdate().isEmpty()) { + lastUpdate_ = other.lastUpdate_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + owner_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + userIsOwner_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUserScopesIsMutable(); + userScopes_.add(s); + break; + } // case 34 + case 42: { + lastUpdate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object owner_ = ""; + /** + * string owner = 2 [json_name = "owner"]; + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString + getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string owner = 2 [json_name = "owner"]; + * @param value The owner to set. + * @return This builder for chaining. + */ + public Builder setOwner( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + owner_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string owner = 2 [json_name = "owner"]; + * @return This builder for chaining. + */ + public Builder clearOwner() { + owner_ = getDefaultInstance().getOwner(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string owner = 2 [json_name = "owner"]; + * @param value The bytes for owner to set. + * @return This builder for chaining. + */ + public Builder setOwnerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + owner_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean userIsOwner_ ; + /** + * bool user_is_owner = 3 [json_name = "userIsOwner"]; + * @return The userIsOwner. + */ + @java.lang.Override + public boolean getUserIsOwner() { + return userIsOwner_; + } + /** + * bool user_is_owner = 3 [json_name = "userIsOwner"]; + * @param value The userIsOwner to set. + * @return This builder for chaining. + */ + public Builder setUserIsOwner(boolean value) { + + userIsOwner_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * bool user_is_owner = 3 [json_name = "userIsOwner"]; + * @return This builder for chaining. + */ + public Builder clearUserIsOwner() { + bitField0_ = (bitField0_ & ~0x00000004); + userIsOwner_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList userScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUserScopesIsMutable() { + if (!userScopes_.isModifiable()) { + userScopes_ = new com.google.protobuf.LazyStringArrayList(userScopes_); + } + bitField0_ |= 0x00000008; + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @return A list containing the userScopes. + */ + public com.google.protobuf.ProtocolStringList + getUserScopesList() { + userScopes_.makeImmutable(); + return userScopes_; + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @return The count of userScopes. + */ + public int getUserScopesCount() { + return userScopes_.size(); + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param index The index of the element to return. + * @return The userScopes at the given index. + */ + public java.lang.String getUserScopes(int index) { + return userScopes_.get(index); + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param index The index of the value to return. + * @return The bytes of the userScopes at the given index. + */ + public com.google.protobuf.ByteString + getUserScopesBytes(int index) { + return userScopes_.getByteString(index); + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param index The index to set the value at. + * @param value The userScopes to set. + * @return This builder for chaining. + */ + public Builder setUserScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUserScopesIsMutable(); + userScopes_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param value The userScopes to add. + * @return This builder for chaining. + */ + public Builder addUserScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUserScopesIsMutable(); + userScopes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param values The userScopes to add. + * @return This builder for chaining. + */ + public Builder addAllUserScopes( + java.lang.Iterable values) { + ensureUserScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, userScopes_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @return This builder for chaining. + */ + public Builder clearUserScopes() { + userScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + * repeated string user_scopes = 4 [json_name = "userScopes"]; + * @param value The bytes of the userScopes to add. + * @return This builder for chaining. + */ + public Builder addUserScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUserScopesIsMutable(); + userScopes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object lastUpdate_ = ""; + /** + * string last_update = 5 [json_name = "lastUpdate"]; + * @return The lastUpdate. + */ + public java.lang.String getLastUpdate() { + java.lang.Object ref = lastUpdate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastUpdate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string last_update = 5 [json_name = "lastUpdate"]; + * @return The bytes for lastUpdate. + */ + public com.google.protobuf.ByteString + getLastUpdateBytes() { + java.lang.Object ref = lastUpdate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastUpdate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string last_update = 5 [json_name = "lastUpdate"]; + * @param value The lastUpdate to set. + * @return This builder for chaining. + */ + public Builder setLastUpdate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + lastUpdate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string last_update = 5 [json_name = "lastUpdate"]; + * @return This builder for chaining. + */ + public Builder clearLastUpdate() { + lastUpdate_ = getDefaultInstance().getLastUpdate(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string last_update = 5 [json_name = "lastUpdate"]; + * @param value The bytes for lastUpdate to set. + * @return This builder for chaining. + */ + public Builder setLastUpdateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + lastUpdate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.RepositoryNotFoundError) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.RepositoryNotFoundError) + private static final io.gitpod.publicapi.v1.Error.RepositoryNotFoundError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.RepositoryNotFoundError(); + } + + public static io.gitpod.publicapi.v1.Error.RepositoryNotFoundError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepositoryNotFoundError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryNotFoundError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RepositoryUnauthorizedErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.RepositoryUnauthorizedError) + com.google.protobuf.MessageOrBuilder { + + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @return A list containing the requiredScopes. + */ + java.util.List + getRequiredScopesList(); + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @return The count of requiredScopes. + */ + int getRequiredScopesCount(); + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param index The index of the element to return. + * @return The requiredScopes at the given index. + */ + java.lang.String getRequiredScopes(int index); + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param index The index of the value to return. + * @return The bytes of the requiredScopes at the given index. + */ + com.google.protobuf.ByteString + getRequiredScopesBytes(int index); + + /** + * string provider_type = 3 [json_name = "providerType"]; + * @return The providerType. + */ + java.lang.String getProviderType(); + /** + * string provider_type = 3 [json_name = "providerType"]; + * @return The bytes for providerType. + */ + com.google.protobuf.ByteString + getProviderTypeBytes(); + + /** + * string repo_name = 4 [json_name = "repoName"]; + * @return The repoName. + */ + java.lang.String getRepoName(); + /** + * string repo_name = 4 [json_name = "repoName"]; + * @return The bytes for repoName. + */ + com.google.protobuf.ByteString + getRepoNameBytes(); + + /** + * bool provider_is_connected = 5 [json_name = "providerIsConnected"]; + * @return The providerIsConnected. + */ + boolean getProviderIsConnected(); + + /** + * bool is_missing_scopes = 6 [json_name = "isMissingScopes"]; + * @return The isMissingScopes. + */ + boolean getIsMissingScopes(); + } + /** + * Protobuf type {@code gitpod.v1.RepositoryUnauthorizedError} + */ + public static final class RepositoryUnauthorizedError extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.RepositoryUnauthorizedError) + RepositoryUnauthorizedErrorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + RepositoryUnauthorizedError.class.getName()); + } + // Use RepositoryUnauthorizedError.newBuilder() to construct. + private RepositoryUnauthorizedError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RepositoryUnauthorizedError() { + host_ = ""; + requiredScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + providerType_ = ""; + repoName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryUnauthorizedError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryUnauthorizedError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.class, io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.Builder.class); + } + + public static final int HOST_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUIRED_SCOPES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList requiredScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @return A list containing the requiredScopes. + */ + public com.google.protobuf.ProtocolStringList + getRequiredScopesList() { + return requiredScopes_; + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @return The count of requiredScopes. + */ + public int getRequiredScopesCount() { + return requiredScopes_.size(); + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param index The index of the element to return. + * @return The requiredScopes at the given index. + */ + public java.lang.String getRequiredScopes(int index) { + return requiredScopes_.get(index); + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param index The index of the value to return. + * @return The bytes of the requiredScopes at the given index. + */ + public com.google.protobuf.ByteString + getRequiredScopesBytes(int index) { + return requiredScopes_.getByteString(index); + } + + public static final int PROVIDER_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object providerType_ = ""; + /** + * string provider_type = 3 [json_name = "providerType"]; + * @return The providerType. + */ + @java.lang.Override + public java.lang.String getProviderType() { + java.lang.Object ref = providerType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + providerType_ = s; + return s; + } + } + /** + * string provider_type = 3 [json_name = "providerType"]; + * @return The bytes for providerType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProviderTypeBytes() { + java.lang.Object ref = providerType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + providerType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPO_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object repoName_ = ""; + /** + * string repo_name = 4 [json_name = "repoName"]; + * @return The repoName. + */ + @java.lang.Override + public java.lang.String getRepoName() { + java.lang.Object ref = repoName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repoName_ = s; + return s; + } + } + /** + * string repo_name = 4 [json_name = "repoName"]; + * @return The bytes for repoName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRepoNameBytes() { + java.lang.Object ref = repoName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVIDER_IS_CONNECTED_FIELD_NUMBER = 5; + private boolean providerIsConnected_ = false; + /** + * bool provider_is_connected = 5 [json_name = "providerIsConnected"]; + * @return The providerIsConnected. + */ + @java.lang.Override + public boolean getProviderIsConnected() { + return providerIsConnected_; + } + + public static final int IS_MISSING_SCOPES_FIELD_NUMBER = 6; + private boolean isMissingScopes_ = false; + /** + * bool is_missing_scopes = 6 [json_name = "isMissingScopes"]; + * @return The isMissingScopes. + */ + @java.lang.Override + public boolean getIsMissingScopes() { + return isMissingScopes_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, host_); + } + for (int i = 0; i < requiredScopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requiredScopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(providerType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, providerType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repoName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, repoName_); + } + if (providerIsConnected_ != false) { + output.writeBool(5, providerIsConnected_); + } + if (isMissingScopes_ != false) { + output.writeBool(6, isMissingScopes_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, host_); + } + { + int dataSize = 0; + for (int i = 0; i < requiredScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(requiredScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getRequiredScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(providerType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, providerType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repoName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, repoName_); + } + if (providerIsConnected_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, providerIsConnected_); + } + if (isMissingScopes_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, isMissingScopes_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError other = (io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) obj; + + if (!getHost() + .equals(other.getHost())) return false; + if (!getRequiredScopesList() + .equals(other.getRequiredScopesList())) return false; + if (!getProviderType() + .equals(other.getProviderType())) return false; + if (!getRepoName() + .equals(other.getRepoName())) return false; + if (getProviderIsConnected() + != other.getProviderIsConnected()) return false; + if (getIsMissingScopes() + != other.getIsMissingScopes()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + if (getRequiredScopesCount() > 0) { + hash = (37 * hash) + REQUIRED_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getRequiredScopesList().hashCode(); + } + hash = (37 * hash) + PROVIDER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getProviderType().hashCode(); + hash = (37 * hash) + REPO_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRepoName().hashCode(); + hash = (37 * hash) + PROVIDER_IS_CONNECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getProviderIsConnected()); + hash = (37 * hash) + IS_MISSING_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsMissingScopes()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.RepositoryUnauthorizedError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.RepositoryUnauthorizedError) + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryUnauthorizedError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryUnauthorizedError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.class, io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + host_ = ""; + requiredScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + providerType_ = ""; + repoName_ = ""; + providerIsConnected_ = false; + isMissingScopes_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_RepositoryUnauthorizedError_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError build() { + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError buildPartial() { + io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError result = new io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + requiredScopes_.makeImmutable(); + result.requiredScopes_ = requiredScopes_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.providerType_ = providerType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.repoName_ = repoName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.providerIsConnected_ = providerIsConnected_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isMissingScopes_ = isMissingScopes_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError) { + return mergeFrom((io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError other) { + if (other == io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError.getDefaultInstance()) return this; + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.requiredScopes_.isEmpty()) { + if (requiredScopes_.isEmpty()) { + requiredScopes_ = other.requiredScopes_; + bitField0_ |= 0x00000002; + } else { + ensureRequiredScopesIsMutable(); + requiredScopes_.addAll(other.requiredScopes_); + } + onChanged(); + } + if (!other.getProviderType().isEmpty()) { + providerType_ = other.providerType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRepoName().isEmpty()) { + repoName_ = other.repoName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getProviderIsConnected() != false) { + setProviderIsConnected(other.getProviderIsConnected()); + } + if (other.getIsMissingScopes() != false) { + setIsMissingScopes(other.getIsMissingScopes()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRequiredScopesIsMutable(); + requiredScopes_.add(s); + break; + } // case 18 + case 26: { + providerType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + repoName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + providerIsConnected_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + isMissingScopes_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList requiredScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRequiredScopesIsMutable() { + if (!requiredScopes_.isModifiable()) { + requiredScopes_ = new com.google.protobuf.LazyStringArrayList(requiredScopes_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @return A list containing the requiredScopes. + */ + public com.google.protobuf.ProtocolStringList + getRequiredScopesList() { + requiredScopes_.makeImmutable(); + return requiredScopes_; + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @return The count of requiredScopes. + */ + public int getRequiredScopesCount() { + return requiredScopes_.size(); + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param index The index of the element to return. + * @return The requiredScopes at the given index. + */ + public java.lang.String getRequiredScopes(int index) { + return requiredScopes_.get(index); + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param index The index of the value to return. + * @return The bytes of the requiredScopes at the given index. + */ + public com.google.protobuf.ByteString + getRequiredScopesBytes(int index) { + return requiredScopes_.getByteString(index); + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param index The index to set the value at. + * @param value The requiredScopes to set. + * @return This builder for chaining. + */ + public Builder setRequiredScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRequiredScopesIsMutable(); + requiredScopes_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param value The requiredScopes to add. + * @return This builder for chaining. + */ + public Builder addRequiredScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRequiredScopesIsMutable(); + requiredScopes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param values The requiredScopes to add. + * @return This builder for chaining. + */ + public Builder addAllRequiredScopes( + java.lang.Iterable values) { + ensureRequiredScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requiredScopes_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @return This builder for chaining. + */ + public Builder clearRequiredScopes() { + requiredScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + * repeated string required_scopes = 2 [json_name = "requiredScopes"]; + * @param value The bytes of the requiredScopes to add. + * @return This builder for chaining. + */ + public Builder addRequiredScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRequiredScopesIsMutable(); + requiredScopes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object providerType_ = ""; + /** + * string provider_type = 3 [json_name = "providerType"]; + * @return The providerType. + */ + public java.lang.String getProviderType() { + java.lang.Object ref = providerType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + providerType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string provider_type = 3 [json_name = "providerType"]; + * @return The bytes for providerType. + */ + public com.google.protobuf.ByteString + getProviderTypeBytes() { + java.lang.Object ref = providerType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + providerType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string provider_type = 3 [json_name = "providerType"]; + * @param value The providerType to set. + * @return This builder for chaining. + */ + public Builder setProviderType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + providerType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string provider_type = 3 [json_name = "providerType"]; + * @return This builder for chaining. + */ + public Builder clearProviderType() { + providerType_ = getDefaultInstance().getProviderType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string provider_type = 3 [json_name = "providerType"]; + * @param value The bytes for providerType to set. + * @return This builder for chaining. + */ + public Builder setProviderTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + providerType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object repoName_ = ""; + /** + * string repo_name = 4 [json_name = "repoName"]; + * @return The repoName. + */ + public java.lang.String getRepoName() { + java.lang.Object ref = repoName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repoName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string repo_name = 4 [json_name = "repoName"]; + * @return The bytes for repoName. + */ + public com.google.protobuf.ByteString + getRepoNameBytes() { + java.lang.Object ref = repoName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string repo_name = 4 [json_name = "repoName"]; + * @param value The repoName to set. + * @return This builder for chaining. + */ + public Builder setRepoName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + repoName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string repo_name = 4 [json_name = "repoName"]; + * @return This builder for chaining. + */ + public Builder clearRepoName() { + repoName_ = getDefaultInstance().getRepoName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string repo_name = 4 [json_name = "repoName"]; + * @param value The bytes for repoName to set. + * @return This builder for chaining. + */ + public Builder setRepoNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + repoName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean providerIsConnected_ ; + /** + * bool provider_is_connected = 5 [json_name = "providerIsConnected"]; + * @return The providerIsConnected. + */ + @java.lang.Override + public boolean getProviderIsConnected() { + return providerIsConnected_; + } + /** + * bool provider_is_connected = 5 [json_name = "providerIsConnected"]; + * @param value The providerIsConnected to set. + * @return This builder for chaining. + */ + public Builder setProviderIsConnected(boolean value) { + + providerIsConnected_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * bool provider_is_connected = 5 [json_name = "providerIsConnected"]; + * @return This builder for chaining. + */ + public Builder clearProviderIsConnected() { + bitField0_ = (bitField0_ & ~0x00000010); + providerIsConnected_ = false; + onChanged(); + return this; + } + + private boolean isMissingScopes_ ; + /** + * bool is_missing_scopes = 6 [json_name = "isMissingScopes"]; + * @return The isMissingScopes. + */ + @java.lang.Override + public boolean getIsMissingScopes() { + return isMissingScopes_; + } + /** + * bool is_missing_scopes = 6 [json_name = "isMissingScopes"]; + * @param value The isMissingScopes to set. + * @return This builder for chaining. + */ + public Builder setIsMissingScopes(boolean value) { + + isMissingScopes_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * bool is_missing_scopes = 6 [json_name = "isMissingScopes"]; + * @return This builder for chaining. + */ + public Builder clearIsMissingScopes() { + bitField0_ = (bitField0_ & ~0x00000020); + isMissingScopes_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.RepositoryUnauthorizedError) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.RepositoryUnauthorizedError) + private static final io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError(); + } + + public static io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepositoryUnauthorizedError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.RepositoryUnauthorizedError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ImageBuildLogsNotYetAvailableErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ImageBuildLogsNotYetAvailableError) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.ImageBuildLogsNotYetAvailableError} + */ + public static final class ImageBuildLogsNotYetAvailableError extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ImageBuildLogsNotYetAvailableError) + ImageBuildLogsNotYetAvailableErrorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ImageBuildLogsNotYetAvailableError.class.getName()); + } + // Use ImageBuildLogsNotYetAvailableError.newBuilder() to construct. + private ImageBuildLogsNotYetAvailableError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ImageBuildLogsNotYetAvailableError() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.class, io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError other = (io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ImageBuildLogsNotYetAvailableError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ImageBuildLogsNotYetAvailableError) + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.class, io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Error.internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError build() { + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError buildPartial() { + io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError result = new io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError) { + return mergeFrom((io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError other) { + if (other == io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ImageBuildLogsNotYetAvailableError) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ImageBuildLogsNotYetAvailableError) + private static final io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError(); + } + + public static io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageBuildLogsNotYetAvailableError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Error.ImageBuildLogsNotYetAvailableError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_PermissionDeniedDetails_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_PermissionDeniedDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UserBlockedError_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UserBlockedError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_NeedsVerificationError_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_NeedsVerificationError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_FailedPreconditionDetails_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_FailedPreconditionDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_PaymentSpendingLimitReachedError_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_PaymentSpendingLimitReachedError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_InvalidCostCenterError_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_InvalidCostCenterError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_TooManyRunningWorkspacesError_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_TooManyRunningWorkspacesError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_InvalidGitpodYMLError_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_InvalidGitpodYMLError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_RepositoryNotFoundError_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_RepositoryNotFoundError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_RepositoryUnauthorizedError_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_RepositoryUnauthorizedError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\025gitpod/v1/error.proto\022\tgitpod.v1\032 goog" + + "le/protobuf/descriptor.proto\"\271\001\n\027Permiss" + + "ionDeniedDetails\022@\n\014user_blocked\030\001 \001(\0132\033" + + ".gitpod.v1.UserBlockedErrorH\000R\013userBlock" + + "ed\022R\n\022needs_verification\030\002 \001(\0132!.gitpod." + + "v1.NeedsVerificationErrorH\000R\021needsVerifi" + + "cationB\010\n\006reason\"\022\n\020UserBlockedError\"\030\n\026" + + "NeedsVerificationError\"\342\005\n\031FailedPrecond" + + "itionDetails\022r\n\036payment_spending_limit_r" + + "eached\030\001 \001(\0132+.gitpod.v1.PaymentSpending" + + "LimitReachedErrorH\000R\033paymentSpendingLimi" + + "tReached\022S\n\023invalid_cost_center\030\002 \001(\0132!." + + "gitpod.v1.InvalidCostCenterErrorH\000R\021inva" + + "lidCostCenter\022i\n\033too_many_running_worksp" + + "aces\030\003 \001(\0132(.gitpod.v1.TooManyRunningWor" + + "kspacesErrorH\000R\030tooManyRunningWorkspaces" + + "\022P\n\022invalid_gitpod_yml\030\004 \001(\0132 .gitpod.v1" + + ".InvalidGitpodYMLErrorH\000R\020invalidGitpodY" + + "ml\022V\n\024repository_not_found\030\005 \001(\0132\".gitpo" + + "d.v1.RepositoryNotFoundErrorH\000R\022reposito" + + "ryNotFound\022a\n\027repository_unauthorized\030\006 " + + "\001(\0132&.gitpod.v1.RepositoryUnauthorizedEr" + + "rorH\000R\026repositoryUnauthorized\022z\n\"image_b" + + "uild_logs_not_yet_available\030\007 \001(\0132-.gitp" + + "od.v1.ImageBuildLogsNotYetAvailableError" + + "H\000R\035imageBuildLogsNotYetAvailableB\010\n\006rea" + + "son\"\"\n PaymentSpendingLimitReachedError\"" + + "?\n\026InvalidCostCenterError\022%\n\016attribution" + + "_id\030\001 \001(\tR\rattributionId\"\037\n\035TooManyRunni" + + "ngWorkspacesError\"7\n\025InvalidGitpodYMLErr" + + "or\022\036\n\nviolations\030\001 \003(\tR\nviolations\"\251\001\n\027R" + + "epositoryNotFoundError\022\022\n\004host\030\001 \001(\tR\004ho" + + "st\022\024\n\005owner\030\002 \001(\tR\005owner\022\"\n\ruser_is_owne" + + "r\030\003 \001(\010R\013userIsOwner\022\037\n\013user_scopes\030\004 \003(" + + "\tR\nuserScopes\022\037\n\013last_update\030\005 \001(\tR\nlast" + + "Update\"\374\001\n\033RepositoryUnauthorizedError\022\022" + + "\n\004host\030\001 \001(\tR\004host\022\'\n\017required_scopes\030\002 " + + "\003(\tR\016requiredScopes\022#\n\rprovider_type\030\003 \001" + + "(\tR\014providerType\022\033\n\trepo_name\030\004 \001(\tR\010rep" + + "oName\0222\n\025provider_is_connected\030\005 \001(\010R\023pr" + + "oviderIsConnected\022*\n\021is_missing_scopes\030\006" + + " \001(\010R\017isMissingScopes\"$\n\"ImageBuildLogsN" + + "otYetAvailableErrorBQ\n\026io.gitpod.publica" + + "pi.v1Z7github.com/gitpod-io/gitpod/compo" + + "nents/public-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DescriptorProtos.getDescriptor(), + }); + internal_static_gitpod_v1_PermissionDeniedDetails_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_PermissionDeniedDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_PermissionDeniedDetails_descriptor, + new java.lang.String[] { "UserBlocked", "NeedsVerification", "Reason", }); + internal_static_gitpod_v1_UserBlockedError_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_UserBlockedError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UserBlockedError_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_NeedsVerificationError_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_NeedsVerificationError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_NeedsVerificationError_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_FailedPreconditionDetails_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_FailedPreconditionDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_FailedPreconditionDetails_descriptor, + new java.lang.String[] { "PaymentSpendingLimitReached", "InvalidCostCenter", "TooManyRunningWorkspaces", "InvalidGitpodYml", "RepositoryNotFound", "RepositoryUnauthorized", "ImageBuildLogsNotYetAvailable", "Reason", }); + internal_static_gitpod_v1_PaymentSpendingLimitReachedError_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_PaymentSpendingLimitReachedError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_PaymentSpendingLimitReachedError_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_InvalidCostCenterError_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_InvalidCostCenterError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_InvalidCostCenterError_descriptor, + new java.lang.String[] { "AttributionId", }); + internal_static_gitpod_v1_TooManyRunningWorkspacesError_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_TooManyRunningWorkspacesError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_TooManyRunningWorkspacesError_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_InvalidGitpodYMLError_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_InvalidGitpodYMLError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_InvalidGitpodYMLError_descriptor, + new java.lang.String[] { "Violations", }); + internal_static_gitpod_v1_RepositoryNotFoundError_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_RepositoryNotFoundError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_RepositoryNotFoundError_descriptor, + new java.lang.String[] { "Host", "Owner", "UserIsOwner", "UserScopes", "LastUpdate", }); + internal_static_gitpod_v1_RepositoryUnauthorizedError_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_RepositoryUnauthorizedError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_RepositoryUnauthorizedError_descriptor, + new java.lang.String[] { "Host", "RequiredScopes", "ProviderType", "RepoName", "ProviderIsConnected", "IsMissingScopes", }); + internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ImageBuildLogsNotYetAvailableError_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + com.google.protobuf.DescriptorProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Installation.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Installation.java new file mode 100644 index 00000000000000..3d2a3f07548df6 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Installation.java @@ -0,0 +1,12123 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/installation.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Installation { + private Installation() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Installation.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GetOnboardingStateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetOnboardingStateRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.GetOnboardingStateRequest} + */ + public static final class GetOnboardingStateRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetOnboardingStateRequest) + GetOnboardingStateRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOnboardingStateRequest.class.getName()); + } + // Use GetOnboardingStateRequest.newBuilder() to construct. + private GetOnboardingStateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOnboardingStateRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest.class, io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest other = (io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetOnboardingStateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetOnboardingStateRequest) + io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest.class, io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest build() { + io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest buildPartial() { + io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest result = new io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest other) { + if (other == io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOnboardingStateRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetOnboardingStateRequest) + private static final io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest(); + } + + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOnboardingStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOnboardingStateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetOnboardingStateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + * @return Whether the onboardingState field is set. + */ + boolean hasOnboardingState(); + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + * @return The onboardingState. + */ + io.gitpod.publicapi.v1.Installation.OnboardingState getOnboardingState(); + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + */ + io.gitpod.publicapi.v1.Installation.OnboardingStateOrBuilder getOnboardingStateOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GetOnboardingStateResponse} + */ + public static final class GetOnboardingStateResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetOnboardingStateResponse) + GetOnboardingStateResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOnboardingStateResponse.class.getName()); + } + // Use GetOnboardingStateResponse.newBuilder() to construct. + private GetOnboardingStateResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOnboardingStateResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse.class, io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse.Builder.class); + } + + private int bitField0_; + public static final int ONBOARDING_STATE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Installation.OnboardingState onboardingState_; + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + * @return Whether the onboardingState field is set. + */ + @java.lang.Override + public boolean hasOnboardingState() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + * @return The onboardingState. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.OnboardingState getOnboardingState() { + return onboardingState_ == null ? io.gitpod.publicapi.v1.Installation.OnboardingState.getDefaultInstance() : onboardingState_; + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.OnboardingStateOrBuilder getOnboardingStateOrBuilder() { + return onboardingState_ == null ? io.gitpod.publicapi.v1.Installation.OnboardingState.getDefaultInstance() : onboardingState_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOnboardingState()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOnboardingState()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse other = (io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse) obj; + + if (hasOnboardingState() != other.hasOnboardingState()) return false; + if (hasOnboardingState()) { + if (!getOnboardingState() + .equals(other.getOnboardingState())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOnboardingState()) { + hash = (37 * hash) + ONBOARDING_STATE_FIELD_NUMBER; + hash = (53 * hash) + getOnboardingState().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetOnboardingStateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetOnboardingStateResponse) + io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse.class, io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getOnboardingStateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + onboardingState_ = null; + if (onboardingStateBuilder_ != null) { + onboardingStateBuilder_.dispose(); + onboardingStateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetOnboardingStateResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse build() { + io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse buildPartial() { + io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse result = new io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.onboardingState_ = onboardingStateBuilder_ == null + ? onboardingState_ + : onboardingStateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse other) { + if (other == io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse.getDefaultInstance()) return this; + if (other.hasOnboardingState()) { + mergeOnboardingState(other.getOnboardingState()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getOnboardingStateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Installation.OnboardingState onboardingState_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Installation.OnboardingState, io.gitpod.publicapi.v1.Installation.OnboardingState.Builder, io.gitpod.publicapi.v1.Installation.OnboardingStateOrBuilder> onboardingStateBuilder_; + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + * @return Whether the onboardingState field is set. + */ + public boolean hasOnboardingState() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + * @return The onboardingState. + */ + public io.gitpod.publicapi.v1.Installation.OnboardingState getOnboardingState() { + if (onboardingStateBuilder_ == null) { + return onboardingState_ == null ? io.gitpod.publicapi.v1.Installation.OnboardingState.getDefaultInstance() : onboardingState_; + } else { + return onboardingStateBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + */ + public Builder setOnboardingState(io.gitpod.publicapi.v1.Installation.OnboardingState value) { + if (onboardingStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + onboardingState_ = value; + } else { + onboardingStateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + */ + public Builder setOnboardingState( + io.gitpod.publicapi.v1.Installation.OnboardingState.Builder builderForValue) { + if (onboardingStateBuilder_ == null) { + onboardingState_ = builderForValue.build(); + } else { + onboardingStateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + */ + public Builder mergeOnboardingState(io.gitpod.publicapi.v1.Installation.OnboardingState value) { + if (onboardingStateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + onboardingState_ != null && + onboardingState_ != io.gitpod.publicapi.v1.Installation.OnboardingState.getDefaultInstance()) { + getOnboardingStateBuilder().mergeFrom(value); + } else { + onboardingState_ = value; + } + } else { + onboardingStateBuilder_.mergeFrom(value); + } + if (onboardingState_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + */ + public Builder clearOnboardingState() { + bitField0_ = (bitField0_ & ~0x00000001); + onboardingState_ = null; + if (onboardingStateBuilder_ != null) { + onboardingStateBuilder_.dispose(); + onboardingStateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + */ + public io.gitpod.publicapi.v1.Installation.OnboardingState.Builder getOnboardingStateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOnboardingStateFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + */ + public io.gitpod.publicapi.v1.Installation.OnboardingStateOrBuilder getOnboardingStateOrBuilder() { + if (onboardingStateBuilder_ != null) { + return onboardingStateBuilder_.getMessageOrBuilder(); + } else { + return onboardingState_ == null ? + io.gitpod.publicapi.v1.Installation.OnboardingState.getDefaultInstance() : onboardingState_; + } + } + /** + * .gitpod.v1.OnboardingState onboarding_state = 1 [json_name = "onboardingState"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Installation.OnboardingState, io.gitpod.publicapi.v1.Installation.OnboardingState.Builder, io.gitpod.publicapi.v1.Installation.OnboardingStateOrBuilder> + getOnboardingStateFieldBuilder() { + if (onboardingStateBuilder_ == null) { + onboardingStateBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Installation.OnboardingState, io.gitpod.publicapi.v1.Installation.OnboardingState.Builder, io.gitpod.publicapi.v1.Installation.OnboardingStateOrBuilder>( + getOnboardingState(), + getParentForChildren(), + isClean()); + onboardingState_ = null; + } + return onboardingStateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOnboardingStateResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetOnboardingStateResponse) + private static final io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse(); + } + + public static io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOnboardingStateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OnboardingStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.OnboardingState) + com.google.protobuf.MessageOrBuilder { + + /** + * bool completed = 1 [json_name = "completed"]; + * @return The completed. + */ + boolean getCompleted(); + } + /** + * Protobuf type {@code gitpod.v1.OnboardingState} + */ + public static final class OnboardingState extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.OnboardingState) + OnboardingStateOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OnboardingState.class.getName()); + } + // Use OnboardingState.newBuilder() to construct. + private OnboardingState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private OnboardingState() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_OnboardingState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_OnboardingState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.OnboardingState.class, io.gitpod.publicapi.v1.Installation.OnboardingState.Builder.class); + } + + public static final int COMPLETED_FIELD_NUMBER = 1; + private boolean completed_ = false; + /** + * bool completed = 1 [json_name = "completed"]; + * @return The completed. + */ + @java.lang.Override + public boolean getCompleted() { + return completed_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (completed_ != false) { + output.writeBool(1, completed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (completed_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, completed_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.OnboardingState)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.OnboardingState other = (io.gitpod.publicapi.v1.Installation.OnboardingState) obj; + + if (getCompleted() + != other.getCompleted()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COMPLETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCompleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.OnboardingState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.OnboardingState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.OnboardingState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.OnboardingState) + io.gitpod.publicapi.v1.Installation.OnboardingStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_OnboardingState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_OnboardingState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.OnboardingState.class, io.gitpod.publicapi.v1.Installation.OnboardingState.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.OnboardingState.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + completed_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_OnboardingState_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.OnboardingState getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.OnboardingState.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.OnboardingState build() { + io.gitpod.publicapi.v1.Installation.OnboardingState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.OnboardingState buildPartial() { + io.gitpod.publicapi.v1.Installation.OnboardingState result = new io.gitpod.publicapi.v1.Installation.OnboardingState(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.OnboardingState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.completed_ = completed_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.OnboardingState) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.OnboardingState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.OnboardingState other) { + if (other == io.gitpod.publicapi.v1.Installation.OnboardingState.getDefaultInstance()) return this; + if (other.getCompleted() != false) { + setCompleted(other.getCompleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + completed_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean completed_ ; + /** + * bool completed = 1 [json_name = "completed"]; + * @return The completed. + */ + @java.lang.Override + public boolean getCompleted() { + return completed_; + } + /** + * bool completed = 1 [json_name = "completed"]; + * @param value The completed to set. + * @return This builder for chaining. + */ + public Builder setCompleted(boolean value) { + + completed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool completed = 1 [json_name = "completed"]; + * @return This builder for chaining. + */ + public Builder clearCompleted() { + bitField0_ = (bitField0_ & ~0x00000001); + completed_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.OnboardingState) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.OnboardingState) + private static final io.gitpod.publicapi.v1.Installation.OnboardingState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.OnboardingState(); + } + + public static io.gitpod.publicapi.v1.Installation.OnboardingState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnboardingState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.OnboardingState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetInstallationWorkspaceDefaultImageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetInstallationWorkspaceDefaultImageRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.GetInstallationWorkspaceDefaultImageRequest} + */ + public static final class GetInstallationWorkspaceDefaultImageRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetInstallationWorkspaceDefaultImageRequest) + GetInstallationWorkspaceDefaultImageRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetInstallationWorkspaceDefaultImageRequest.class.getName()); + } + // Use GetInstallationWorkspaceDefaultImageRequest.newBuilder() to construct. + private GetInstallationWorkspaceDefaultImageRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetInstallationWorkspaceDefaultImageRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest.class, io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest other = (io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetInstallationWorkspaceDefaultImageRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetInstallationWorkspaceDefaultImageRequest) + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest.class, io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest build() { + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest buildPartial() { + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest result = new io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest other) { + if (other == io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetInstallationWorkspaceDefaultImageRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetInstallationWorkspaceDefaultImageRequest) + private static final io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest(); + } + + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstallationWorkspaceDefaultImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetInstallationWorkspaceDefaultImageResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetInstallationWorkspaceDefaultImageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + java.lang.String getDefaultWorkspaceImage(); + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetInstallationWorkspaceDefaultImageResponse} + */ + public static final class GetInstallationWorkspaceDefaultImageResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetInstallationWorkspaceDefaultImageResponse) + GetInstallationWorkspaceDefaultImageResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetInstallationWorkspaceDefaultImageResponse.class.getName()); + } + // Use GetInstallationWorkspaceDefaultImageResponse.newBuilder() to construct. + private GetInstallationWorkspaceDefaultImageResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetInstallationWorkspaceDefaultImageResponse() { + defaultWorkspaceImage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse.class, io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse.Builder.class); + } + + public static final int DEFAULT_WORKSPACE_IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object defaultWorkspaceImage_ = ""; + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + @java.lang.Override + public java.lang.String getDefaultWorkspaceImage() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultWorkspaceImage_ = s; + return s; + } + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultWorkspaceImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultWorkspaceImage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, defaultWorkspaceImage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultWorkspaceImage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, defaultWorkspaceImage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse other = (io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse) obj; + + if (!getDefaultWorkspaceImage() + .equals(other.getDefaultWorkspaceImage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_WORKSPACE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultWorkspaceImage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetInstallationWorkspaceDefaultImageResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetInstallationWorkspaceDefaultImageResponse) + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse.class, io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultWorkspaceImage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse build() { + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse buildPartial() { + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse result = new io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultWorkspaceImage_ = defaultWorkspaceImage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse other) { + if (other == io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse.getDefaultInstance()) return this; + if (!other.getDefaultWorkspaceImage().isEmpty()) { + defaultWorkspaceImage_ = other.defaultWorkspaceImage_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + defaultWorkspaceImage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object defaultWorkspaceImage_ = ""; + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + public java.lang.String getDefaultWorkspaceImage() { + java.lang.Object ref = defaultWorkspaceImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultWorkspaceImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + public com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultWorkspaceImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @param value The defaultWorkspaceImage to set. + * @return This builder for chaining. + */ + public Builder setDefaultWorkspaceImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + defaultWorkspaceImage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return This builder for chaining. + */ + public Builder clearDefaultWorkspaceImage() { + defaultWorkspaceImage_ = getDefaultInstance().getDefaultWorkspaceImage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @param value The bytes for defaultWorkspaceImage to set. + * @return This builder for chaining. + */ + public Builder setDefaultWorkspaceImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + defaultWorkspaceImage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetInstallationWorkspaceDefaultImageResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetInstallationWorkspaceDefaultImageResponse) + private static final io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse(); + } + + public static io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstallationWorkspaceDefaultImageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListBlockedRepositoriesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListBlockedRepositoriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + java.util.List + getSortList(); + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + io.gitpod.publicapi.v1.Sorting.Sort getSort(int index); + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + int getSortCount(); + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + java.util.List + getSortOrBuilderList(); + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index); + + /** + *
+     * search_term is a search term to filter blocked repositories by url_regexp
+     * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + java.lang.String getSearchTerm(); + /** + *
+     * search_term is a search term to filter blocked repositories by url_regexp
+     * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + com.google.protobuf.ByteString + getSearchTermBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ListBlockedRepositoriesRequest} + */ + public static final class ListBlockedRepositoriesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListBlockedRepositoriesRequest) + ListBlockedRepositoriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListBlockedRepositoriesRequest.class.getName()); + } + // Use ListBlockedRepositoriesRequest.newBuilder() to construct. + private ListBlockedRepositoriesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListBlockedRepositoriesRequest() { + sort_ = java.util.Collections.emptyList(); + searchTerm_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest.class, io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int SORT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List sort_; + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + @java.lang.Override + public java.util.List getSortList() { + return sort_; + } + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + @java.lang.Override + public java.util.List + getSortOrBuilderList() { + return sort_; + } + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + @java.lang.Override + public int getSortCount() { + return sort_.size(); + } + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.Sort getSort(int index) { + return sort_.get(index); + } + /** + *
+     * sort contains the sort options for listing blocked repositories
+     * BlockedRepositories can be sorted by "urlRegexp"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index) { + return sort_.get(index); + } + + public static final int SEARCH_TERM_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object searchTerm_ = ""; + /** + *
+     * search_term is a search term to filter blocked repositories by url_regexp
+     * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + @java.lang.Override + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } + } + /** + *
+     * search_term is a search term to filter blocked repositories by url_regexp
+     * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < sort_.size(); i++) { + output.writeMessage(2, sort_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, searchTerm_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < sort_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, sort_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, searchTerm_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest other = (io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getSortList() + .equals(other.getSortList())) return false; + if (!getSearchTerm() + .equals(other.getSearchTerm())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getSortCount() > 0) { + hash = (37 * hash) + SORT_FIELD_NUMBER; + hash = (53 * hash) + getSortList().hashCode(); + } + hash = (37 * hash) + SEARCH_TERM_FIELD_NUMBER; + hash = (53 * hash) + getSearchTerm().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListBlockedRepositoriesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListBlockedRepositoriesRequest) + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest.class, io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getSortFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (sortBuilder_ == null) { + sort_ = java.util.Collections.emptyList(); + } else { + sort_ = null; + sortBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + searchTerm_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest build() { + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest buildPartial() { + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest result = new io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest result) { + if (sortBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + sort_ = java.util.Collections.unmodifiableList(sort_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.sort_ = sort_; + } else { + result.sort_ = sortBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchTerm_ = searchTerm_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest other) { + if (other == io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (sortBuilder_ == null) { + if (!other.sort_.isEmpty()) { + if (sort_.isEmpty()) { + sort_ = other.sort_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSortIsMutable(); + sort_.addAll(other.sort_); + } + onChanged(); + } + } else { + if (!other.sort_.isEmpty()) { + if (sortBuilder_.isEmpty()) { + sortBuilder_.dispose(); + sortBuilder_ = null; + sort_ = other.sort_; + bitField0_ = (bitField0_ & ~0x00000002); + sortBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSortFieldBuilder() : null; + } else { + sortBuilder_.addAllMessages(other.sort_); + } + } + } + if (!other.getSearchTerm().isEmpty()) { + searchTerm_ = other.searchTerm_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.Sorting.Sort m = + input.readMessage( + io.gitpod.publicapi.v1.Sorting.Sort.parser(), + extensionRegistry); + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(m); + } else { + sortBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + searchTerm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List sort_ = + java.util.Collections.emptyList(); + private void ensureSortIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + sort_ = new java.util.ArrayList(sort_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder> sortBuilder_; + + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public java.util.List getSortList() { + if (sortBuilder_ == null) { + return java.util.Collections.unmodifiableList(sort_); + } else { + return sortBuilder_.getMessageList(); + } + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public int getSortCount() { + if (sortBuilder_ == null) { + return sort_.size(); + } else { + return sortBuilder_.getCount(); + } + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort getSort(int index) { + if (sortBuilder_ == null) { + return sort_.get(index); + } else { + return sortBuilder_.getMessage(index); + } + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public Builder setSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.set(index, value); + onChanged(); + } else { + sortBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public Builder setSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.set(index, builderForValue.build()); + onChanged(); + } else { + sortBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public Builder addSort(io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.add(value); + onChanged(); + } else { + sortBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public Builder addSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.add(index, value); + onChanged(); + } else { + sortBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public Builder addSort( + io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(builderForValue.build()); + onChanged(); + } else { + sortBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public Builder addSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(index, builderForValue.build()); + onChanged(); + } else { + sortBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public Builder addAllSort( + java.lang.Iterable values) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sort_); + onChanged(); + } else { + sortBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public Builder clearSort() { + if (sortBuilder_ == null) { + sort_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + sortBuilder_.clear(); + } + return this; + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public Builder removeSort(int index) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.remove(index); + onChanged(); + } else { + sortBuilder_.remove(index); + } + return this; + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder getSortBuilder( + int index) { + return getSortFieldBuilder().getBuilder(index); + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index) { + if (sortBuilder_ == null) { + return sort_.get(index); } else { + return sortBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public java.util.List + getSortOrBuilderList() { + if (sortBuilder_ != null) { + return sortBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sort_); + } + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder addSortBuilder() { + return getSortFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance()); + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder addSortBuilder( + int index) { + return getSortFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance()); + } + /** + *
+       * sort contains the sort options for listing blocked repositories
+       * BlockedRepositories can be sorted by "urlRegexp"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 2 [json_name = "sort"]; + */ + public java.util.List + getSortBuilderList() { + return getSortFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder> + getSortFieldBuilder() { + if (sortBuilder_ == null) { + sortBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder>( + sort_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + sort_ = null; + } + return sortBuilder_; + } + + private java.lang.Object searchTerm_ = ""; + /** + *
+       * search_term is a search term to filter blocked repositories by url_regexp
+       * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * search_term is a search term to filter blocked repositories by url_regexp
+       * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * search_term is a search term to filter blocked repositories by url_regexp
+       * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @param value The searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTerm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + searchTerm_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * search_term is a search term to filter blocked repositories by url_regexp
+       * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return This builder for chaining. + */ + public Builder clearSearchTerm() { + searchTerm_ = getDefaultInstance().getSearchTerm(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * search_term is a search term to filter blocked repositories by url_regexp
+       * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @param value The bytes for searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTermBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + searchTerm_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListBlockedRepositoriesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListBlockedRepositoriesRequest) + private static final io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest(); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlockedRepositoriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListBlockedRepositoriesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListBlockedRepositoriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + java.util.List + getBlockedRepositoriesList(); + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + io.gitpod.publicapi.v1.Installation.BlockedRepository getBlockedRepositories(int index); + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + int getBlockedRepositoriesCount(); + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + java.util.List + getBlockedRepositoriesOrBuilderList(); + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder getBlockedRepositoriesOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListBlockedRepositoriesResponse} + */ + public static final class ListBlockedRepositoriesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListBlockedRepositoriesResponse) + ListBlockedRepositoriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListBlockedRepositoriesResponse.class.getName()); + } + // Use ListBlockedRepositoriesResponse.newBuilder() to construct. + private ListBlockedRepositoriesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListBlockedRepositoriesResponse() { + blockedRepositories_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse.class, io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing blocked repositories
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + public static final int BLOCKED_REPOSITORIES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List blockedRepositories_; + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + @java.lang.Override + public java.util.List getBlockedRepositoriesList() { + return blockedRepositories_; + } + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + @java.lang.Override + public java.util.List + getBlockedRepositoriesOrBuilderList() { + return blockedRepositories_; + } + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + @java.lang.Override + public int getBlockedRepositoriesCount() { + return blockedRepositories_.size(); + } + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedRepository getBlockedRepositories(int index) { + return blockedRepositories_.get(index); + } + /** + *
+     * blocked_repositories are the blocked repositories
+     * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder getBlockedRepositoriesOrBuilder( + int index) { + return blockedRepositories_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < blockedRepositories_.size(); i++) { + output.writeMessage(2, blockedRepositories_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < blockedRepositories_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, blockedRepositories_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse other = (io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getBlockedRepositoriesList() + .equals(other.getBlockedRepositoriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getBlockedRepositoriesCount() > 0) { + hash = (37 * hash) + BLOCKED_REPOSITORIES_FIELD_NUMBER; + hash = (53 * hash) + getBlockedRepositoriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListBlockedRepositoriesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListBlockedRepositoriesResponse) + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse.class, io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getBlockedRepositoriesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (blockedRepositoriesBuilder_ == null) { + blockedRepositories_ = java.util.Collections.emptyList(); + } else { + blockedRepositories_ = null; + blockedRepositoriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedRepositoriesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse build() { + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse buildPartial() { + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse result = new io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse result) { + if (blockedRepositoriesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + blockedRepositories_ = java.util.Collections.unmodifiableList(blockedRepositories_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.blockedRepositories_ = blockedRepositories_; + } else { + result.blockedRepositories_ = blockedRepositoriesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse other) { + if (other == io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (blockedRepositoriesBuilder_ == null) { + if (!other.blockedRepositories_.isEmpty()) { + if (blockedRepositories_.isEmpty()) { + blockedRepositories_ = other.blockedRepositories_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBlockedRepositoriesIsMutable(); + blockedRepositories_.addAll(other.blockedRepositories_); + } + onChanged(); + } + } else { + if (!other.blockedRepositories_.isEmpty()) { + if (blockedRepositoriesBuilder_.isEmpty()) { + blockedRepositoriesBuilder_.dispose(); + blockedRepositoriesBuilder_ = null; + blockedRepositories_ = other.blockedRepositories_; + bitField0_ = (bitField0_ & ~0x00000002); + blockedRepositoriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBlockedRepositoriesFieldBuilder() : null; + } else { + blockedRepositoriesBuilder_.addAllMessages(other.blockedRepositories_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.Installation.BlockedRepository m = + input.readMessage( + io.gitpod.publicapi.v1.Installation.BlockedRepository.parser(), + extensionRegistry); + if (blockedRepositoriesBuilder_ == null) { + ensureBlockedRepositoriesIsMutable(); + blockedRepositories_.add(m); + } else { + blockedRepositoriesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing blocked repositories
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List blockedRepositories_ = + java.util.Collections.emptyList(); + private void ensureBlockedRepositoriesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + blockedRepositories_ = new java.util.ArrayList(blockedRepositories_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedRepository, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder, io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder> blockedRepositoriesBuilder_; + + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public java.util.List getBlockedRepositoriesList() { + if (blockedRepositoriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(blockedRepositories_); + } else { + return blockedRepositoriesBuilder_.getMessageList(); + } + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public int getBlockedRepositoriesCount() { + if (blockedRepositoriesBuilder_ == null) { + return blockedRepositories_.size(); + } else { + return blockedRepositoriesBuilder_.getCount(); + } + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedRepository getBlockedRepositories(int index) { + if (blockedRepositoriesBuilder_ == null) { + return blockedRepositories_.get(index); + } else { + return blockedRepositoriesBuilder_.getMessage(index); + } + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public Builder setBlockedRepositories( + int index, io.gitpod.publicapi.v1.Installation.BlockedRepository value) { + if (blockedRepositoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedRepositoriesIsMutable(); + blockedRepositories_.set(index, value); + onChanged(); + } else { + blockedRepositoriesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public Builder setBlockedRepositories( + int index, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder builderForValue) { + if (blockedRepositoriesBuilder_ == null) { + ensureBlockedRepositoriesIsMutable(); + blockedRepositories_.set(index, builderForValue.build()); + onChanged(); + } else { + blockedRepositoriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public Builder addBlockedRepositories(io.gitpod.publicapi.v1.Installation.BlockedRepository value) { + if (blockedRepositoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedRepositoriesIsMutable(); + blockedRepositories_.add(value); + onChanged(); + } else { + blockedRepositoriesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public Builder addBlockedRepositories( + int index, io.gitpod.publicapi.v1.Installation.BlockedRepository value) { + if (blockedRepositoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedRepositoriesIsMutable(); + blockedRepositories_.add(index, value); + onChanged(); + } else { + blockedRepositoriesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public Builder addBlockedRepositories( + io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder builderForValue) { + if (blockedRepositoriesBuilder_ == null) { + ensureBlockedRepositoriesIsMutable(); + blockedRepositories_.add(builderForValue.build()); + onChanged(); + } else { + blockedRepositoriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public Builder addBlockedRepositories( + int index, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder builderForValue) { + if (blockedRepositoriesBuilder_ == null) { + ensureBlockedRepositoriesIsMutable(); + blockedRepositories_.add(index, builderForValue.build()); + onChanged(); + } else { + blockedRepositoriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public Builder addAllBlockedRepositories( + java.lang.Iterable values) { + if (blockedRepositoriesBuilder_ == null) { + ensureBlockedRepositoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blockedRepositories_); + onChanged(); + } else { + blockedRepositoriesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public Builder clearBlockedRepositories() { + if (blockedRepositoriesBuilder_ == null) { + blockedRepositories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + blockedRepositoriesBuilder_.clear(); + } + return this; + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public Builder removeBlockedRepositories(int index) { + if (blockedRepositoriesBuilder_ == null) { + ensureBlockedRepositoriesIsMutable(); + blockedRepositories_.remove(index); + onChanged(); + } else { + blockedRepositoriesBuilder_.remove(index); + } + return this; + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder getBlockedRepositoriesBuilder( + int index) { + return getBlockedRepositoriesFieldBuilder().getBuilder(index); + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder getBlockedRepositoriesOrBuilder( + int index) { + if (blockedRepositoriesBuilder_ == null) { + return blockedRepositories_.get(index); } else { + return blockedRepositoriesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public java.util.List + getBlockedRepositoriesOrBuilderList() { + if (blockedRepositoriesBuilder_ != null) { + return blockedRepositoriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blockedRepositories_); + } + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder addBlockedRepositoriesBuilder() { + return getBlockedRepositoriesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Installation.BlockedRepository.getDefaultInstance()); + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder addBlockedRepositoriesBuilder( + int index) { + return getBlockedRepositoriesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Installation.BlockedRepository.getDefaultInstance()); + } + /** + *
+       * blocked_repositories are the blocked repositories
+       * 
+ * + * repeated .gitpod.v1.BlockedRepository blocked_repositories = 2 [json_name = "blockedRepositories"]; + */ + public java.util.List + getBlockedRepositoriesBuilderList() { + return getBlockedRepositoriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedRepository, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder, io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder> + getBlockedRepositoriesFieldBuilder() { + if (blockedRepositoriesBuilder_ == null) { + blockedRepositoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedRepository, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder, io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder>( + blockedRepositories_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + blockedRepositories_ = null; + } + return blockedRepositoriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListBlockedRepositoriesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListBlockedRepositoriesResponse) + private static final io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse(); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlockedRepositoriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateBlockedRepositoryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateBlockedRepositoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * url_regexp is the regular expression for the repository URL
+     * 
+ * + * string url_regexp = 1 [json_name = "urlRegexp"]; + * @return The urlRegexp. + */ + java.lang.String getUrlRegexp(); + /** + *
+     * url_regexp is the regular expression for the repository URL
+     * 
+ * + * string url_regexp = 1 [json_name = "urlRegexp"]; + * @return The bytes for urlRegexp. + */ + com.google.protobuf.ByteString + getUrlRegexpBytes(); + + /** + *
+     * block_user indicates if the user should be blocked from accessing the
+     * repository
+     * 
+ * + * bool block_user = 2 [json_name = "blockUser"]; + * @return The blockUser. + */ + boolean getBlockUser(); + + /** + *
+     * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+     * 
+ * + * bool block_free_usage = 3 [json_name = "blockFreeUsage"]; + * @return The blockFreeUsage. + */ + boolean getBlockFreeUsage(); + } + /** + * Protobuf type {@code gitpod.v1.CreateBlockedRepositoryRequest} + */ + public static final class CreateBlockedRepositoryRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateBlockedRepositoryRequest) + CreateBlockedRepositoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateBlockedRepositoryRequest.class.getName()); + } + // Use CreateBlockedRepositoryRequest.newBuilder() to construct. + private CreateBlockedRepositoryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateBlockedRepositoryRequest() { + urlRegexp_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest.class, io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest.Builder.class); + } + + public static final int URL_REGEXP_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object urlRegexp_ = ""; + /** + *
+     * url_regexp is the regular expression for the repository URL
+     * 
+ * + * string url_regexp = 1 [json_name = "urlRegexp"]; + * @return The urlRegexp. + */ + @java.lang.Override + public java.lang.String getUrlRegexp() { + java.lang.Object ref = urlRegexp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlRegexp_ = s; + return s; + } + } + /** + *
+     * url_regexp is the regular expression for the repository URL
+     * 
+ * + * string url_regexp = 1 [json_name = "urlRegexp"]; + * @return The bytes for urlRegexp. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlRegexpBytes() { + java.lang.Object ref = urlRegexp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + urlRegexp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLOCK_USER_FIELD_NUMBER = 2; + private boolean blockUser_ = false; + /** + *
+     * block_user indicates if the user should be blocked from accessing the
+     * repository
+     * 
+ * + * bool block_user = 2 [json_name = "blockUser"]; + * @return The blockUser. + */ + @java.lang.Override + public boolean getBlockUser() { + return blockUser_; + } + + public static final int BLOCK_FREE_USAGE_FIELD_NUMBER = 3; + private boolean blockFreeUsage_ = false; + /** + *
+     * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+     * 
+ * + * bool block_free_usage = 3 [json_name = "blockFreeUsage"]; + * @return The blockFreeUsage. + */ + @java.lang.Override + public boolean getBlockFreeUsage() { + return blockFreeUsage_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlRegexp_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, urlRegexp_); + } + if (blockUser_ != false) { + output.writeBool(2, blockUser_); + } + if (blockFreeUsage_ != false) { + output.writeBool(3, blockFreeUsage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlRegexp_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, urlRegexp_); + } + if (blockUser_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, blockUser_); + } + if (blockFreeUsage_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, blockFreeUsage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest other = (io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest) obj; + + if (!getUrlRegexp() + .equals(other.getUrlRegexp())) return false; + if (getBlockUser() + != other.getBlockUser()) return false; + if (getBlockFreeUsage() + != other.getBlockFreeUsage()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_REGEXP_FIELD_NUMBER; + hash = (53 * hash) + getUrlRegexp().hashCode(); + hash = (37 * hash) + BLOCK_USER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlockUser()); + hash = (37 * hash) + BLOCK_FREE_USAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlockFreeUsage()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateBlockedRepositoryRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateBlockedRepositoryRequest) + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest.class, io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + urlRegexp_ = ""; + blockUser_ = false; + blockFreeUsage_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest build() { + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest buildPartial() { + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest result = new io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.urlRegexp_ = urlRegexp_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.blockUser_ = blockUser_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blockFreeUsage_ = blockFreeUsage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest other) { + if (other == io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest.getDefaultInstance()) return this; + if (!other.getUrlRegexp().isEmpty()) { + urlRegexp_ = other.urlRegexp_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getBlockUser() != false) { + setBlockUser(other.getBlockUser()); + } + if (other.getBlockFreeUsage() != false) { + setBlockFreeUsage(other.getBlockFreeUsage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + urlRegexp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + blockUser_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + blockFreeUsage_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object urlRegexp_ = ""; + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 1 [json_name = "urlRegexp"]; + * @return The urlRegexp. + */ + public java.lang.String getUrlRegexp() { + java.lang.Object ref = urlRegexp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlRegexp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 1 [json_name = "urlRegexp"]; + * @return The bytes for urlRegexp. + */ + public com.google.protobuf.ByteString + getUrlRegexpBytes() { + java.lang.Object ref = urlRegexp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + urlRegexp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 1 [json_name = "urlRegexp"]; + * @param value The urlRegexp to set. + * @return This builder for chaining. + */ + public Builder setUrlRegexp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + urlRegexp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 1 [json_name = "urlRegexp"]; + * @return This builder for chaining. + */ + public Builder clearUrlRegexp() { + urlRegexp_ = getDefaultInstance().getUrlRegexp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 1 [json_name = "urlRegexp"]; + * @param value The bytes for urlRegexp to set. + * @return This builder for chaining. + */ + public Builder setUrlRegexpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + urlRegexp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean blockUser_ ; + /** + *
+       * block_user indicates if the user should be blocked from accessing the
+       * repository
+       * 
+ * + * bool block_user = 2 [json_name = "blockUser"]; + * @return The blockUser. + */ + @java.lang.Override + public boolean getBlockUser() { + return blockUser_; + } + /** + *
+       * block_user indicates if the user should be blocked from accessing the
+       * repository
+       * 
+ * + * bool block_user = 2 [json_name = "blockUser"]; + * @param value The blockUser to set. + * @return This builder for chaining. + */ + public Builder setBlockUser(boolean value) { + + blockUser_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * block_user indicates if the user should be blocked from accessing the
+       * repository
+       * 
+ * + * bool block_user = 2 [json_name = "blockUser"]; + * @return This builder for chaining. + */ + public Builder clearBlockUser() { + bitField0_ = (bitField0_ & ~0x00000002); + blockUser_ = false; + onChanged(); + return this; + } + + private boolean blockFreeUsage_ ; + /** + *
+       * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+       * 
+ * + * bool block_free_usage = 3 [json_name = "blockFreeUsage"]; + * @return The blockFreeUsage. + */ + @java.lang.Override + public boolean getBlockFreeUsage() { + return blockFreeUsage_; + } + /** + *
+       * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+       * 
+ * + * bool block_free_usage = 3 [json_name = "blockFreeUsage"]; + * @param value The blockFreeUsage to set. + * @return This builder for chaining. + */ + public Builder setBlockFreeUsage(boolean value) { + + blockFreeUsage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+       * 
+ * + * bool block_free_usage = 3 [json_name = "blockFreeUsage"]; + * @return This builder for chaining. + */ + public Builder clearBlockFreeUsage() { + bitField0_ = (bitField0_ & ~0x00000004); + blockFreeUsage_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateBlockedRepositoryRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateBlockedRepositoryRequest) + private static final io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest(); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBlockedRepositoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateBlockedRepositoryResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateBlockedRepositoryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + * @return Whether the blockedRepository field is set. + */ + boolean hasBlockedRepository(); + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + * @return The blockedRepository. + */ + io.gitpod.publicapi.v1.Installation.BlockedRepository getBlockedRepository(); + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + */ + io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder getBlockedRepositoryOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateBlockedRepositoryResponse} + */ + public static final class CreateBlockedRepositoryResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateBlockedRepositoryResponse) + CreateBlockedRepositoryResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateBlockedRepositoryResponse.class.getName()); + } + // Use CreateBlockedRepositoryResponse.newBuilder() to construct. + private CreateBlockedRepositoryResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateBlockedRepositoryResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse.class, io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse.Builder.class); + } + + private int bitField0_; + public static final int BLOCKED_REPOSITORY_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Installation.BlockedRepository blockedRepository_; + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + * @return Whether the blockedRepository field is set. + */ + @java.lang.Override + public boolean hasBlockedRepository() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + * @return The blockedRepository. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedRepository getBlockedRepository() { + return blockedRepository_ == null ? io.gitpod.publicapi.v1.Installation.BlockedRepository.getDefaultInstance() : blockedRepository_; + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder getBlockedRepositoryOrBuilder() { + return blockedRepository_ == null ? io.gitpod.publicapi.v1.Installation.BlockedRepository.getDefaultInstance() : blockedRepository_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBlockedRepository()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBlockedRepository()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse other = (io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse) obj; + + if (hasBlockedRepository() != other.hasBlockedRepository()) return false; + if (hasBlockedRepository()) { + if (!getBlockedRepository() + .equals(other.getBlockedRepository())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlockedRepository()) { + hash = (37 * hash) + BLOCKED_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getBlockedRepository().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateBlockedRepositoryResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateBlockedRepositoryResponse) + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse.class, io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getBlockedRepositoryFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + blockedRepository_ = null; + if (blockedRepositoryBuilder_ != null) { + blockedRepositoryBuilder_.dispose(); + blockedRepositoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedRepositoryResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse build() { + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse buildPartial() { + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse result = new io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.blockedRepository_ = blockedRepositoryBuilder_ == null + ? blockedRepository_ + : blockedRepositoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse other) { + if (other == io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse.getDefaultInstance()) return this; + if (other.hasBlockedRepository()) { + mergeBlockedRepository(other.getBlockedRepository()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getBlockedRepositoryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Installation.BlockedRepository blockedRepository_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedRepository, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder, io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder> blockedRepositoryBuilder_; + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + * @return Whether the blockedRepository field is set. + */ + public boolean hasBlockedRepository() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + * @return The blockedRepository. + */ + public io.gitpod.publicapi.v1.Installation.BlockedRepository getBlockedRepository() { + if (blockedRepositoryBuilder_ == null) { + return blockedRepository_ == null ? io.gitpod.publicapi.v1.Installation.BlockedRepository.getDefaultInstance() : blockedRepository_; + } else { + return blockedRepositoryBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + */ + public Builder setBlockedRepository(io.gitpod.publicapi.v1.Installation.BlockedRepository value) { + if (blockedRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blockedRepository_ = value; + } else { + blockedRepositoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + */ + public Builder setBlockedRepository( + io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder builderForValue) { + if (blockedRepositoryBuilder_ == null) { + blockedRepository_ = builderForValue.build(); + } else { + blockedRepositoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + */ + public Builder mergeBlockedRepository(io.gitpod.publicapi.v1.Installation.BlockedRepository value) { + if (blockedRepositoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + blockedRepository_ != null && + blockedRepository_ != io.gitpod.publicapi.v1.Installation.BlockedRepository.getDefaultInstance()) { + getBlockedRepositoryBuilder().mergeFrom(value); + } else { + blockedRepository_ = value; + } + } else { + blockedRepositoryBuilder_.mergeFrom(value); + } + if (blockedRepository_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + */ + public Builder clearBlockedRepository() { + bitField0_ = (bitField0_ & ~0x00000001); + blockedRepository_ = null; + if (blockedRepositoryBuilder_ != null) { + blockedRepositoryBuilder_.dispose(); + blockedRepositoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder getBlockedRepositoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBlockedRepositoryFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder getBlockedRepositoryOrBuilder() { + if (blockedRepositoryBuilder_ != null) { + return blockedRepositoryBuilder_.getMessageOrBuilder(); + } else { + return blockedRepository_ == null ? + io.gitpod.publicapi.v1.Installation.BlockedRepository.getDefaultInstance() : blockedRepository_; + } + } + /** + * .gitpod.v1.BlockedRepository blocked_repository = 1 [json_name = "blockedRepository"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedRepository, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder, io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder> + getBlockedRepositoryFieldBuilder() { + if (blockedRepositoryBuilder_ == null) { + blockedRepositoryBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedRepository, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder, io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder>( + getBlockedRepository(), + getParentForChildren(), + isClean()); + blockedRepository_ = null; + } + return blockedRepositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateBlockedRepositoryResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateBlockedRepositoryResponse) + private static final io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse(); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBlockedRepositoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteBlockedRepositoryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteBlockedRepositoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * blocked_repository_id is the ID of the blocked repository
+     * 
+ * + * uint32 blocked_repository_id = 1 [json_name = "blockedRepositoryId"]; + * @return The blockedRepositoryId. + */ + int getBlockedRepositoryId(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteBlockedRepositoryRequest} + */ + public static final class DeleteBlockedRepositoryRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteBlockedRepositoryRequest) + DeleteBlockedRepositoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteBlockedRepositoryRequest.class.getName()); + } + // Use DeleteBlockedRepositoryRequest.newBuilder() to construct. + private DeleteBlockedRepositoryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteBlockedRepositoryRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest.class, io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest.Builder.class); + } + + public static final int BLOCKED_REPOSITORY_ID_FIELD_NUMBER = 1; + private int blockedRepositoryId_ = 0; + /** + *
+     * blocked_repository_id is the ID of the blocked repository
+     * 
+ * + * uint32 blocked_repository_id = 1 [json_name = "blockedRepositoryId"]; + * @return The blockedRepositoryId. + */ + @java.lang.Override + public int getBlockedRepositoryId() { + return blockedRepositoryId_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockedRepositoryId_ != 0) { + output.writeUInt32(1, blockedRepositoryId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockedRepositoryId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, blockedRepositoryId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest other = (io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest) obj; + + if (getBlockedRepositoryId() + != other.getBlockedRepositoryId()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKED_REPOSITORY_ID_FIELD_NUMBER; + hash = (53 * hash) + getBlockedRepositoryId(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteBlockedRepositoryRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteBlockedRepositoryRequest) + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest.class, io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + blockedRepositoryId_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest build() { + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest buildPartial() { + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest result = new io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.blockedRepositoryId_ = blockedRepositoryId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest other) { + if (other == io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest.getDefaultInstance()) return this; + if (other.getBlockedRepositoryId() != 0) { + setBlockedRepositoryId(other.getBlockedRepositoryId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + blockedRepositoryId_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int blockedRepositoryId_ ; + /** + *
+       * blocked_repository_id is the ID of the blocked repository
+       * 
+ * + * uint32 blocked_repository_id = 1 [json_name = "blockedRepositoryId"]; + * @return The blockedRepositoryId. + */ + @java.lang.Override + public int getBlockedRepositoryId() { + return blockedRepositoryId_; + } + /** + *
+       * blocked_repository_id is the ID of the blocked repository
+       * 
+ * + * uint32 blocked_repository_id = 1 [json_name = "blockedRepositoryId"]; + * @param value The blockedRepositoryId to set. + * @return This builder for chaining. + */ + public Builder setBlockedRepositoryId(int value) { + + blockedRepositoryId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * blocked_repository_id is the ID of the blocked repository
+       * 
+ * + * uint32 blocked_repository_id = 1 [json_name = "blockedRepositoryId"]; + * @return This builder for chaining. + */ + public Builder clearBlockedRepositoryId() { + bitField0_ = (bitField0_ & ~0x00000001); + blockedRepositoryId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteBlockedRepositoryRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteBlockedRepositoryRequest) + private static final io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest(); + } + + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBlockedRepositoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteBlockedRepositoryResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteBlockedRepositoryResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteBlockedRepositoryResponse} + */ + public static final class DeleteBlockedRepositoryResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteBlockedRepositoryResponse) + DeleteBlockedRepositoryResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteBlockedRepositoryResponse.class.getName()); + } + // Use DeleteBlockedRepositoryResponse.newBuilder() to construct. + private DeleteBlockedRepositoryResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteBlockedRepositoryResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse.class, io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse other = (io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteBlockedRepositoryResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteBlockedRepositoryResponse) + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse.class, io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse build() { + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse buildPartial() { + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse result = new io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse other) { + if (other == io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteBlockedRepositoryResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteBlockedRepositoryResponse) + private static final io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse(); + } + + public static io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBlockedRepositoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListBlockedEmailDomainsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListBlockedEmailDomainsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListBlockedEmailDomainsRequest} + */ + public static final class ListBlockedEmailDomainsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListBlockedEmailDomainsRequest) + ListBlockedEmailDomainsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListBlockedEmailDomainsRequest.class.getName()); + } + // Use ListBlockedEmailDomainsRequest.newBuilder() to construct. + private ListBlockedEmailDomainsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListBlockedEmailDomainsRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest.class, io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest other = (io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListBlockedEmailDomainsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListBlockedEmailDomainsRequest) + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest.class, io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest build() { + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest buildPartial() { + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest result = new io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest other) { + if (other == io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListBlockedEmailDomainsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListBlockedEmailDomainsRequest) + private static final io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest(); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlockedEmailDomainsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListBlockedEmailDomainsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListBlockedEmailDomainsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + java.util.List + getBlockedEmailDomainsList(); + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain getBlockedEmailDomains(int index); + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + int getBlockedEmailDomainsCount(); + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + java.util.List + getBlockedEmailDomainsOrBuilderList(); + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder getBlockedEmailDomainsOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListBlockedEmailDomainsResponse} + */ + public static final class ListBlockedEmailDomainsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListBlockedEmailDomainsResponse) + ListBlockedEmailDomainsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListBlockedEmailDomainsResponse.class.getName()); + } + // Use ListBlockedEmailDomainsResponse.newBuilder() to construct. + private ListBlockedEmailDomainsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListBlockedEmailDomainsResponse() { + blockedEmailDomains_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse.class, io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing blocked email
+     * domains
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + public static final int BLOCKED_EMAIL_DOMAINS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List blockedEmailDomains_; + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + @java.lang.Override + public java.util.List getBlockedEmailDomainsList() { + return blockedEmailDomains_; + } + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + @java.lang.Override + public java.util.List + getBlockedEmailDomainsOrBuilderList() { + return blockedEmailDomains_; + } + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + @java.lang.Override + public int getBlockedEmailDomainsCount() { + return blockedEmailDomains_.size(); + } + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain getBlockedEmailDomains(int index) { + return blockedEmailDomains_.get(index); + } + /** + *
+     * blocked_email_domains are the blocked email domains
+     * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder getBlockedEmailDomainsOrBuilder( + int index) { + return blockedEmailDomains_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < blockedEmailDomains_.size(); i++) { + output.writeMessage(2, blockedEmailDomains_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < blockedEmailDomains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, blockedEmailDomains_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse other = (io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getBlockedEmailDomainsList() + .equals(other.getBlockedEmailDomainsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getBlockedEmailDomainsCount() > 0) { + hash = (37 * hash) + BLOCKED_EMAIL_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getBlockedEmailDomainsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListBlockedEmailDomainsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListBlockedEmailDomainsResponse) + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse.class, io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getBlockedEmailDomainsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (blockedEmailDomainsBuilder_ == null) { + blockedEmailDomains_ = java.util.Collections.emptyList(); + } else { + blockedEmailDomains_ = null; + blockedEmailDomainsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse build() { + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse buildPartial() { + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse result = new io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse result) { + if (blockedEmailDomainsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + blockedEmailDomains_ = java.util.Collections.unmodifiableList(blockedEmailDomains_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.blockedEmailDomains_ = blockedEmailDomains_; + } else { + result.blockedEmailDomains_ = blockedEmailDomainsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse other) { + if (other == io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (blockedEmailDomainsBuilder_ == null) { + if (!other.blockedEmailDomains_.isEmpty()) { + if (blockedEmailDomains_.isEmpty()) { + blockedEmailDomains_ = other.blockedEmailDomains_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBlockedEmailDomainsIsMutable(); + blockedEmailDomains_.addAll(other.blockedEmailDomains_); + } + onChanged(); + } + } else { + if (!other.blockedEmailDomains_.isEmpty()) { + if (blockedEmailDomainsBuilder_.isEmpty()) { + blockedEmailDomainsBuilder_.dispose(); + blockedEmailDomainsBuilder_ = null; + blockedEmailDomains_ = other.blockedEmailDomains_; + bitField0_ = (bitField0_ & ~0x00000002); + blockedEmailDomainsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBlockedEmailDomainsFieldBuilder() : null; + } else { + blockedEmailDomainsBuilder_.addAllMessages(other.blockedEmailDomains_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain m = + input.readMessage( + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.parser(), + extensionRegistry); + if (blockedEmailDomainsBuilder_ == null) { + ensureBlockedEmailDomainsIsMutable(); + blockedEmailDomains_.add(m); + } else { + blockedEmailDomainsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing blocked email
+       * domains
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List blockedEmailDomains_ = + java.util.Collections.emptyList(); + private void ensureBlockedEmailDomainsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + blockedEmailDomains_ = new java.util.ArrayList(blockedEmailDomains_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder, io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder> blockedEmailDomainsBuilder_; + + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public java.util.List getBlockedEmailDomainsList() { + if (blockedEmailDomainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blockedEmailDomains_); + } else { + return blockedEmailDomainsBuilder_.getMessageList(); + } + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public int getBlockedEmailDomainsCount() { + if (blockedEmailDomainsBuilder_ == null) { + return blockedEmailDomains_.size(); + } else { + return blockedEmailDomainsBuilder_.getCount(); + } + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain getBlockedEmailDomains(int index) { + if (blockedEmailDomainsBuilder_ == null) { + return blockedEmailDomains_.get(index); + } else { + return blockedEmailDomainsBuilder_.getMessage(index); + } + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public Builder setBlockedEmailDomains( + int index, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain value) { + if (blockedEmailDomainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedEmailDomainsIsMutable(); + blockedEmailDomains_.set(index, value); + onChanged(); + } else { + blockedEmailDomainsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public Builder setBlockedEmailDomains( + int index, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder builderForValue) { + if (blockedEmailDomainsBuilder_ == null) { + ensureBlockedEmailDomainsIsMutable(); + blockedEmailDomains_.set(index, builderForValue.build()); + onChanged(); + } else { + blockedEmailDomainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public Builder addBlockedEmailDomains(io.gitpod.publicapi.v1.Installation.BlockedEmailDomain value) { + if (blockedEmailDomainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedEmailDomainsIsMutable(); + blockedEmailDomains_.add(value); + onChanged(); + } else { + blockedEmailDomainsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public Builder addBlockedEmailDomains( + int index, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain value) { + if (blockedEmailDomainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedEmailDomainsIsMutable(); + blockedEmailDomains_.add(index, value); + onChanged(); + } else { + blockedEmailDomainsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public Builder addBlockedEmailDomains( + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder builderForValue) { + if (blockedEmailDomainsBuilder_ == null) { + ensureBlockedEmailDomainsIsMutable(); + blockedEmailDomains_.add(builderForValue.build()); + onChanged(); + } else { + blockedEmailDomainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public Builder addBlockedEmailDomains( + int index, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder builderForValue) { + if (blockedEmailDomainsBuilder_ == null) { + ensureBlockedEmailDomainsIsMutable(); + blockedEmailDomains_.add(index, builderForValue.build()); + onChanged(); + } else { + blockedEmailDomainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public Builder addAllBlockedEmailDomains( + java.lang.Iterable values) { + if (blockedEmailDomainsBuilder_ == null) { + ensureBlockedEmailDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blockedEmailDomains_); + onChanged(); + } else { + blockedEmailDomainsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public Builder clearBlockedEmailDomains() { + if (blockedEmailDomainsBuilder_ == null) { + blockedEmailDomains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + blockedEmailDomainsBuilder_.clear(); + } + return this; + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public Builder removeBlockedEmailDomains(int index) { + if (blockedEmailDomainsBuilder_ == null) { + ensureBlockedEmailDomainsIsMutable(); + blockedEmailDomains_.remove(index); + onChanged(); + } else { + blockedEmailDomainsBuilder_.remove(index); + } + return this; + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder getBlockedEmailDomainsBuilder( + int index) { + return getBlockedEmailDomainsFieldBuilder().getBuilder(index); + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder getBlockedEmailDomainsOrBuilder( + int index) { + if (blockedEmailDomainsBuilder_ == null) { + return blockedEmailDomains_.get(index); } else { + return blockedEmailDomainsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public java.util.List + getBlockedEmailDomainsOrBuilderList() { + if (blockedEmailDomainsBuilder_ != null) { + return blockedEmailDomainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blockedEmailDomains_); + } + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder addBlockedEmailDomainsBuilder() { + return getBlockedEmailDomainsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.getDefaultInstance()); + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder addBlockedEmailDomainsBuilder( + int index) { + return getBlockedEmailDomainsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.getDefaultInstance()); + } + /** + *
+       * blocked_email_domains are the blocked email domains
+       * 
+ * + * repeated .gitpod.v1.BlockedEmailDomain blocked_email_domains = 2 [json_name = "blockedEmailDomains"]; + */ + public java.util.List + getBlockedEmailDomainsBuilderList() { + return getBlockedEmailDomainsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder, io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder> + getBlockedEmailDomainsFieldBuilder() { + if (blockedEmailDomainsBuilder_ == null) { + blockedEmailDomainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder, io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder>( + blockedEmailDomains_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + blockedEmailDomains_ = null; + } + return blockedEmailDomainsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListBlockedEmailDomainsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListBlockedEmailDomainsResponse) + private static final io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse(); + } + + public static io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlockedEmailDomainsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateBlockedEmailDomainRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateBlockedEmailDomainRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * domain is the blocked email domain
+     * 
+ * + * string domain = 1 [json_name = "domain"]; + * @return The domain. + */ + java.lang.String getDomain(); + /** + *
+     * domain is the blocked email domain
+     * 
+ * + * string domain = 1 [json_name = "domain"]; + * @return The bytes for domain. + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * bool negative = 2 [json_name = "negative"]; + * @return The negative. + */ + boolean getNegative(); + } + /** + * Protobuf type {@code gitpod.v1.CreateBlockedEmailDomainRequest} + */ + public static final class CreateBlockedEmailDomainRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateBlockedEmailDomainRequest) + CreateBlockedEmailDomainRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateBlockedEmailDomainRequest.class.getName()); + } + // Use CreateBlockedEmailDomainRequest.newBuilder() to construct. + private CreateBlockedEmailDomainRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateBlockedEmailDomainRequest() { + domain_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest.class, io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest.Builder.class); + } + + public static final int DOMAIN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + /** + *
+     * domain is the blocked email domain
+     * 
+ * + * string domain = 1 [json_name = "domain"]; + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * domain is the blocked email domain
+     * 
+ * + * string domain = 1 [json_name = "domain"]; + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATIVE_FIELD_NUMBER = 2; + private boolean negative_ = false; + /** + * bool negative = 2 [json_name = "negative"]; + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domain_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, domain_); + } + if (negative_ != false) { + output.writeBool(2, negative_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domain_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, domain_); + } + if (negative_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, negative_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest other = (io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest) obj; + + if (!getDomain() + .equals(other.getDomain())) return false; + if (getNegative() + != other.getNegative()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NEGATIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNegative()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateBlockedEmailDomainRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateBlockedEmailDomainRequest) + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest.class, io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + domain_ = ""; + negative_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest build() { + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest buildPartial() { + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest result = new io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.domain_ = domain_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.negative_ = negative_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest other) { + if (other == io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest.getDefaultInstance()) return this; + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getNegative() != false) { + setNegative(other.getNegative()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + negative_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object domain_ = ""; + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 1 [json_name = "domain"]; + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 1 [json_name = "domain"]; + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 1 [json_name = "domain"]; + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + domain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 1 [json_name = "domain"]; + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 1 [json_name = "domain"]; + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean negative_ ; + /** + * bool negative = 2 [json_name = "negative"]; + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + /** + * bool negative = 2 [json_name = "negative"]; + * @param value The negative to set. + * @return This builder for chaining. + */ + public Builder setNegative(boolean value) { + + negative_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool negative = 2 [json_name = "negative"]; + * @return This builder for chaining. + */ + public Builder clearNegative() { + bitField0_ = (bitField0_ & ~0x00000002); + negative_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateBlockedEmailDomainRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateBlockedEmailDomainRequest) + private static final io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest(); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBlockedEmailDomainRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateBlockedEmailDomainResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateBlockedEmailDomainResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + * @return Whether the blockedEmailDomain field is set. + */ + boolean hasBlockedEmailDomain(); + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + * @return The blockedEmailDomain. + */ + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain getBlockedEmailDomain(); + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + */ + io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder getBlockedEmailDomainOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateBlockedEmailDomainResponse} + */ + public static final class CreateBlockedEmailDomainResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateBlockedEmailDomainResponse) + CreateBlockedEmailDomainResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateBlockedEmailDomainResponse.class.getName()); + } + // Use CreateBlockedEmailDomainResponse.newBuilder() to construct. + private CreateBlockedEmailDomainResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateBlockedEmailDomainResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse.class, io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse.Builder.class); + } + + private int bitField0_; + public static final int BLOCKED_EMAIL_DOMAIN_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Installation.BlockedEmailDomain blockedEmailDomain_; + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + * @return Whether the blockedEmailDomain field is set. + */ + @java.lang.Override + public boolean hasBlockedEmailDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + * @return The blockedEmailDomain. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain getBlockedEmailDomain() { + return blockedEmailDomain_ == null ? io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.getDefaultInstance() : blockedEmailDomain_; + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder getBlockedEmailDomainOrBuilder() { + return blockedEmailDomain_ == null ? io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.getDefaultInstance() : blockedEmailDomain_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBlockedEmailDomain()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBlockedEmailDomain()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse other = (io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse) obj; + + if (hasBlockedEmailDomain() != other.hasBlockedEmailDomain()) return false; + if (hasBlockedEmailDomain()) { + if (!getBlockedEmailDomain() + .equals(other.getBlockedEmailDomain())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlockedEmailDomain()) { + hash = (37 * hash) + BLOCKED_EMAIL_DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getBlockedEmailDomain().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateBlockedEmailDomainResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateBlockedEmailDomainResponse) + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse.class, io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getBlockedEmailDomainFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + blockedEmailDomain_ = null; + if (blockedEmailDomainBuilder_ != null) { + blockedEmailDomainBuilder_.dispose(); + blockedEmailDomainBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse build() { + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse buildPartial() { + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse result = new io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.blockedEmailDomain_ = blockedEmailDomainBuilder_ == null + ? blockedEmailDomain_ + : blockedEmailDomainBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse other) { + if (other == io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse.getDefaultInstance()) return this; + if (other.hasBlockedEmailDomain()) { + mergeBlockedEmailDomain(other.getBlockedEmailDomain()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getBlockedEmailDomainFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Installation.BlockedEmailDomain blockedEmailDomain_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder, io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder> blockedEmailDomainBuilder_; + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + * @return Whether the blockedEmailDomain field is set. + */ + public boolean hasBlockedEmailDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + * @return The blockedEmailDomain. + */ + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain getBlockedEmailDomain() { + if (blockedEmailDomainBuilder_ == null) { + return blockedEmailDomain_ == null ? io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.getDefaultInstance() : blockedEmailDomain_; + } else { + return blockedEmailDomainBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + */ + public Builder setBlockedEmailDomain(io.gitpod.publicapi.v1.Installation.BlockedEmailDomain value) { + if (blockedEmailDomainBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blockedEmailDomain_ = value; + } else { + blockedEmailDomainBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + */ + public Builder setBlockedEmailDomain( + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder builderForValue) { + if (blockedEmailDomainBuilder_ == null) { + blockedEmailDomain_ = builderForValue.build(); + } else { + blockedEmailDomainBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + */ + public Builder mergeBlockedEmailDomain(io.gitpod.publicapi.v1.Installation.BlockedEmailDomain value) { + if (blockedEmailDomainBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + blockedEmailDomain_ != null && + blockedEmailDomain_ != io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.getDefaultInstance()) { + getBlockedEmailDomainBuilder().mergeFrom(value); + } else { + blockedEmailDomain_ = value; + } + } else { + blockedEmailDomainBuilder_.mergeFrom(value); + } + if (blockedEmailDomain_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + */ + public Builder clearBlockedEmailDomain() { + bitField0_ = (bitField0_ & ~0x00000001); + blockedEmailDomain_ = null; + if (blockedEmailDomainBuilder_ != null) { + blockedEmailDomainBuilder_.dispose(); + blockedEmailDomainBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder getBlockedEmailDomainBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBlockedEmailDomainFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + */ + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder getBlockedEmailDomainOrBuilder() { + if (blockedEmailDomainBuilder_ != null) { + return blockedEmailDomainBuilder_.getMessageOrBuilder(); + } else { + return blockedEmailDomain_ == null ? + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.getDefaultInstance() : blockedEmailDomain_; + } + } + /** + * .gitpod.v1.BlockedEmailDomain blocked_email_domain = 1 [json_name = "blockedEmailDomain"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder, io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder> + getBlockedEmailDomainFieldBuilder() { + if (blockedEmailDomainBuilder_ == null) { + blockedEmailDomainBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder, io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder>( + getBlockedEmailDomain(), + getParentForChildren(), + isClean()); + blockedEmailDomain_ = null; + } + return blockedEmailDomainBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateBlockedEmailDomainResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateBlockedEmailDomainResponse) + private static final io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse(); + } + + public static io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBlockedEmailDomainResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockedRepositoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.BlockedRepository) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the ID of the blocked repository
+     * 
+ * + * uint32 id = 1 [json_name = "id"]; + * @return The id. + */ + int getId(); + + /** + *
+     * url_regexp is the regular expression for the repository URL
+     * 
+ * + * string url_regexp = 2 [json_name = "urlRegexp"]; + * @return The urlRegexp. + */ + java.lang.String getUrlRegexp(); + /** + *
+     * url_regexp is the regular expression for the repository URL
+     * 
+ * + * string url_regexp = 2 [json_name = "urlRegexp"]; + * @return The bytes for urlRegexp. + */ + com.google.protobuf.ByteString + getUrlRegexpBytes(); + + /** + *
+     * block_user indicates if the user should be blocked from accessing the
+     * repository
+     * 
+ * + * bool block_user = 3 [json_name = "blockUser"]; + * @return The blockUser. + */ + boolean getBlockUser(); + + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + boolean hasCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + * @return The creationTime. + */ + com.google.protobuf.Timestamp getCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder(); + + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+     * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+     * 
+ * + * bool block_free_usage = 6 [json_name = "blockFreeUsage"]; + * @return The blockFreeUsage. + */ + boolean getBlockFreeUsage(); + } + /** + * Protobuf type {@code gitpod.v1.BlockedRepository} + */ + public static final class BlockedRepository extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.BlockedRepository) + BlockedRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + BlockedRepository.class.getName()); + } + // Use BlockedRepository.newBuilder() to construct. + private BlockedRepository(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private BlockedRepository() { + urlRegexp_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.BlockedRepository.class, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private int id_ = 0; + /** + *
+     * id is the ID of the blocked repository
+     * 
+ * + * uint32 id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + + public static final int URL_REGEXP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object urlRegexp_ = ""; + /** + *
+     * url_regexp is the regular expression for the repository URL
+     * 
+ * + * string url_regexp = 2 [json_name = "urlRegexp"]; + * @return The urlRegexp. + */ + @java.lang.Override + public java.lang.String getUrlRegexp() { + java.lang.Object ref = urlRegexp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlRegexp_ = s; + return s; + } + } + /** + *
+     * url_regexp is the regular expression for the repository URL
+     * 
+ * + * string url_regexp = 2 [json_name = "urlRegexp"]; + * @return The bytes for urlRegexp. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlRegexpBytes() { + java.lang.Object ref = urlRegexp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + urlRegexp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLOCK_USER_FIELD_NUMBER = 3; + private boolean blockUser_ = false; + /** + *
+     * block_user indicates if the user should be blocked from accessing the
+     * repository
+     * 
+ * + * bool block_user = 3 [json_name = "blockUser"]; + * @return The blockUser. + */ + @java.lang.Override + public boolean getBlockUser() { + return blockUser_; + } + + public static final int CREATION_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp creationTime_; + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + @java.lang.Override + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + * @return The creationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreationTime() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int BLOCK_FREE_USAGE_FIELD_NUMBER = 6; + private boolean blockFreeUsage_ = false; + /** + *
+     * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+     * 
+ * + * bool block_free_usage = 6 [json_name = "blockFreeUsage"]; + * @return The blockFreeUsage. + */ + @java.lang.Override + public boolean getBlockFreeUsage() { + return blockFreeUsage_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != 0) { + output.writeUInt32(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlRegexp_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, urlRegexp_); + } + if (blockUser_ != false) { + output.writeBool(3, blockUser_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (blockFreeUsage_ != false) { + output.writeBool(6, blockFreeUsage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlRegexp_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, urlRegexp_); + } + if (blockUser_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, blockUser_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); + } + if (blockFreeUsage_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, blockFreeUsage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.BlockedRepository)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.BlockedRepository other = (io.gitpod.publicapi.v1.Installation.BlockedRepository) obj; + + if (getId() + != other.getId()) return false; + if (!getUrlRegexp() + .equals(other.getUrlRegexp())) return false; + if (getBlockUser() + != other.getBlockUser()) return false; + if (hasCreationTime() != other.hasCreationTime()) return false; + if (hasCreationTime()) { + if (!getCreationTime() + .equals(other.getCreationTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (getBlockFreeUsage() + != other.getBlockFreeUsage()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId(); + hash = (37 * hash) + URL_REGEXP_FIELD_NUMBER; + hash = (53 * hash) + getUrlRegexp().hashCode(); + hash = (37 * hash) + BLOCK_USER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlockUser()); + if (hasCreationTime()) { + hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreationTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + BLOCK_FREE_USAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlockFreeUsage()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.BlockedRepository parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.BlockedRepository prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.BlockedRepository} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.BlockedRepository) + io.gitpod.publicapi.v1.Installation.BlockedRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.BlockedRepository.class, io.gitpod.publicapi.v1.Installation.BlockedRepository.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.BlockedRepository.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreationTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = 0; + urlRegexp_ = ""; + blockUser_ = false; + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + blockFreeUsage_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedRepository_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedRepository getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.BlockedRepository.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedRepository build() { + io.gitpod.publicapi.v1.Installation.BlockedRepository result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedRepository buildPartial() { + io.gitpod.publicapi.v1.Installation.BlockedRepository result = new io.gitpod.publicapi.v1.Installation.BlockedRepository(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.BlockedRepository result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.urlRegexp_ = urlRegexp_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blockUser_ = blockUser_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.creationTime_ = creationTimeBuilder_ == null + ? creationTime_ + : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.blockFreeUsage_ = blockFreeUsage_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.BlockedRepository) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.BlockedRepository)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.BlockedRepository other) { + if (other == io.gitpod.publicapi.v1.Installation.BlockedRepository.getDefaultInstance()) return this; + if (other.getId() != 0) { + setId(other.getId()); + } + if (!other.getUrlRegexp().isEmpty()) { + urlRegexp_ = other.urlRegexp_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getBlockUser() != false) { + setBlockUser(other.getBlockUser()); + } + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getBlockFreeUsage() != false) { + setBlockFreeUsage(other.getBlockFreeUsage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + id_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + urlRegexp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + blockUser_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getCreationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + blockFreeUsage_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int id_ ; + /** + *
+       * id is the ID of the blocked repository
+       * 
+ * + * uint32 id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + *
+       * id is the ID of the blocked repository
+       * 
+ * + * uint32 id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(int value) { + + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the ID of the blocked repository
+       * 
+ * + * uint32 id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0; + onChanged(); + return this; + } + + private java.lang.Object urlRegexp_ = ""; + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 2 [json_name = "urlRegexp"]; + * @return The urlRegexp. + */ + public java.lang.String getUrlRegexp() { + java.lang.Object ref = urlRegexp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlRegexp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 2 [json_name = "urlRegexp"]; + * @return The bytes for urlRegexp. + */ + public com.google.protobuf.ByteString + getUrlRegexpBytes() { + java.lang.Object ref = urlRegexp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + urlRegexp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 2 [json_name = "urlRegexp"]; + * @param value The urlRegexp to set. + * @return This builder for chaining. + */ + public Builder setUrlRegexp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + urlRegexp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 2 [json_name = "urlRegexp"]; + * @return This builder for chaining. + */ + public Builder clearUrlRegexp() { + urlRegexp_ = getDefaultInstance().getUrlRegexp(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * url_regexp is the regular expression for the repository URL
+       * 
+ * + * string url_regexp = 2 [json_name = "urlRegexp"]; + * @param value The bytes for urlRegexp to set. + * @return This builder for chaining. + */ + public Builder setUrlRegexpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + urlRegexp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean blockUser_ ; + /** + *
+       * block_user indicates if the user should be blocked from accessing the
+       * repository
+       * 
+ * + * bool block_user = 3 [json_name = "blockUser"]; + * @return The blockUser. + */ + @java.lang.Override + public boolean getBlockUser() { + return blockUser_; + } + /** + *
+       * block_user indicates if the user should be blocked from accessing the
+       * repository
+       * 
+ * + * bool block_user = 3 [json_name = "blockUser"]; + * @param value The blockUser to set. + * @return This builder for chaining. + */ + public Builder setBlockUser(boolean value) { + + blockUser_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * block_user indicates if the user should be blocked from accessing the
+       * repository
+       * 
+ * + * bool block_user = 3 [json_name = "blockUser"]; + * @return This builder for chaining. + */ + public Builder clearBlockUser() { + bitField0_ = (bitField0_ & ~0x00000004); + blockUser_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_; + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + * @return The creationTime. + */ + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + */ + public Builder setCreationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + creationTime_ != null && + creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x00000008); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + } + /** + * .google.protobuf.Timestamp creation_time = 4 [json_name = "creationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), + getParentForChildren(), + isClean()); + creationTime_ = null; + } + return creationTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + * .google.protobuf.Timestamp update_time = 5 [json_name = "updateTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private boolean blockFreeUsage_ ; + /** + *
+       * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+       * 
+ * + * bool block_free_usage = 6 [json_name = "blockFreeUsage"]; + * @return The blockFreeUsage. + */ + @java.lang.Override + public boolean getBlockFreeUsage() { + return blockFreeUsage_; + } + /** + *
+       * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+       * 
+ * + * bool block_free_usage = 6 [json_name = "blockFreeUsage"]; + * @param value The blockFreeUsage to set. + * @return This builder for chaining. + */ + public Builder setBlockFreeUsage(boolean value) { + + blockFreeUsage_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * block_free_usage indicates if a free tier user may not start a workspace on that repository URL
+       * 
+ * + * bool block_free_usage = 6 [json_name = "blockFreeUsage"]; + * @return This builder for chaining. + */ + public Builder clearBlockFreeUsage() { + bitField0_ = (bitField0_ & ~0x00000020); + blockFreeUsage_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.BlockedRepository) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.BlockedRepository) + private static final io.gitpod.publicapi.v1.Installation.BlockedRepository DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.BlockedRepository(); + } + + public static io.gitpod.publicapi.v1.Installation.BlockedRepository getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockedRepository parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedRepository getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockedEmailDomainOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.BlockedEmailDomain) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the ID of the blocked email domain
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is the ID of the blocked email domain
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * domain is the blocked email domain
+     * 
+ * + * string domain = 2 [json_name = "domain"]; + * @return The domain. + */ + java.lang.String getDomain(); + /** + *
+     * domain is the blocked email domain
+     * 
+ * + * string domain = 2 [json_name = "domain"]; + * @return The bytes for domain. + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * bool negative = 3 [json_name = "negative"]; + * @return The negative. + */ + boolean getNegative(); + } + /** + * Protobuf type {@code gitpod.v1.BlockedEmailDomain} + */ + public static final class BlockedEmailDomain extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.BlockedEmailDomain) + BlockedEmailDomainOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + BlockedEmailDomain.class.getName()); + } + // Use BlockedEmailDomain.newBuilder() to construct. + private BlockedEmailDomain(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private BlockedEmailDomain() { + id_ = ""; + domain_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedEmailDomain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedEmailDomain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.class, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is the ID of the blocked email domain
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is the ID of the blocked email domain
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + /** + *
+     * domain is the blocked email domain
+     * 
+ * + * string domain = 2 [json_name = "domain"]; + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * domain is the blocked email domain
+     * 
+ * + * string domain = 2 [json_name = "domain"]; + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATIVE_FIELD_NUMBER = 3; + private boolean negative_ = false; + /** + * bool negative = 3 [json_name = "negative"]; + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domain_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, domain_); + } + if (negative_ != false) { + output.writeBool(3, negative_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domain_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, domain_); + } + if (negative_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, negative_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Installation.BlockedEmailDomain)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain other = (io.gitpod.publicapi.v1.Installation.BlockedEmailDomain) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getNegative() + != other.getNegative()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NEGATIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNegative()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Installation.BlockedEmailDomain prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.BlockedEmailDomain} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.BlockedEmailDomain) + io.gitpod.publicapi.v1.Installation.BlockedEmailDomainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedEmailDomain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedEmailDomain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.class, io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + domain_ = ""; + negative_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Installation.internal_static_gitpod_v1_BlockedEmailDomain_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain build() { + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain buildPartial() { + io.gitpod.publicapi.v1.Installation.BlockedEmailDomain result = new io.gitpod.publicapi.v1.Installation.BlockedEmailDomain(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Installation.BlockedEmailDomain result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.domain_ = domain_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.negative_ = negative_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Installation.BlockedEmailDomain) { + return mergeFrom((io.gitpod.publicapi.v1.Installation.BlockedEmailDomain)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Installation.BlockedEmailDomain other) { + if (other == io.gitpod.publicapi.v1.Installation.BlockedEmailDomain.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getNegative() != false) { + setNegative(other.getNegative()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + negative_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is the ID of the blocked email domain
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is the ID of the blocked email domain
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is the ID of the blocked email domain
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the ID of the blocked email domain
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is the ID of the blocked email domain
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 2 [json_name = "domain"]; + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 2 [json_name = "domain"]; + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 2 [json_name = "domain"]; + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 2 [json_name = "domain"]; + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * domain is the blocked email domain
+       * 
+ * + * string domain = 2 [json_name = "domain"]; + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean negative_ ; + /** + * bool negative = 3 [json_name = "negative"]; + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + /** + * bool negative = 3 [json_name = "negative"]; + * @param value The negative to set. + * @return This builder for chaining. + */ + public Builder setNegative(boolean value) { + + negative_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * bool negative = 3 [json_name = "negative"]; + * @return This builder for chaining. + */ + public Builder clearNegative() { + bitField0_ = (bitField0_ & ~0x00000004); + negative_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.BlockedEmailDomain) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.BlockedEmailDomain) + private static final io.gitpod.publicapi.v1.Installation.BlockedEmailDomain DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Installation.BlockedEmailDomain(); + } + + public static io.gitpod.publicapi.v1.Installation.BlockedEmailDomain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockedEmailDomain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Installation.BlockedEmailDomain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetOnboardingStateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetOnboardingStateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetOnboardingStateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetOnboardingStateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_OnboardingState_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_OnboardingState_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListBlockedRepositoriesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListBlockedRepositoriesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListBlockedRepositoriesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListBlockedRepositoriesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateBlockedRepositoryRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateBlockedRepositoryRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateBlockedRepositoryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateBlockedRepositoryResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_BlockedRepository_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_BlockedRepository_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_BlockedEmailDomain_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_BlockedEmailDomain_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034gitpod/v1/installation.proto\022\tgitpod.v" + + "1\032\032gitpod/v1/pagination.proto\032\027gitpod/v1" + + "/sorting.proto\032\037google/protobuf/timestam" + + "p.proto\"\033\n\031GetOnboardingStateRequest\"c\n\032" + + "GetOnboardingStateResponse\022E\n\020onboarding" + + "_state\030\001 \001(\0132\032.gitpod.v1.OnboardingState" + + "R\017onboardingState\"/\n\017OnboardingState\022\034\n\t" + + "completed\030\001 \001(\010R\tcompleted\"-\n+GetInstall" + + "ationWorkspaceDefaultImageRequest\"f\n,Get" + + "InstallationWorkspaceDefaultImageRespons" + + "e\0226\n\027default_workspace_image\030\001 \001(\tR\025defa" + + "ultWorkspaceImage\"\244\001\n\036ListBlockedReposit" + + "oriesRequest\022<\n\npagination\030\001 \001(\0132\034.gitpo" + + "d.v1.PaginationRequestR\npagination\022#\n\004so" + + "rt\030\002 \003(\0132\017.gitpod.v1.SortR\004sort\022\037\n\013searc" + + "h_term\030\003 \001(\tR\nsearchTerm\"\261\001\n\037ListBlocked" + + "RepositoriesResponse\022=\n\npagination\030\001 \001(\013" + + "2\035.gitpod.v1.PaginationResponseR\npaginat" + + "ion\022O\n\024blocked_repositories\030\002 \003(\0132\034.gitp" + + "od.v1.BlockedRepositoryR\023blockedReposito" + + "ries\"\210\001\n\036CreateBlockedRepositoryRequest\022" + + "\035\n\nurl_regexp\030\001 \001(\tR\turlRegexp\022\035\n\nblock_" + + "user\030\002 \001(\010R\tblockUser\022(\n\020block_free_usag" + + "e\030\003 \001(\010R\016blockFreeUsage\"n\n\037CreateBlocked" + + "RepositoryResponse\022K\n\022blocked_repository" + + "\030\001 \001(\0132\034.gitpod.v1.BlockedRepositoryR\021bl" + + "ockedRepository\"T\n\036DeleteBlockedReposito" + + "ryRequest\0222\n\025blocked_repository_id\030\001 \001(\r" + + "R\023blockedRepositoryId\"!\n\037DeleteBlockedRe" + + "positoryResponse\"^\n\036ListBlockedEmailDoma" + + "insRequest\022<\n\npagination\030\001 \001(\0132\034.gitpod." + + "v1.PaginationRequestR\npagination\"\263\001\n\037Lis" + + "tBlockedEmailDomainsResponse\022=\n\npaginati" + + "on\030\001 \001(\0132\035.gitpod.v1.PaginationResponseR" + + "\npagination\022Q\n\025blocked_email_domains\030\002 \003" + + "(\0132\035.gitpod.v1.BlockedEmailDomainR\023block" + + "edEmailDomains\"U\n\037CreateBlockedEmailDoma" + + "inRequest\022\026\n\006domain\030\001 \001(\tR\006domain\022\032\n\010neg" + + "ative\030\002 \001(\010R\010negative\"s\n CreateBlockedEm" + + "ailDomainResponse\022O\n\024blocked_email_domai" + + "n\030\001 \001(\0132\035.gitpod.v1.BlockedEmailDomainR\022" + + "blockedEmailDomain\"\211\002\n\021BlockedRepository" + + "\022\016\n\002id\030\001 \001(\rR\002id\022\035\n\nurl_regexp\030\002 \001(\tR\tur" + + "lRegexp\022\035\n\nblock_user\030\003 \001(\010R\tblockUser\022?" + + "\n\rcreation_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampR\014creationTime\022;\n\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampR\nupdate" + + "Time\022(\n\020block_free_usage\030\006 \001(\010R\016blockFre" + + "eUsage\"X\n\022BlockedEmailDomain\022\016\n\002id\030\001 \001(\t" + + "R\002id\022\026\n\006domain\030\002 \001(\tR\006domain\022\032\n\010negative" + + "\030\003 \001(\010R\010negative2\335\006\n\023InstallationService" + + "\022\231\001\n$GetInstallationWorkspaceDefaultImag" + + "e\0226.gitpod.v1.GetInstallationWorkspaceDe" + + "faultImageRequest\0327.gitpod.v1.GetInstall" + + "ationWorkspaceDefaultImageResponse\"\000\022r\n\027" + + "ListBlockedRepositories\022).gitpod.v1.List" + + "BlockedRepositoriesRequest\032*.gitpod.v1.L" + + "istBlockedRepositoriesResponse\"\000\022r\n\027Crea" + + "teBlockedRepository\022).gitpod.v1.CreateBl" + + "ockedRepositoryRequest\032*.gitpod.v1.Creat" + + "eBlockedRepositoryResponse\"\000\022r\n\027DeleteBl" + + "ockedRepository\022).gitpod.v1.DeleteBlocke" + + "dRepositoryRequest\032*.gitpod.v1.DeleteBlo" + + "ckedRepositoryResponse\"\000\022r\n\027ListBlockedE" + + "mailDomains\022).gitpod.v1.ListBlockedEmail" + + "DomainsRequest\032*.gitpod.v1.ListBlockedEm" + + "ailDomainsResponse\"\000\022u\n\030CreateBlockedEma" + + "ilDomain\022*.gitpod.v1.CreateBlockedEmailD" + + "omainRequest\032+.gitpod.v1.CreateBlockedEm" + + "ailDomainResponse\"\000\022c\n\022GetOnboardingStat" + + "e\022$.gitpod.v1.GetOnboardingStateRequest\032" + + "%.gitpod.v1.GetOnboardingStateResponse\"\000" + + "BQ\n\026io.gitpod.publicapi.v1Z7github.com/g" + + "itpod-io/gitpod/components/public-api/go" + + "/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + io.gitpod.publicapi.v1.Sorting.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_v1_GetOnboardingStateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_GetOnboardingStateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetOnboardingStateRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_GetOnboardingStateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_GetOnboardingStateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetOnboardingStateResponse_descriptor, + new java.lang.String[] { "OnboardingState", }); + internal_static_gitpod_v1_OnboardingState_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_OnboardingState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_OnboardingState_descriptor, + new java.lang.String[] { "Completed", }); + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetInstallationWorkspaceDefaultImageResponse_descriptor, + new java.lang.String[] { "DefaultWorkspaceImage", }); + internal_static_gitpod_v1_ListBlockedRepositoriesRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_ListBlockedRepositoriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListBlockedRepositoriesRequest_descriptor, + new java.lang.String[] { "Pagination", "Sort", "SearchTerm", }); + internal_static_gitpod_v1_ListBlockedRepositoriesResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_ListBlockedRepositoriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListBlockedRepositoriesResponse_descriptor, + new java.lang.String[] { "Pagination", "BlockedRepositories", }); + internal_static_gitpod_v1_CreateBlockedRepositoryRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_CreateBlockedRepositoryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateBlockedRepositoryRequest_descriptor, + new java.lang.String[] { "UrlRegexp", "BlockUser", "BlockFreeUsage", }); + internal_static_gitpod_v1_CreateBlockedRepositoryResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_CreateBlockedRepositoryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateBlockedRepositoryResponse_descriptor, + new java.lang.String[] { "BlockedRepository", }); + internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteBlockedRepositoryRequest_descriptor, + new java.lang.String[] { "BlockedRepositoryId", }); + internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteBlockedRepositoryResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListBlockedEmailDomainsRequest_descriptor, + new java.lang.String[] { "Pagination", }); + internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListBlockedEmailDomainsResponse_descriptor, + new java.lang.String[] { "Pagination", "BlockedEmailDomains", }); + internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateBlockedEmailDomainRequest_descriptor, + new java.lang.String[] { "Domain", "Negative", }); + internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateBlockedEmailDomainResponse_descriptor, + new java.lang.String[] { "BlockedEmailDomain", }); + internal_static_gitpod_v1_BlockedRepository_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_v1_BlockedRepository_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_BlockedRepository_descriptor, + new java.lang.String[] { "Id", "UrlRegexp", "BlockUser", "CreationTime", "UpdateTime", "BlockFreeUsage", }); + internal_static_gitpod_v1_BlockedEmailDomain_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_gitpod_v1_BlockedEmailDomain_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_BlockedEmailDomain_descriptor, + new java.lang.String[] { "Id", "Domain", "Negative", }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + io.gitpod.publicapi.v1.Sorting.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/InstallationServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/InstallationServiceClient.kt new file mode 100644 index 00000000000000..811e95ab99849e --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/InstallationServiceClient.kt @@ -0,0 +1,140 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/installation.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class InstallationServiceClient( + private val client: ProtocolClientInterface, +) : InstallationServiceClientInterface { + /** + * GetInstallationWorkspaceDefaultImage returns the default image for current + * Gitpod Installation. + */ + override suspend + fun getInstallationWorkspaceDefaultImage(request: Installation.GetInstallationWorkspaceDefaultImageRequest, + headers: Headers): ResponseMessage + = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.InstallationService/GetInstallationWorkspaceDefaultImage", + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageRequest::class, + io.gitpod.publicapi.v1.Installation.GetInstallationWorkspaceDefaultImageResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListBlockedRepositories lists blocked repositories. + */ + override suspend fun listBlockedRepositories(request: Installation.ListBlockedRepositoriesRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.InstallationService/ListBlockedRepositories", + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesRequest::class, + io.gitpod.publicapi.v1.Installation.ListBlockedRepositoriesResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * CreateBlockedRepository creates a new blocked repository. + */ + override suspend fun createBlockedRepository(request: Installation.CreateBlockedRepositoryRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.InstallationService/CreateBlockedRepository", + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryRequest::class, + io.gitpod.publicapi.v1.Installation.CreateBlockedRepositoryResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteBlockedRepository deletes a blocked repository. + */ + override suspend fun deleteBlockedRepository(request: Installation.DeleteBlockedRepositoryRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.InstallationService/DeleteBlockedRepository", + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryRequest::class, + io.gitpod.publicapi.v1.Installation.DeleteBlockedRepositoryResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListBlockedEmailDomains lists blocked email domains. + */ + override suspend fun listBlockedEmailDomains(request: Installation.ListBlockedEmailDomainsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.InstallationService/ListBlockedEmailDomains", + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsRequest::class, + io.gitpod.publicapi.v1.Installation.ListBlockedEmailDomainsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * CreateBlockedEmailDomain creates a new blocked email domain. + */ + override suspend + fun createBlockedEmailDomain(request: Installation.CreateBlockedEmailDomainRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.InstallationService/CreateBlockedEmailDomain", + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainRequest::class, + io.gitpod.publicapi.v1.Installation.CreateBlockedEmailDomainResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetOnboardingState returns the onboarding state of the installation. + */ + override suspend fun getOnboardingState(request: Installation.GetOnboardingStateRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.InstallationService/GetOnboardingState", + io.gitpod.publicapi.v1.Installation.GetOnboardingStateRequest::class, + io.gitpod.publicapi.v1.Installation.GetOnboardingStateResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/InstallationServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/InstallationServiceClientInterface.kt new file mode 100644 index 00000000000000..3b8c5544e40c89 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/InstallationServiceClientInterface.kt @@ -0,0 +1,59 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/installation.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface InstallationServiceClientInterface { + /** + * GetInstallationWorkspaceDefaultImage returns the default image for current + * Gitpod Installation. + */ + public suspend + fun getInstallationWorkspaceDefaultImage(request: Installation.GetInstallationWorkspaceDefaultImageRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * ListBlockedRepositories lists blocked repositories. + */ + public suspend fun listBlockedRepositories(request: Installation.ListBlockedRepositoriesRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * CreateBlockedRepository creates a new blocked repository. + */ + public suspend fun createBlockedRepository(request: Installation.CreateBlockedRepositoryRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * DeleteBlockedRepository deletes a blocked repository. + */ + public suspend fun deleteBlockedRepository(request: Installation.DeleteBlockedRepositoryRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * ListBlockedEmailDomains lists blocked email domains. + */ + public suspend fun listBlockedEmailDomains(request: Installation.ListBlockedEmailDomainsRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * CreateBlockedEmailDomain creates a new blocked email domain. + */ + public suspend fun createBlockedEmailDomain(request: Installation.CreateBlockedEmailDomainRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * GetOnboardingState returns the onboarding state of the installation. + */ + public suspend fun getOnboardingState(request: Installation.GetOnboardingStateRequest, + headers: Headers = emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationOuterClass.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationOuterClass.java new file mode 100644 index 00000000000000..60986912aaa9a6 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationOuterClass.java @@ -0,0 +1,24865 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/organization.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class OrganizationOuterClass { + private OrganizationOuterClass() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OrganizationOuterClass.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code gitpod.v1.OrganizationRole} + */ + public enum OrganizationRole + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ORGANIZATION_ROLE_UNSPECIFIED = 0; + */ + ORGANIZATION_ROLE_UNSPECIFIED(0), + /** + * ORGANIZATION_ROLE_OWNER = 1; + */ + ORGANIZATION_ROLE_OWNER(1), + /** + * ORGANIZATION_ROLE_MEMBER = 2; + */ + ORGANIZATION_ROLE_MEMBER(2), + /** + * ORGANIZATION_ROLE_COLLABORATOR = 3; + */ + ORGANIZATION_ROLE_COLLABORATOR(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OrganizationRole.class.getName()); + } + /** + * ORGANIZATION_ROLE_UNSPECIFIED = 0; + */ + public static final int ORGANIZATION_ROLE_UNSPECIFIED_VALUE = 0; + /** + * ORGANIZATION_ROLE_OWNER = 1; + */ + public static final int ORGANIZATION_ROLE_OWNER_VALUE = 1; + /** + * ORGANIZATION_ROLE_MEMBER = 2; + */ + public static final int ORGANIZATION_ROLE_MEMBER_VALUE = 2; + /** + * ORGANIZATION_ROLE_COLLABORATOR = 3; + */ + public static final int ORGANIZATION_ROLE_COLLABORATOR_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OrganizationRole valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static OrganizationRole forNumber(int value) { + switch (value) { + case 0: return ORGANIZATION_ROLE_UNSPECIFIED; + case 1: return ORGANIZATION_ROLE_OWNER; + case 2: return ORGANIZATION_ROLE_MEMBER; + case 3: return ORGANIZATION_ROLE_COLLABORATOR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OrganizationRole> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OrganizationRole findValueByNumber(int number) { + return OrganizationRole.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final OrganizationRole[] VALUES = values(); + + public static OrganizationRole valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OrganizationRole(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.OrganizationRole) + } + + public interface OrganizationOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.Organization) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + boolean hasCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return The creationTime. + */ + com.google.protobuf.Timestamp getCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder(); + + /** + * string slug = 4 [json_name = "slug"]; + * @return The slug. + */ + java.lang.String getSlug(); + /** + * string slug = 4 [json_name = "slug"]; + * @return The bytes for slug. + */ + com.google.protobuf.ByteString + getSlugBytes(); + } + /** + * Protobuf type {@code gitpod.v1.Organization} + */ + public static final class Organization extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.Organization) + OrganizationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Organization.class.getName()); + } + // Use Organization.newBuilder() to construct. + private Organization(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Organization() { + id_ = ""; + name_ = ""; + slug_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_Organization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_Organization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.class, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATION_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp creationTime_; + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + @java.lang.Override + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return The creationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreationTime() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + + public static final int SLUG_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object slug_ = ""; + /** + * string slug = 4 [json_name = "slug"]; + * @return The slug. + */ + @java.lang.Override + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + slug_ = s; + return s; + } + } + /** + * string slug = 4 [json_name = "slug"]; + * @return The bytes for slug. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreationTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(slug_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, slug_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreationTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(slug_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, slug_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.Organization)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization other = (io.gitpod.publicapi.v1.OrganizationOuterClass.Organization) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (hasCreationTime() != other.hasCreationTime()) return false; + if (hasCreationTime()) { + if (!getCreationTime() + .equals(other.getCreationTime())) return false; + } + if (!getSlug() + .equals(other.getSlug())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreationTime()) { + hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreationTime().hashCode(); + } + hash = (37 * hash) + SLUG_FIELD_NUMBER; + hash = (53 * hash) + getSlug().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.Organization} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.Organization) + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_Organization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_Organization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.class, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreationTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + name_ = ""; + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + slug_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_Organization_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization result = new io.gitpod.publicapi.v1.OrganizationOuterClass.Organization(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.creationTime_ = creationTimeBuilder_ == null + ? creationTime_ + : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.slug_ = slug_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.Organization) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.Organization)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); + } + if (!other.getSlug().isEmpty()) { + slug_ = other.slug_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCreationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + slug_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_; + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return The creationTime. + */ + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder setCreationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + creationTime_ != null && + creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x00000004); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), + getParentForChildren(), + isClean()); + creationTime_ = null; + } + return creationTimeBuilder_; + } + + private java.lang.Object slug_ = ""; + /** + * string slug = 4 [json_name = "slug"]; + * @return The slug. + */ + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + slug_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string slug = 4 [json_name = "slug"]; + * @return The bytes for slug. + */ + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string slug = 4 [json_name = "slug"]; + * @param value The slug to set. + * @return This builder for chaining. + */ + public Builder setSlug( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + slug_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string slug = 4 [json_name = "slug"]; + * @return This builder for chaining. + */ + public Builder clearSlug() { + slug_ = getDefaultInstance().getSlug(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string slug = 4 [json_name = "slug"]; + * @param value The bytes for slug to set. + * @return This builder for chaining. + */ + public Builder setSlugBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + slug_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.Organization) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.Organization) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.Organization DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.Organization(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Organization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OrganizationMemberOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.OrganizationMember) + com.google.protobuf.MessageOrBuilder { + + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * .gitpod.v1.OrganizationRole role = 2 [json_name = "role"]; + * @return The enum numeric value on the wire for role. + */ + int getRoleValue(); + /** + * .gitpod.v1.OrganizationRole role = 2 [json_name = "role"]; + * @return The role. + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole getRole(); + + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return Whether the memberSince field is set. + */ + boolean hasMemberSince(); + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return The memberSince. + */ + com.google.protobuf.Timestamp getMemberSince(); + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + com.google.protobuf.TimestampOrBuilder getMemberSinceOrBuilder(); + + /** + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + java.lang.String getAvatarUrl(); + /** + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + com.google.protobuf.ByteString + getAvatarUrlBytes(); + + /** + * string full_name = 5 [json_name = "fullName"]; + * @return The fullName. + */ + java.lang.String getFullName(); + /** + * string full_name = 5 [json_name = "fullName"]; + * @return The bytes for fullName. + */ + com.google.protobuf.ByteString + getFullNameBytes(); + + /** + * string email = 6 [json_name = "email"]; + * @return The email. + */ + java.lang.String getEmail(); + /** + * string email = 6 [json_name = "email"]; + * @return The bytes for email. + */ + com.google.protobuf.ByteString + getEmailBytes(); + + /** + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @return The ownedByOrganization. + */ + boolean getOwnedByOrganization(); + } + /** + * Protobuf type {@code gitpod.v1.OrganizationMember} + */ + public static final class OrganizationMember extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.OrganizationMember) + OrganizationMemberOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OrganizationMember.class.getName()); + } + // Use OrganizationMember.newBuilder() to construct. + private OrganizationMember(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private OrganizationMember() { + userId_ = ""; + role_ = 0; + avatarUrl_ = ""; + fullName_ = ""; + email_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.class, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder.class); + } + + private int bitField0_; + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLE_FIELD_NUMBER = 2; + private int role_ = 0; + /** + * .gitpod.v1.OrganizationRole role = 2 [json_name = "role"]; + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override public int getRoleValue() { + return role_; + } + /** + * .gitpod.v1.OrganizationRole role = 2 [json_name = "role"]; + * @return The role. + */ + @java.lang.Override public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole getRole() { + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole result = io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.forNumber(role_); + return result == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.UNRECOGNIZED : result; + } + + public static final int MEMBER_SINCE_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp memberSince_; + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return Whether the memberSince field is set. + */ + @java.lang.Override + public boolean hasMemberSince() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return The memberSince. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMemberSince() { + return memberSince_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : memberSince_; + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMemberSinceOrBuilder() { + return memberSince_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : memberSince_; + } + + public static final int AVATAR_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object avatarUrl_ = ""; + /** + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + @java.lang.Override + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } + } + /** + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULL_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object fullName_ = ""; + /** + * string full_name = 5 [json_name = "fullName"]; + * @return The fullName. + */ + @java.lang.Override + public java.lang.String getFullName() { + java.lang.Object ref = fullName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullName_ = s; + return s; + } + } + /** + * string full_name = 5 [json_name = "fullName"]; + * @return The bytes for fullName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFullNameBytes() { + java.lang.Object ref = fullName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + /** + * string email = 6 [json_name = "email"]; + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } + } + /** + * string email = 6 [json_name = "email"]; + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNED_BY_ORGANIZATION_FIELD_NUMBER = 7; + private boolean ownedByOrganization_ = false; + /** + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @return The ownedByOrganization. + */ + @java.lang.Override + public boolean getOwnedByOrganization() { + return ownedByOrganization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + if (role_ != io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.ORGANIZATION_ROLE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, role_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMemberSince()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, avatarUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, fullName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, email_); + } + if (ownedByOrganization_ != false) { + output.writeBool(7, ownedByOrganization_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + if (role_ != io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.ORGANIZATION_ROLE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, role_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMemberSince()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, avatarUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, fullName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(email_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, email_); + } + if (ownedByOrganization_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, ownedByOrganization_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember other = (io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (role_ != other.role_) return false; + if (hasMemberSince() != other.hasMemberSince()) return false; + if (hasMemberSince()) { + if (!getMemberSince() + .equals(other.getMemberSince())) return false; + } + if (!getAvatarUrl() + .equals(other.getAvatarUrl())) return false; + if (!getFullName() + .equals(other.getFullName())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (getOwnedByOrganization() + != other.getOwnedByOrganization()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + if (hasMemberSince()) { + hash = (37 * hash) + MEMBER_SINCE_FIELD_NUMBER; + hash = (53 * hash) + getMemberSince().hashCode(); + } + hash = (37 * hash) + AVATAR_URL_FIELD_NUMBER; + hash = (53 * hash) + getAvatarUrl().hashCode(); + hash = (37 * hash) + FULL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFullName().hashCode(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + OWNED_BY_ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOwnedByOrganization()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.OrganizationMember} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.OrganizationMember) + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.class, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getMemberSinceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + role_ = 0; + memberSince_ = null; + if (memberSinceBuilder_ != null) { + memberSinceBuilder_.dispose(); + memberSinceBuilder_ = null; + } + avatarUrl_ = ""; + fullName_ = ""; + email_ = ""; + ownedByOrganization_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationMember_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember result = new io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.role_ = role_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.memberSince_ = memberSinceBuilder_ == null + ? memberSince_ + : memberSinceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.avatarUrl_ = avatarUrl_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fullName_ = fullName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.email_ = email_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ownedByOrganization_ = ownedByOrganization_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + if (other.hasMemberSince()) { + mergeMemberSince(other.getMemberSince()); + } + if (!other.getAvatarUrl().isEmpty()) { + avatarUrl_ = other.avatarUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFullName().isEmpty()) { + fullName_ = other.fullName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getOwnedByOrganization() != false) { + setOwnedByOrganization(other.getOwnedByOrganization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + role_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getMemberSinceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + avatarUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + fullName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + ownedByOrganization_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int role_ = 0; + /** + * .gitpod.v1.OrganizationRole role = 2 [json_name = "role"]; + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override public int getRoleValue() { + return role_; + } + /** + * .gitpod.v1.OrganizationRole role = 2 [json_name = "role"]; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. + */ + public Builder setRoleValue(int value) { + role_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.OrganizationRole role = 2 [json_name = "role"]; + * @return The role. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole getRole() { + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole result = io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.forNumber(role_); + return result == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.OrganizationRole role = 2 [json_name = "role"]; + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + role_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.OrganizationRole role = 2 [json_name = "role"]; + * @return This builder for chaining. + */ + public Builder clearRole() { + bitField0_ = (bitField0_ & ~0x00000002); + role_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp memberSince_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> memberSinceBuilder_; + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return Whether the memberSince field is set. + */ + public boolean hasMemberSince() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + * @return The memberSince. + */ + public com.google.protobuf.Timestamp getMemberSince() { + if (memberSinceBuilder_ == null) { + return memberSince_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : memberSince_; + } else { + return memberSinceBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public Builder setMemberSince(com.google.protobuf.Timestamp value) { + if (memberSinceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + memberSince_ = value; + } else { + memberSinceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public Builder setMemberSince( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (memberSinceBuilder_ == null) { + memberSince_ = builderForValue.build(); + } else { + memberSinceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public Builder mergeMemberSince(com.google.protobuf.Timestamp value) { + if (memberSinceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + memberSince_ != null && + memberSince_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMemberSinceBuilder().mergeFrom(value); + } else { + memberSince_ = value; + } + } else { + memberSinceBuilder_.mergeFrom(value); + } + if (memberSince_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public Builder clearMemberSince() { + bitField0_ = (bitField0_ & ~0x00000004); + memberSince_ = null; + if (memberSinceBuilder_ != null) { + memberSinceBuilder_.dispose(); + memberSinceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public com.google.protobuf.Timestamp.Builder getMemberSinceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMemberSinceFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + public com.google.protobuf.TimestampOrBuilder getMemberSinceOrBuilder() { + if (memberSinceBuilder_ != null) { + return memberSinceBuilder_.getMessageOrBuilder(); + } else { + return memberSince_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : memberSince_; + } + } + /** + * .google.protobuf.Timestamp member_since = 3 [json_name = "memberSince"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getMemberSinceFieldBuilder() { + if (memberSinceBuilder_ == null) { + memberSinceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getMemberSince(), + getParentForChildren(), + isClean()); + memberSince_ = null; + } + return memberSinceBuilder_; + } + + private java.lang.Object avatarUrl_ = ""; + /** + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @param value The avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + avatarUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return This builder for chaining. + */ + public Builder clearAvatarUrl() { + avatarUrl_ = getDefaultInstance().getAvatarUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @param value The bytes for avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + avatarUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object fullName_ = ""; + /** + * string full_name = 5 [json_name = "fullName"]; + * @return The fullName. + */ + public java.lang.String getFullName() { + java.lang.Object ref = fullName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string full_name = 5 [json_name = "fullName"]; + * @return The bytes for fullName. + */ + public com.google.protobuf.ByteString + getFullNameBytes() { + java.lang.Object ref = fullName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string full_name = 5 [json_name = "fullName"]; + * @param value The fullName to set. + * @return This builder for chaining. + */ + public Builder setFullName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fullName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string full_name = 5 [json_name = "fullName"]; + * @return This builder for chaining. + */ + public Builder clearFullName() { + fullName_ = getDefaultInstance().getFullName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string full_name = 5 [json_name = "fullName"]; + * @param value The bytes for fullName to set. + * @return This builder for chaining. + */ + public Builder setFullNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fullName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + /** + * string email = 6 [json_name = "email"]; + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string email = 6 [json_name = "email"]; + * @return The bytes for email. + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string email = 6 [json_name = "email"]; + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + email_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string email = 6 [json_name = "email"]; + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string email = 6 [json_name = "email"]; + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + email_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean ownedByOrganization_ ; + /** + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @return The ownedByOrganization. + */ + @java.lang.Override + public boolean getOwnedByOrganization() { + return ownedByOrganization_; + } + /** + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @param value The ownedByOrganization to set. + * @return This builder for chaining. + */ + public Builder setOwnedByOrganization(boolean value) { + + ownedByOrganization_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * bool owned_by_organization = 7 [json_name = "ownedByOrganization"]; + * @return This builder for chaining. + */ + public Builder clearOwnedByOrganization() { + bitField0_ = (bitField0_ & ~0x00000040); + ownedByOrganization_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.OrganizationMember) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.OrganizationMember) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationMember parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OrganizationSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.OrganizationSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * bool workspace_sharing_disabled = 1 [json_name = "workspaceSharingDisabled"]; + * @return The workspaceSharingDisabled. + */ + boolean getWorkspaceSharingDisabled(); + + /** + * string default_workspace_image = 2 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + java.lang.String getDefaultWorkspaceImage(); + /** + * string default_workspace_image = 2 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes(); + + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @return A list containing the allowedWorkspaceClasses. + */ + java.util.List + getAllowedWorkspaceClassesList(); + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @return The count of allowedWorkspaceClasses. + */ + int getAllowedWorkspaceClassesCount(); + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The allowedWorkspaceClasses at the given index. + */ + java.lang.String getAllowedWorkspaceClasses(int index); + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the allowedWorkspaceClasses at the given index. + */ + com.google.protobuf.ByteString + getAllowedWorkspaceClassesBytes(int index); + + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + java.util.List + getRestrictedEditorNamesList(); + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + int getRestrictedEditorNamesCount(); + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + java.lang.String getRestrictedEditorNames(int index); + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index); + + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + int getPinnedEditorVersionsCount(); + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + boolean containsPinnedEditorVersions( + java.lang.String key); + /** + * Use {@link #getPinnedEditorVersionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPinnedEditorVersions(); + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + java.util.Map + getPinnedEditorVersionsMap(); + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + /* nullable */ +java.lang.String getPinnedEditorVersionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + java.lang.String getPinnedEditorVersionsOrThrow( + java.lang.String key); + + /** + * string default_role = 6 [json_name = "defaultRole"]; + * @return The defaultRole. + */ + java.lang.String getDefaultRole(); + /** + * string default_role = 6 [json_name = "defaultRole"]; + * @return The bytes for defaultRole. + */ + com.google.protobuf.ByteString + getDefaultRoleBytes(); + } + /** + * Protobuf type {@code gitpod.v1.OrganizationSettings} + */ + public static final class OrganizationSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.OrganizationSettings) + OrganizationSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + OrganizationSettings.class.getName()); + } + // Use OrganizationSettings.newBuilder() to construct. + private OrganizationSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private OrganizationSettings() { + defaultWorkspaceImage_ = ""; + allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + defaultRole_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetPinnedEditorVersions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.class, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder.class); + } + + public static final int WORKSPACE_SHARING_DISABLED_FIELD_NUMBER = 1; + private boolean workspaceSharingDisabled_ = false; + /** + * bool workspace_sharing_disabled = 1 [json_name = "workspaceSharingDisabled"]; + * @return The workspaceSharingDisabled. + */ + @java.lang.Override + public boolean getWorkspaceSharingDisabled() { + return workspaceSharingDisabled_; + } + + public static final int DEFAULT_WORKSPACE_IMAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object defaultWorkspaceImage_ = ""; + /** + * string default_workspace_image = 2 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + @java.lang.Override + public java.lang.String getDefaultWorkspaceImage() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultWorkspaceImage_ = s; + return s; + } + } + /** + * string default_workspace_image = 2 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultWorkspaceImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_WORKSPACE_CLASSES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @return A list containing the allowedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getAllowedWorkspaceClassesList() { + return allowedWorkspaceClasses_; + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @return The count of allowedWorkspaceClasses. + */ + public int getAllowedWorkspaceClassesCount() { + return allowedWorkspaceClasses_.size(); + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The allowedWorkspaceClasses at the given index. + */ + public java.lang.String getAllowedWorkspaceClasses(int index) { + return allowedWorkspaceClasses_.get(index); + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the allowedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getAllowedWorkspaceClassesBytes(int index) { + return allowedWorkspaceClasses_.getByteString(index); + } + + public static final int RESTRICTED_EDITOR_NAMES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + return restrictedEditorNames_; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + + public static final int PINNED_EDITOR_VERSIONS_FIELD_NUMBER = 5; + private static final class PinnedEditorVersionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationSettings_PinnedEditorVersionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> pinnedEditorVersions_; + private com.google.protobuf.MapField + internalGetPinnedEditorVersions() { + if (pinnedEditorVersions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PinnedEditorVersionsDefaultEntryHolder.defaultEntry); + } + return pinnedEditorVersions_; + } + public int getPinnedEditorVersionsCount() { + return internalGetPinnedEditorVersions().getMap().size(); + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public boolean containsPinnedEditorVersions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetPinnedEditorVersions().getMap().containsKey(key); + } + /** + * Use {@link #getPinnedEditorVersionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getPinnedEditorVersions() { + return getPinnedEditorVersionsMap(); + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public java.util.Map getPinnedEditorVersionsMap() { + return internalGetPinnedEditorVersions().getMap(); + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getPinnedEditorVersionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPinnedEditorVersions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public java.lang.String getPinnedEditorVersionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPinnedEditorVersions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DEFAULT_ROLE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object defaultRole_ = ""; + /** + * string default_role = 6 [json_name = "defaultRole"]; + * @return The defaultRole. + */ + @java.lang.Override + public java.lang.String getDefaultRole() { + java.lang.Object ref = defaultRole_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultRole_ = s; + return s; + } + } + /** + * string default_role = 6 [json_name = "defaultRole"]; + * @return The bytes for defaultRole. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDefaultRoleBytes() { + java.lang.Object ref = defaultRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workspaceSharingDisabled_ != false) { + output.writeBool(1, workspaceSharingDisabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultWorkspaceImage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultWorkspaceImage_); + } + for (int i = 0; i < allowedWorkspaceClasses_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, allowedWorkspaceClasses_.getRaw(i)); + } + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, restrictedEditorNames_.getRaw(i)); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetPinnedEditorVersions(), + PinnedEditorVersionsDefaultEntryHolder.defaultEntry, + 5); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultRole_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, defaultRole_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workspaceSharingDisabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, workspaceSharingDisabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultWorkspaceImage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultWorkspaceImage_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedWorkspaceClasses_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedWorkspaceClasses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedWorkspaceClassesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedEditorNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedEditorNamesList().size(); + } + for (java.util.Map.Entry entry + : internalGetPinnedEditorVersions().getMap().entrySet()) { + com.google.protobuf.MapEntry + pinnedEditorVersions__ = PinnedEditorVersionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, pinnedEditorVersions__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultRole_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, defaultRole_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings other = (io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings) obj; + + if (getWorkspaceSharingDisabled() + != other.getWorkspaceSharingDisabled()) return false; + if (!getDefaultWorkspaceImage() + .equals(other.getDefaultWorkspaceImage())) return false; + if (!getAllowedWorkspaceClassesList() + .equals(other.getAllowedWorkspaceClassesList())) return false; + if (!getRestrictedEditorNamesList() + .equals(other.getRestrictedEditorNamesList())) return false; + if (!internalGetPinnedEditorVersions().equals( + other.internalGetPinnedEditorVersions())) return false; + if (!getDefaultRole() + .equals(other.getDefaultRole())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_SHARING_DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWorkspaceSharingDisabled()); + hash = (37 * hash) + DEFAULT_WORKSPACE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultWorkspaceImage().hashCode(); + if (getAllowedWorkspaceClassesCount() > 0) { + hash = (37 * hash) + ALLOWED_WORKSPACE_CLASSES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedWorkspaceClassesList().hashCode(); + } + if (getRestrictedEditorNamesCount() > 0) { + hash = (37 * hash) + RESTRICTED_EDITOR_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedEditorNamesList().hashCode(); + } + if (!internalGetPinnedEditorVersions().getMap().isEmpty()) { + hash = (37 * hash) + PINNED_EDITOR_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetPinnedEditorVersions().hashCode(); + } + hash = (37 * hash) + DEFAULT_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultRole().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.OrganizationSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.OrganizationSettings) + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetPinnedEditorVersions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutablePinnedEditorVersions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.class, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceSharingDisabled_ = false; + defaultWorkspaceImage_ = ""; + allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + internalGetMutablePinnedEditorVersions().clear(); + defaultRole_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_OrganizationSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings result = new io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceSharingDisabled_ = workspaceSharingDisabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultWorkspaceImage_ = defaultWorkspaceImage_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + allowedWorkspaceClasses_.makeImmutable(); + result.allowedWorkspaceClasses_ = allowedWorkspaceClasses_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + restrictedEditorNames_.makeImmutable(); + result.restrictedEditorNames_ = restrictedEditorNames_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pinnedEditorVersions_ = internalGetPinnedEditorVersions(); + result.pinnedEditorVersions_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.defaultRole_ = defaultRole_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance()) return this; + if (other.getWorkspaceSharingDisabled() != false) { + setWorkspaceSharingDisabled(other.getWorkspaceSharingDisabled()); + } + if (!other.getDefaultWorkspaceImage().isEmpty()) { + defaultWorkspaceImage_ = other.defaultWorkspaceImage_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.allowedWorkspaceClasses_.isEmpty()) { + if (allowedWorkspaceClasses_.isEmpty()) { + allowedWorkspaceClasses_ = other.allowedWorkspaceClasses_; + bitField0_ |= 0x00000004; + } else { + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.addAll(other.allowedWorkspaceClasses_); + } + onChanged(); + } + if (!other.restrictedEditorNames_.isEmpty()) { + if (restrictedEditorNames_.isEmpty()) { + restrictedEditorNames_ = other.restrictedEditorNames_; + bitField0_ |= 0x00000008; + } else { + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.addAll(other.restrictedEditorNames_); + } + onChanged(); + } + internalGetMutablePinnedEditorVersions().mergeFrom( + other.internalGetPinnedEditorVersions()); + bitField0_ |= 0x00000010; + if (!other.getDefaultRole().isEmpty()) { + defaultRole_ = other.defaultRole_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + workspaceSharingDisabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + defaultWorkspaceImage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(s); + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + pinnedEditorVersions__ = input.readMessage( + PinnedEditorVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutablePinnedEditorVersions().getMutableMap().put( + pinnedEditorVersions__.getKey(), pinnedEditorVersions__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + defaultRole_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean workspaceSharingDisabled_ ; + /** + * bool workspace_sharing_disabled = 1 [json_name = "workspaceSharingDisabled"]; + * @return The workspaceSharingDisabled. + */ + @java.lang.Override + public boolean getWorkspaceSharingDisabled() { + return workspaceSharingDisabled_; + } + /** + * bool workspace_sharing_disabled = 1 [json_name = "workspaceSharingDisabled"]; + * @param value The workspaceSharingDisabled to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceSharingDisabled(boolean value) { + + workspaceSharingDisabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool workspace_sharing_disabled = 1 [json_name = "workspaceSharingDisabled"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceSharingDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + workspaceSharingDisabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object defaultWorkspaceImage_ = ""; + /** + * string default_workspace_image = 2 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + public java.lang.String getDefaultWorkspaceImage() { + java.lang.Object ref = defaultWorkspaceImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultWorkspaceImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string default_workspace_image = 2 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + public com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultWorkspaceImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string default_workspace_image = 2 [json_name = "defaultWorkspaceImage"]; + * @param value The defaultWorkspaceImage to set. + * @return This builder for chaining. + */ + public Builder setDefaultWorkspaceImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + defaultWorkspaceImage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string default_workspace_image = 2 [json_name = "defaultWorkspaceImage"]; + * @return This builder for chaining. + */ + public Builder clearDefaultWorkspaceImage() { + defaultWorkspaceImage_ = getDefaultInstance().getDefaultWorkspaceImage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string default_workspace_image = 2 [json_name = "defaultWorkspaceImage"]; + * @param value The bytes for defaultWorkspaceImage to set. + * @return This builder for chaining. + */ + public Builder setDefaultWorkspaceImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + defaultWorkspaceImage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAllowedWorkspaceClassesIsMutable() { + if (!allowedWorkspaceClasses_.isModifiable()) { + allowedWorkspaceClasses_ = new com.google.protobuf.LazyStringArrayList(allowedWorkspaceClasses_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @return A list containing the allowedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getAllowedWorkspaceClassesList() { + allowedWorkspaceClasses_.makeImmutable(); + return allowedWorkspaceClasses_; + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @return The count of allowedWorkspaceClasses. + */ + public int getAllowedWorkspaceClassesCount() { + return allowedWorkspaceClasses_.size(); + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The allowedWorkspaceClasses at the given index. + */ + public java.lang.String getAllowedWorkspaceClasses(int index) { + return allowedWorkspaceClasses_.get(index); + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the allowedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getAllowedWorkspaceClassesBytes(int index) { + return allowedWorkspaceClasses_.getByteString(index); + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param index The index to set the value at. + * @param value The allowedWorkspaceClasses to set. + * @return This builder for chaining. + */ + public Builder setAllowedWorkspaceClasses( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param value The allowedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addAllowedWorkspaceClasses( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param values The allowedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedWorkspaceClasses( + java.lang.Iterable values) { + ensureAllowedWorkspaceClassesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedWorkspaceClasses_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @return This builder for chaining. + */ + public Builder clearAllowedWorkspaceClasses() { + allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string allowed_workspace_classes = 3 [json_name = "allowedWorkspaceClasses"]; + * @param value The bytes of the allowedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addAllowedWorkspaceClassesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedEditorNamesIsMutable() { + if (!restrictedEditorNames_.isModifiable()) { + restrictedEditorNames_ = new com.google.protobuf.LazyStringArrayList(restrictedEditorNames_); + } + bitField0_ |= 0x00000008; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + restrictedEditorNames_.makeImmutable(); + return restrictedEditorNames_; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param index The index to set the value at. + * @param value The restrictedEditorNames to set. + * @return This builder for chaining. + */ + public Builder setRestrictedEditorNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param value The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param values The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedEditorNames( + java.lang.Iterable values) { + ensureRestrictedEditorNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedEditorNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @return This builder for chaining. + */ + public Builder clearRestrictedEditorNames() { + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + * repeated string restricted_editor_names = 4 [json_name = "restrictedEditorNames"]; + * @param value The bytes of the restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> pinnedEditorVersions_; + private com.google.protobuf.MapField + internalGetPinnedEditorVersions() { + if (pinnedEditorVersions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PinnedEditorVersionsDefaultEntryHolder.defaultEntry); + } + return pinnedEditorVersions_; + } + private com.google.protobuf.MapField + internalGetMutablePinnedEditorVersions() { + if (pinnedEditorVersions_ == null) { + pinnedEditorVersions_ = com.google.protobuf.MapField.newMapField( + PinnedEditorVersionsDefaultEntryHolder.defaultEntry); + } + if (!pinnedEditorVersions_.isMutable()) { + pinnedEditorVersions_ = pinnedEditorVersions_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return pinnedEditorVersions_; + } + public int getPinnedEditorVersionsCount() { + return internalGetPinnedEditorVersions().getMap().size(); + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public boolean containsPinnedEditorVersions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetPinnedEditorVersions().getMap().containsKey(key); + } + /** + * Use {@link #getPinnedEditorVersionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getPinnedEditorVersions() { + return getPinnedEditorVersionsMap(); + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public java.util.Map getPinnedEditorVersionsMap() { + return internalGetPinnedEditorVersions().getMap(); + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getPinnedEditorVersionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPinnedEditorVersions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public java.lang.String getPinnedEditorVersionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPinnedEditorVersions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearPinnedEditorVersions() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutablePinnedEditorVersions().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + public Builder removePinnedEditorVersions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutablePinnedEditorVersions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePinnedEditorVersions() { + bitField0_ |= 0x00000010; + return internalGetMutablePinnedEditorVersions().getMutableMap(); + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + public Builder putPinnedEditorVersions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutablePinnedEditorVersions().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * map<string, string> pinned_editor_versions = 5 [json_name = "pinnedEditorVersions"]; + */ + public Builder putAllPinnedEditorVersions( + java.util.Map values) { + internalGetMutablePinnedEditorVersions().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object defaultRole_ = ""; + /** + * string default_role = 6 [json_name = "defaultRole"]; + * @return The defaultRole. + */ + public java.lang.String getDefaultRole() { + java.lang.Object ref = defaultRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string default_role = 6 [json_name = "defaultRole"]; + * @return The bytes for defaultRole. + */ + public com.google.protobuf.ByteString + getDefaultRoleBytes() { + java.lang.Object ref = defaultRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string default_role = 6 [json_name = "defaultRole"]; + * @param value The defaultRole to set. + * @return This builder for chaining. + */ + public Builder setDefaultRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + defaultRole_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string default_role = 6 [json_name = "defaultRole"]; + * @return This builder for chaining. + */ + public Builder clearDefaultRole() { + defaultRole_ = getDefaultInstance().getDefaultRole(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string default_role = 6 [json_name = "defaultRole"]; + * @param value The bytes for defaultRole to set. + * @return This builder for chaining. + */ + public Builder setDefaultRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + defaultRole_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.OrganizationSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.OrganizationSettings) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOrganizationWorkspaceClassesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationWorkspaceClassesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + *
+     * organization_id is the ID of the organization.
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization.
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationWorkspaceClassesRequest} + */ + public static final class ListOrganizationWorkspaceClassesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationWorkspaceClassesRequest) + ListOrganizationWorkspaceClassesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListOrganizationWorkspaceClassesRequest.class.getName()); + } + // Use ListOrganizationWorkspaceClassesRequest.newBuilder() to construct. + private ListOrganizationWorkspaceClassesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListOrganizationWorkspaceClassesRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization.
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization.
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationWorkspaceClassesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationWorkspaceClassesRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationWorkspaceClassesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationWorkspaceClassesRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationWorkspaceClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOrganizationWorkspaceClassesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationWorkspaceClassesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + java.util.List + getWorkspaceClassesList(); + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass getWorkspaceClasses(int index); + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + int getWorkspaceClassesCount(); + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + java.util.List + getWorkspaceClassesOrBuilderList(); + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder getWorkspaceClassesOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationWorkspaceClassesResponse} + */ + public static final class ListOrganizationWorkspaceClassesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationWorkspaceClassesResponse) + ListOrganizationWorkspaceClassesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListOrganizationWorkspaceClassesResponse.class.getName()); + } + // Use ListOrganizationWorkspaceClassesResponse.newBuilder() to construct. + private ListOrganizationWorkspaceClassesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListOrganizationWorkspaceClassesResponse() { + workspaceClasses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + public static final int WORKSPACE_CLASSES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List workspaceClasses_; + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public java.util.List getWorkspaceClassesList() { + return workspaceClasses_; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public java.util.List + getWorkspaceClassesOrBuilderList() { + return workspaceClasses_; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public int getWorkspaceClassesCount() { + return workspaceClasses_.size(); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass getWorkspaceClasses(int index) { + return workspaceClasses_.get(index); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder getWorkspaceClassesOrBuilder( + int index) { + return workspaceClasses_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < workspaceClasses_.size(); i++) { + output.writeMessage(2, workspaceClasses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < workspaceClasses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, workspaceClasses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getWorkspaceClassesList() + .equals(other.getWorkspaceClassesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getWorkspaceClassesCount() > 0) { + hash = (37 * hash) + WORKSPACE_CLASSES_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClassesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationWorkspaceClassesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationWorkspaceClassesResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getWorkspaceClassesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (workspaceClassesBuilder_ == null) { + workspaceClasses_ = java.util.Collections.emptyList(); + } else { + workspaceClasses_ = null; + workspaceClassesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse result) { + if (workspaceClassesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + workspaceClasses_ = java.util.Collections.unmodifiableList(workspaceClasses_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.workspaceClasses_ = workspaceClasses_; + } else { + result.workspaceClasses_ = workspaceClassesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (workspaceClassesBuilder_ == null) { + if (!other.workspaceClasses_.isEmpty()) { + if (workspaceClasses_.isEmpty()) { + workspaceClasses_ = other.workspaceClasses_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.addAll(other.workspaceClasses_); + } + onChanged(); + } + } else { + if (!other.workspaceClasses_.isEmpty()) { + if (workspaceClassesBuilder_.isEmpty()) { + workspaceClassesBuilder_.dispose(); + workspaceClassesBuilder_ = null; + workspaceClasses_ = other.workspaceClasses_; + bitField0_ = (bitField0_ & ~0x00000002); + workspaceClassesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getWorkspaceClassesFieldBuilder() : null; + } else { + workspaceClassesBuilder_.addAllMessages(other.workspaceClasses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass m = + input.readMessage( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.parser(), + extensionRegistry); + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(m); + } else { + workspaceClassesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List workspaceClasses_ = + java.util.Collections.emptyList(); + private void ensureWorkspaceClassesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + workspaceClasses_ = new java.util.ArrayList(workspaceClasses_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder> workspaceClassesBuilder_; + + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public java.util.List getWorkspaceClassesList() { + if (workspaceClassesBuilder_ == null) { + return java.util.Collections.unmodifiableList(workspaceClasses_); + } else { + return workspaceClassesBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public int getWorkspaceClassesCount() { + if (workspaceClassesBuilder_ == null) { + return workspaceClasses_.size(); + } else { + return workspaceClassesBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass getWorkspaceClasses(int index) { + if (workspaceClassesBuilder_ == null) { + return workspaceClasses_.get(index); + } else { + return workspaceClassesBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder setWorkspaceClasses( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass value) { + if (workspaceClassesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.set(index, value); + onChanged(); + } else { + workspaceClassesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder setWorkspaceClasses( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder builderForValue) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.set(index, builderForValue.build()); + onChanged(); + } else { + workspaceClassesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addWorkspaceClasses(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass value) { + if (workspaceClassesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(value); + onChanged(); + } else { + workspaceClassesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addWorkspaceClasses( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass value) { + if (workspaceClassesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(index, value); + onChanged(); + } else { + workspaceClassesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addWorkspaceClasses( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder builderForValue) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(builderForValue.build()); + onChanged(); + } else { + workspaceClassesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addWorkspaceClasses( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder builderForValue) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(index, builderForValue.build()); + onChanged(); + } else { + workspaceClassesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addAllWorkspaceClasses( + java.lang.Iterable values) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workspaceClasses_); + onChanged(); + } else { + workspaceClassesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder clearWorkspaceClasses() { + if (workspaceClassesBuilder_ == null) { + workspaceClasses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + workspaceClassesBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder removeWorkspaceClasses(int index) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.remove(index); + onChanged(); + } else { + workspaceClassesBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder getWorkspaceClassesBuilder( + int index) { + return getWorkspaceClassesFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder getWorkspaceClassesOrBuilder( + int index) { + if (workspaceClassesBuilder_ == null) { + return workspaceClasses_.get(index); } else { + return workspaceClassesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public java.util.List + getWorkspaceClassesOrBuilderList() { + if (workspaceClassesBuilder_ != null) { + return workspaceClassesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workspaceClasses_); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder addWorkspaceClassesBuilder() { + return getWorkspaceClassesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder addWorkspaceClassesBuilder( + int index) { + return getWorkspaceClassesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public java.util.List + getWorkspaceClassesBuilderList() { + return getWorkspaceClassesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder> + getWorkspaceClassesFieldBuilder() { + if (workspaceClassesBuilder_ == null) { + workspaceClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder>( + workspaceClasses_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + workspaceClasses_ = null; + } + return workspaceClassesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationWorkspaceClassesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationWorkspaceClassesResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationWorkspaceClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateOrganizationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateOrganizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the ID of the organization to update the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization to update the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + *
+     * name is the new name of the organization
+     * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + *
+     * name is the new name of the organization
+     * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the new name of the organization
+     * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationRequest} + */ + public static final class UpdateOrganizationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateOrganizationRequest) + UpdateOrganizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateOrganizationRequest.class.getName()); + } + // Use UpdateOrganizationRequest.newBuilder() to construct. + private UpdateOrganizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateOrganizationRequest() { + organizationId_ = ""; + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization to update the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization to update the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the new name of the organization
+     * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * name is the new name of the organization
+     * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the new name of the organization
+     * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateOrganizationRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * name is the new name of the organization
+       * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * name is the new name of the organization
+       * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the new name of the organization
+       * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the new name of the organization
+       * 
+ * + * optional string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * name is the new name of the organization
+       * 
+ * + * optional string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * name is the new name of the organization
+       * 
+ * + * optional string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateOrganizationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateOrganizationRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateOrganizationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateOrganizationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization is the updated organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + boolean hasOrganization(); + /** + *
+     * organization is the updated organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return The organization. + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganization(); + /** + *
+     * organization is the updated organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationResponse} + */ + public static final class UpdateOrganizationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateOrganizationResponse) + UpdateOrganizationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateOrganizationResponse.class.getName()); + } + // Use UpdateOrganizationResponse.newBuilder() to construct. + private UpdateOrganizationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateOrganizationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.OrganizationOuterClass.Organization organization_; + /** + *
+     * organization is the updated organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + @java.lang.Override + public boolean hasOrganization() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * organization is the updated organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return The organization. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganization() { + return organization_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } + /** + *
+     * organization is the updated organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationOrBuilder() { + return organization_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOrganization()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOrganization()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse) obj; + + if (hasOrganization() != other.hasOrganization()) return false; + if (hasOrganization()) { + if (!getOrganization() + .equals(other.getOrganization())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOrganization()) { + hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateOrganizationResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getOrganizationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organization_ = organizationBuilder_ == null + ? organization_ + : organizationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse.getDefaultInstance()) return this; + if (other.hasOrganization()) { + mergeOrganization(other.getOrganization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getOrganizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.OrganizationOuterClass.Organization organization_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder> organizationBuilder_; + /** + *
+       * organization is the updated organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + public boolean hasOrganization() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * organization is the updated organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return The organization. + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganization() { + if (organizationBuilder_ == null) { + return organization_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } else { + return organizationBuilder_.getMessage(); + } + } + /** + *
+       * organization is the updated organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder setOrganization(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization value) { + if (organizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + } else { + organizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization is the updated organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder setOrganization( + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder builderForValue) { + if (organizationBuilder_ == null) { + organization_ = builderForValue.build(); + } else { + organizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization is the updated organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder mergeOrganization(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization value) { + if (organizationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + organization_ != null && + organization_ != io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance()) { + getOrganizationBuilder().mergeFrom(value); + } else { + organization_ = value; + } + } else { + organizationBuilder_.mergeFrom(value); + } + if (organization_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * organization is the updated organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder clearOrganization() { + bitField0_ = (bitField0_ & ~0x00000001); + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * organization is the updated organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder getOrganizationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOrganizationFieldBuilder().getBuilder(); + } + /** + *
+       * organization is the updated organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationOrBuilder() { + if (organizationBuilder_ != null) { + return organizationBuilder_.getMessageOrBuilder(); + } else { + return organization_ == null ? + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } + } + /** + *
+       * organization is the updated organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder> + getOrganizationFieldBuilder() { + if (organizationBuilder_ == null) { + organizationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder>( + getOrganization(), + getParentForChildren(), + isClean()); + organization_ = null; + } + return organizationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateOrganizationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateOrganizationResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateOrganizationSettingsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the ID of the organization to update the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization to update the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * optional bool workspace_sharing_disabled = 3 [json_name = "workspaceSharingDisabled"]; + * @return Whether the workspaceSharingDisabled field is set. + */ + boolean hasWorkspaceSharingDisabled(); + /** + * optional bool workspace_sharing_disabled = 3 [json_name = "workspaceSharingDisabled"]; + * @return The workspaceSharingDisabled. + */ + boolean getWorkspaceSharingDisabled(); + + /** + *
+     * pass empty string to reset to the installation default workspace image
+     * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return Whether the defaultWorkspaceImage field is set. + */ + boolean hasDefaultWorkspaceImage(); + /** + *
+     * pass empty string to reset to the installation default workspace image
+     * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + java.lang.String getDefaultWorkspaceImage(); + /** + *
+     * pass empty string to reset to the installation default workspace image
+     * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes(); + + /** + *
+     * allowed_workspace_classes are the IDs of classes, which can be used by
+     * workspaces in an organization. Pass an empty array to allow all workspace
+     * classes
+     * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @return A list containing the allowedWorkspaceClasses. + */ + java.util.List + getAllowedWorkspaceClassesList(); + /** + *
+     * allowed_workspace_classes are the IDs of classes, which can be used by
+     * workspaces in an organization. Pass an empty array to allow all workspace
+     * classes
+     * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @return The count of allowedWorkspaceClasses. + */ + int getAllowedWorkspaceClassesCount(); + /** + *
+     * allowed_workspace_classes are the IDs of classes, which can be used by
+     * workspaces in an organization. Pass an empty array to allow all workspace
+     * classes
+     * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The allowedWorkspaceClasses at the given index. + */ + java.lang.String getAllowedWorkspaceClasses(int index); + /** + *
+     * allowed_workspace_classes are the IDs of classes, which can be used by
+     * workspaces in an organization. Pass an empty array to allow all workspace
+     * classes
+     * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the allowedWorkspaceClasses at the given index. + */ + com.google.protobuf.ByteString + getAllowedWorkspaceClassesBytes(int index); + + /** + *
+     * restricted_editor_names updates the list of restricted editor names that
+     * are not allowed to be used by workspaces in an organization. If empty, all
+     * editors are allowed. Only updates if update_restricted_editor_names is
+     * true.
+     * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + java.util.List + getRestrictedEditorNamesList(); + /** + *
+     * restricted_editor_names updates the list of restricted editor names that
+     * are not allowed to be used by workspaces in an organization. If empty, all
+     * editors are allowed. Only updates if update_restricted_editor_names is
+     * true.
+     * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + int getRestrictedEditorNamesCount(); + /** + *
+     * restricted_editor_names updates the list of restricted editor names that
+     * are not allowed to be used by workspaces in an organization. If empty, all
+     * editors are allowed. Only updates if update_restricted_editor_names is
+     * true.
+     * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + java.lang.String getRestrictedEditorNames(int index); + /** + *
+     * restricted_editor_names updates the list of restricted editor names that
+     * are not allowed to be used by workspaces in an organization. If empty, all
+     * editors are allowed. Only updates if update_restricted_editor_names is
+     * true.
+     * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index); + + /** + *
+     * Specifies whether restricted_workspace_classes should be updated.
+     * 
+ * + * optional bool update_restricted_editor_names = 7 [json_name = "updateRestrictedEditorNames"]; + * @return Whether the updateRestrictedEditorNames field is set. + */ + boolean hasUpdateRestrictedEditorNames(); + /** + *
+     * Specifies whether restricted_workspace_classes should be updated.
+     * 
+ * + * optional bool update_restricted_editor_names = 7 [json_name = "updateRestrictedEditorNames"]; + * @return The updateRestrictedEditorNames. + */ + boolean getUpdateRestrictedEditorNames(); + + /** + *
+     * pinned_editor_versions updates the pinned version for the corresponding
+     * editor.
+     * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + int getPinnedEditorVersionsCount(); + /** + *
+     * pinned_editor_versions updates the pinned version for the corresponding
+     * editor.
+     * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + boolean containsPinnedEditorVersions( + java.lang.String key); + /** + * Use {@link #getPinnedEditorVersionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPinnedEditorVersions(); + /** + *
+     * pinned_editor_versions updates the pinned version for the corresponding
+     * editor.
+     * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + java.util.Map + getPinnedEditorVersionsMap(); + /** + *
+     * pinned_editor_versions updates the pinned version for the corresponding
+     * editor.
+     * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + /* nullable */ +java.lang.String getPinnedEditorVersionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * pinned_editor_versions updates the pinned version for the corresponding
+     * editor.
+     * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + java.lang.String getPinnedEditorVersionsOrThrow( + java.lang.String key); + + /** + *
+     * Specifies whether pinned_editor_versions should be updated.
+     * 
+ * + * optional bool update_pinned_editor_versions = 9 [json_name = "updatePinnedEditorVersions"]; + * @return Whether the updatePinnedEditorVersions field is set. + */ + boolean hasUpdatePinnedEditorVersions(); + /** + *
+     * Specifies whether pinned_editor_versions should be updated.
+     * 
+ * + * optional bool update_pinned_editor_versions = 9 [json_name = "updatePinnedEditorVersions"]; + * @return The updatePinnedEditorVersions. + */ + boolean getUpdatePinnedEditorVersions(); + + /** + *
+     * default_role is the default role for new members in the organization.
+     * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return Whether the defaultRole field is set. + */ + boolean hasDefaultRole(); + /** + *
+     * default_role is the default role for new members in the organization.
+     * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return The defaultRole. + */ + java.lang.String getDefaultRole(); + /** + *
+     * default_role is the default role for new members in the organization.
+     * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return The bytes for defaultRole. + */ + com.google.protobuf.ByteString + getDefaultRoleBytes(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationSettingsRequest} + */ + public static final class UpdateOrganizationSettingsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateOrganizationSettingsRequest) + UpdateOrganizationSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateOrganizationSettingsRequest.class.getName()); + } + // Use UpdateOrganizationSettingsRequest.newBuilder() to construct. + private UpdateOrganizationSettingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateOrganizationSettingsRequest() { + organizationId_ = ""; + defaultWorkspaceImage_ = ""; + allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + defaultRole_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetPinnedEditorVersions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization to update the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization to update the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_SHARING_DISABLED_FIELD_NUMBER = 3; + private boolean workspaceSharingDisabled_ = false; + /** + * optional bool workspace_sharing_disabled = 3 [json_name = "workspaceSharingDisabled"]; + * @return Whether the workspaceSharingDisabled field is set. + */ + @java.lang.Override + public boolean hasWorkspaceSharingDisabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional bool workspace_sharing_disabled = 3 [json_name = "workspaceSharingDisabled"]; + * @return The workspaceSharingDisabled. + */ + @java.lang.Override + public boolean getWorkspaceSharingDisabled() { + return workspaceSharingDisabled_; + } + + public static final int DEFAULT_WORKSPACE_IMAGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object defaultWorkspaceImage_ = ""; + /** + *
+     * pass empty string to reset to the installation default workspace image
+     * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return Whether the defaultWorkspaceImage field is set. + */ + @java.lang.Override + public boolean hasDefaultWorkspaceImage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * pass empty string to reset to the installation default workspace image
+     * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + @java.lang.Override + public java.lang.String getDefaultWorkspaceImage() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultWorkspaceImage_ = s; + return s; + } + } + /** + *
+     * pass empty string to reset to the installation default workspace image
+     * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultWorkspaceImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_WORKSPACE_CLASSES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * allowed_workspace_classes are the IDs of classes, which can be used by
+     * workspaces in an organization. Pass an empty array to allow all workspace
+     * classes
+     * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @return A list containing the allowedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getAllowedWorkspaceClassesList() { + return allowedWorkspaceClasses_; + } + /** + *
+     * allowed_workspace_classes are the IDs of classes, which can be used by
+     * workspaces in an organization. Pass an empty array to allow all workspace
+     * classes
+     * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @return The count of allowedWorkspaceClasses. + */ + public int getAllowedWorkspaceClassesCount() { + return allowedWorkspaceClasses_.size(); + } + /** + *
+     * allowed_workspace_classes are the IDs of classes, which can be used by
+     * workspaces in an organization. Pass an empty array to allow all workspace
+     * classes
+     * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The allowedWorkspaceClasses at the given index. + */ + public java.lang.String getAllowedWorkspaceClasses(int index) { + return allowedWorkspaceClasses_.get(index); + } + /** + *
+     * allowed_workspace_classes are the IDs of classes, which can be used by
+     * workspaces in an organization. Pass an empty array to allow all workspace
+     * classes
+     * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the allowedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getAllowedWorkspaceClassesBytes(int index) { + return allowedWorkspaceClasses_.getByteString(index); + } + + public static final int RESTRICTED_EDITOR_NAMES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * restricted_editor_names updates the list of restricted editor names that
+     * are not allowed to be used by workspaces in an organization. If empty, all
+     * editors are allowed. Only updates if update_restricted_editor_names is
+     * true.
+     * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + return restrictedEditorNames_; + } + /** + *
+     * restricted_editor_names updates the list of restricted editor names that
+     * are not allowed to be used by workspaces in an organization. If empty, all
+     * editors are allowed. Only updates if update_restricted_editor_names is
+     * true.
+     * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + *
+     * restricted_editor_names updates the list of restricted editor names that
+     * are not allowed to be used by workspaces in an organization. If empty, all
+     * editors are allowed. Only updates if update_restricted_editor_names is
+     * true.
+     * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + *
+     * restricted_editor_names updates the list of restricted editor names that
+     * are not allowed to be used by workspaces in an organization. If empty, all
+     * editors are allowed. Only updates if update_restricted_editor_names is
+     * true.
+     * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + + public static final int UPDATE_RESTRICTED_EDITOR_NAMES_FIELD_NUMBER = 7; + private boolean updateRestrictedEditorNames_ = false; + /** + *
+     * Specifies whether restricted_workspace_classes should be updated.
+     * 
+ * + * optional bool update_restricted_editor_names = 7 [json_name = "updateRestrictedEditorNames"]; + * @return Whether the updateRestrictedEditorNames field is set. + */ + @java.lang.Override + public boolean hasUpdateRestrictedEditorNames() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Specifies whether restricted_workspace_classes should be updated.
+     * 
+ * + * optional bool update_restricted_editor_names = 7 [json_name = "updateRestrictedEditorNames"]; + * @return The updateRestrictedEditorNames. + */ + @java.lang.Override + public boolean getUpdateRestrictedEditorNames() { + return updateRestrictedEditorNames_; + } + + public static final int PINNED_EDITOR_VERSIONS_FIELD_NUMBER = 8; + private static final class PinnedEditorVersionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_PinnedEditorVersionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> pinnedEditorVersions_; + private com.google.protobuf.MapField + internalGetPinnedEditorVersions() { + if (pinnedEditorVersions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PinnedEditorVersionsDefaultEntryHolder.defaultEntry); + } + return pinnedEditorVersions_; + } + public int getPinnedEditorVersionsCount() { + return internalGetPinnedEditorVersions().getMap().size(); + } + /** + *
+     * pinned_editor_versions updates the pinned version for the corresponding
+     * editor.
+     * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public boolean containsPinnedEditorVersions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetPinnedEditorVersions().getMap().containsKey(key); + } + /** + * Use {@link #getPinnedEditorVersionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getPinnedEditorVersions() { + return getPinnedEditorVersionsMap(); + } + /** + *
+     * pinned_editor_versions updates the pinned version for the corresponding
+     * editor.
+     * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public java.util.Map getPinnedEditorVersionsMap() { + return internalGetPinnedEditorVersions().getMap(); + } + /** + *
+     * pinned_editor_versions updates the pinned version for the corresponding
+     * editor.
+     * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getPinnedEditorVersionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPinnedEditorVersions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * pinned_editor_versions updates the pinned version for the corresponding
+     * editor.
+     * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public java.lang.String getPinnedEditorVersionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPinnedEditorVersions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UPDATE_PINNED_EDITOR_VERSIONS_FIELD_NUMBER = 9; + private boolean updatePinnedEditorVersions_ = false; + /** + *
+     * Specifies whether pinned_editor_versions should be updated.
+     * 
+ * + * optional bool update_pinned_editor_versions = 9 [json_name = "updatePinnedEditorVersions"]; + * @return Whether the updatePinnedEditorVersions field is set. + */ + @java.lang.Override + public boolean hasUpdatePinnedEditorVersions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Specifies whether pinned_editor_versions should be updated.
+     * 
+ * + * optional bool update_pinned_editor_versions = 9 [json_name = "updatePinnedEditorVersions"]; + * @return The updatePinnedEditorVersions. + */ + @java.lang.Override + public boolean getUpdatePinnedEditorVersions() { + return updatePinnedEditorVersions_; + } + + public static final int DEFAULT_ROLE_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object defaultRole_ = ""; + /** + *
+     * default_role is the default role for new members in the organization.
+     * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return Whether the defaultRole field is set. + */ + @java.lang.Override + public boolean hasDefaultRole() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * default_role is the default role for new members in the organization.
+     * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return The defaultRole. + */ + @java.lang.Override + public java.lang.String getDefaultRole() { + java.lang.Object ref = defaultRole_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultRole_ = s; + return s; + } + } + /** + *
+     * default_role is the default role for new members in the organization.
+     * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return The bytes for defaultRole. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDefaultRoleBytes() { + java.lang.Object ref = defaultRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, workspaceSharingDisabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, defaultWorkspaceImage_); + } + for (int i = 0; i < allowedWorkspaceClasses_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, allowedWorkspaceClasses_.getRaw(i)); + } + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, restrictedEditorNames_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(7, updateRestrictedEditorNames_); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetPinnedEditorVersions(), + PinnedEditorVersionsDefaultEntryHolder.defaultEntry, + 8); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(9, updatePinnedEditorVersions_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, defaultRole_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, workspaceSharingDisabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, defaultWorkspaceImage_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedWorkspaceClasses_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedWorkspaceClasses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedWorkspaceClassesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedEditorNames_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedEditorNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedEditorNamesList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, updateRestrictedEditorNames_); + } + for (java.util.Map.Entry entry + : internalGetPinnedEditorVersions().getMap().entrySet()) { + com.google.protobuf.MapEntry + pinnedEditorVersions__ = PinnedEditorVersionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, pinnedEditorVersions__); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, updatePinnedEditorVersions_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, defaultRole_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (hasWorkspaceSharingDisabled() != other.hasWorkspaceSharingDisabled()) return false; + if (hasWorkspaceSharingDisabled()) { + if (getWorkspaceSharingDisabled() + != other.getWorkspaceSharingDisabled()) return false; + } + if (hasDefaultWorkspaceImage() != other.hasDefaultWorkspaceImage()) return false; + if (hasDefaultWorkspaceImage()) { + if (!getDefaultWorkspaceImage() + .equals(other.getDefaultWorkspaceImage())) return false; + } + if (!getAllowedWorkspaceClassesList() + .equals(other.getAllowedWorkspaceClassesList())) return false; + if (!getRestrictedEditorNamesList() + .equals(other.getRestrictedEditorNamesList())) return false; + if (hasUpdateRestrictedEditorNames() != other.hasUpdateRestrictedEditorNames()) return false; + if (hasUpdateRestrictedEditorNames()) { + if (getUpdateRestrictedEditorNames() + != other.getUpdateRestrictedEditorNames()) return false; + } + if (!internalGetPinnedEditorVersions().equals( + other.internalGetPinnedEditorVersions())) return false; + if (hasUpdatePinnedEditorVersions() != other.hasUpdatePinnedEditorVersions()) return false; + if (hasUpdatePinnedEditorVersions()) { + if (getUpdatePinnedEditorVersions() + != other.getUpdatePinnedEditorVersions()) return false; + } + if (hasDefaultRole() != other.hasDefaultRole()) return false; + if (hasDefaultRole()) { + if (!getDefaultRole() + .equals(other.getDefaultRole())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + if (hasWorkspaceSharingDisabled()) { + hash = (37 * hash) + WORKSPACE_SHARING_DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWorkspaceSharingDisabled()); + } + if (hasDefaultWorkspaceImage()) { + hash = (37 * hash) + DEFAULT_WORKSPACE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultWorkspaceImage().hashCode(); + } + if (getAllowedWorkspaceClassesCount() > 0) { + hash = (37 * hash) + ALLOWED_WORKSPACE_CLASSES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedWorkspaceClassesList().hashCode(); + } + if (getRestrictedEditorNamesCount() > 0) { + hash = (37 * hash) + RESTRICTED_EDITOR_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedEditorNamesList().hashCode(); + } + if (hasUpdateRestrictedEditorNames()) { + hash = (37 * hash) + UPDATE_RESTRICTED_EDITOR_NAMES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUpdateRestrictedEditorNames()); + } + if (!internalGetPinnedEditorVersions().getMap().isEmpty()) { + hash = (37 * hash) + PINNED_EDITOR_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetPinnedEditorVersions().hashCode(); + } + if (hasUpdatePinnedEditorVersions()) { + hash = (37 * hash) + UPDATE_PINNED_EDITOR_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUpdatePinnedEditorVersions()); + } + if (hasDefaultRole()) { + hash = (37 * hash) + DEFAULT_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultRole().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationSettingsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateOrganizationSettingsRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetPinnedEditorVersions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMutablePinnedEditorVersions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + workspaceSharingDisabled_ = false; + defaultWorkspaceImage_ = ""; + allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + updateRestrictedEditorNames_ = false; + internalGetMutablePinnedEditorVersions().clear(); + updatePinnedEditorVersions_ = false; + defaultRole_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspaceSharingDisabled_ = workspaceSharingDisabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultWorkspaceImage_ = defaultWorkspaceImage_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + allowedWorkspaceClasses_.makeImmutable(); + result.allowedWorkspaceClasses_ = allowedWorkspaceClasses_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + restrictedEditorNames_.makeImmutable(); + result.restrictedEditorNames_ = restrictedEditorNames_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateRestrictedEditorNames_ = updateRestrictedEditorNames_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pinnedEditorVersions_ = internalGetPinnedEditorVersions(); + result.pinnedEditorVersions_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updatePinnedEditorVersions_ = updatePinnedEditorVersions_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.defaultRole_ = defaultRole_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasWorkspaceSharingDisabled()) { + setWorkspaceSharingDisabled(other.getWorkspaceSharingDisabled()); + } + if (other.hasDefaultWorkspaceImage()) { + defaultWorkspaceImage_ = other.defaultWorkspaceImage_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.allowedWorkspaceClasses_.isEmpty()) { + if (allowedWorkspaceClasses_.isEmpty()) { + allowedWorkspaceClasses_ = other.allowedWorkspaceClasses_; + bitField0_ |= 0x00000008; + } else { + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.addAll(other.allowedWorkspaceClasses_); + } + onChanged(); + } + if (!other.restrictedEditorNames_.isEmpty()) { + if (restrictedEditorNames_.isEmpty()) { + restrictedEditorNames_ = other.restrictedEditorNames_; + bitField0_ |= 0x00000010; + } else { + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.addAll(other.restrictedEditorNames_); + } + onChanged(); + } + if (other.hasUpdateRestrictedEditorNames()) { + setUpdateRestrictedEditorNames(other.getUpdateRestrictedEditorNames()); + } + internalGetMutablePinnedEditorVersions().mergeFrom( + other.internalGetPinnedEditorVersions()); + bitField0_ |= 0x00000040; + if (other.hasUpdatePinnedEditorVersions()) { + setUpdatePinnedEditorVersions(other.getUpdatePinnedEditorVersions()); + } + if (other.hasDefaultRole()) { + defaultRole_ = other.defaultRole_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + workspaceSharingDisabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: { + defaultWorkspaceImage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.add(s); + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(s); + break; + } // case 50 + case 56: { + updateRestrictedEditorNames_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: { + com.google.protobuf.MapEntry + pinnedEditorVersions__ = input.readMessage( + PinnedEditorVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutablePinnedEditorVersions().getMutableMap().put( + pinnedEditorVersions__.getKey(), pinnedEditorVersions__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: { + updatePinnedEditorVersions_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + defaultRole_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to update the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean workspaceSharingDisabled_ ; + /** + * optional bool workspace_sharing_disabled = 3 [json_name = "workspaceSharingDisabled"]; + * @return Whether the workspaceSharingDisabled field is set. + */ + @java.lang.Override + public boolean hasWorkspaceSharingDisabled() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool workspace_sharing_disabled = 3 [json_name = "workspaceSharingDisabled"]; + * @return The workspaceSharingDisabled. + */ + @java.lang.Override + public boolean getWorkspaceSharingDisabled() { + return workspaceSharingDisabled_; + } + /** + * optional bool workspace_sharing_disabled = 3 [json_name = "workspaceSharingDisabled"]; + * @param value The workspaceSharingDisabled to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceSharingDisabled(boolean value) { + + workspaceSharingDisabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional bool workspace_sharing_disabled = 3 [json_name = "workspaceSharingDisabled"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceSharingDisabled() { + bitField0_ = (bitField0_ & ~0x00000002); + workspaceSharingDisabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object defaultWorkspaceImage_ = ""; + /** + *
+       * pass empty string to reset to the installation default workspace image
+       * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return Whether the defaultWorkspaceImage field is set. + */ + public boolean hasDefaultWorkspaceImage() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * pass empty string to reset to the installation default workspace image
+       * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + public java.lang.String getDefaultWorkspaceImage() { + java.lang.Object ref = defaultWorkspaceImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultWorkspaceImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * pass empty string to reset to the installation default workspace image
+       * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + public com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultWorkspaceImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * pass empty string to reset to the installation default workspace image
+       * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @param value The defaultWorkspaceImage to set. + * @return This builder for chaining. + */ + public Builder setDefaultWorkspaceImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + defaultWorkspaceImage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * pass empty string to reset to the installation default workspace image
+       * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @return This builder for chaining. + */ + public Builder clearDefaultWorkspaceImage() { + defaultWorkspaceImage_ = getDefaultInstance().getDefaultWorkspaceImage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * pass empty string to reset to the installation default workspace image
+       * 
+ * + * optional string default_workspace_image = 4 [json_name = "defaultWorkspaceImage"]; + * @param value The bytes for defaultWorkspaceImage to set. + * @return This builder for chaining. + */ + public Builder setDefaultWorkspaceImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + defaultWorkspaceImage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAllowedWorkspaceClassesIsMutable() { + if (!allowedWorkspaceClasses_.isModifiable()) { + allowedWorkspaceClasses_ = new com.google.protobuf.LazyStringArrayList(allowedWorkspaceClasses_); + } + bitField0_ |= 0x00000008; + } + /** + *
+       * allowed_workspace_classes are the IDs of classes, which can be used by
+       * workspaces in an organization. Pass an empty array to allow all workspace
+       * classes
+       * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @return A list containing the allowedWorkspaceClasses. + */ + public com.google.protobuf.ProtocolStringList + getAllowedWorkspaceClassesList() { + allowedWorkspaceClasses_.makeImmutable(); + return allowedWorkspaceClasses_; + } + /** + *
+       * allowed_workspace_classes are the IDs of classes, which can be used by
+       * workspaces in an organization. Pass an empty array to allow all workspace
+       * classes
+       * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @return The count of allowedWorkspaceClasses. + */ + public int getAllowedWorkspaceClassesCount() { + return allowedWorkspaceClasses_.size(); + } + /** + *
+       * allowed_workspace_classes are the IDs of classes, which can be used by
+       * workspaces in an organization. Pass an empty array to allow all workspace
+       * classes
+       * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the element to return. + * @return The allowedWorkspaceClasses at the given index. + */ + public java.lang.String getAllowedWorkspaceClasses(int index) { + return allowedWorkspaceClasses_.get(index); + } + /** + *
+       * allowed_workspace_classes are the IDs of classes, which can be used by
+       * workspaces in an organization. Pass an empty array to allow all workspace
+       * classes
+       * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param index The index of the value to return. + * @return The bytes of the allowedWorkspaceClasses at the given index. + */ + public com.google.protobuf.ByteString + getAllowedWorkspaceClassesBytes(int index) { + return allowedWorkspaceClasses_.getByteString(index); + } + /** + *
+       * allowed_workspace_classes are the IDs of classes, which can be used by
+       * workspaces in an organization. Pass an empty array to allow all workspace
+       * classes
+       * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param index The index to set the value at. + * @param value The allowedWorkspaceClasses to set. + * @return This builder for chaining. + */ + public Builder setAllowedWorkspaceClasses( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * allowed_workspace_classes are the IDs of classes, which can be used by
+       * workspaces in an organization. Pass an empty array to allow all workspace
+       * classes
+       * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param value The allowedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addAllowedWorkspaceClasses( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * allowed_workspace_classes are the IDs of classes, which can be used by
+       * workspaces in an organization. Pass an empty array to allow all workspace
+       * classes
+       * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param values The allowedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedWorkspaceClasses( + java.lang.Iterable values) { + ensureAllowedWorkspaceClassesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedWorkspaceClasses_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * allowed_workspace_classes are the IDs of classes, which can be used by
+       * workspaces in an organization. Pass an empty array to allow all workspace
+       * classes
+       * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @return This builder for chaining. + */ + public Builder clearAllowedWorkspaceClasses() { + allowedWorkspaceClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + *
+       * allowed_workspace_classes are the IDs of classes, which can be used by
+       * workspaces in an organization. Pass an empty array to allow all workspace
+       * classes
+       * 
+ * + * repeated string allowed_workspace_classes = 5 [json_name = "allowedWorkspaceClasses"]; + * @param value The bytes of the allowedWorkspaceClasses to add. + * @return This builder for chaining. + */ + public Builder addAllowedWorkspaceClassesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureAllowedWorkspaceClassesIsMutable(); + allowedWorkspaceClasses_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedEditorNamesIsMutable() { + if (!restrictedEditorNames_.isModifiable()) { + restrictedEditorNames_ = new com.google.protobuf.LazyStringArrayList(restrictedEditorNames_); + } + bitField0_ |= 0x00000010; + } + /** + *
+       * restricted_editor_names updates the list of restricted editor names that
+       * are not allowed to be used by workspaces in an organization. If empty, all
+       * editors are allowed. Only updates if update_restricted_editor_names is
+       * true.
+       * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @return A list containing the restrictedEditorNames. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedEditorNamesList() { + restrictedEditorNames_.makeImmutable(); + return restrictedEditorNames_; + } + /** + *
+       * restricted_editor_names updates the list of restricted editor names that
+       * are not allowed to be used by workspaces in an organization. If empty, all
+       * editors are allowed. Only updates if update_restricted_editor_names is
+       * true.
+       * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @return The count of restrictedEditorNames. + */ + public int getRestrictedEditorNamesCount() { + return restrictedEditorNames_.size(); + } + /** + *
+       * restricted_editor_names updates the list of restricted editor names that
+       * are not allowed to be used by workspaces in an organization. If empty, all
+       * editors are allowed. Only updates if update_restricted_editor_names is
+       * true.
+       * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param index The index of the element to return. + * @return The restrictedEditorNames at the given index. + */ + public java.lang.String getRestrictedEditorNames(int index) { + return restrictedEditorNames_.get(index); + } + /** + *
+       * restricted_editor_names updates the list of restricted editor names that
+       * are not allowed to be used by workspaces in an organization. If empty, all
+       * editors are allowed. Only updates if update_restricted_editor_names is
+       * true.
+       * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param index The index of the value to return. + * @return The bytes of the restrictedEditorNames at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedEditorNamesBytes(int index) { + return restrictedEditorNames_.getByteString(index); + } + /** + *
+       * restricted_editor_names updates the list of restricted editor names that
+       * are not allowed to be used by workspaces in an organization. If empty, all
+       * editors are allowed. Only updates if update_restricted_editor_names is
+       * true.
+       * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param index The index to set the value at. + * @param value The restrictedEditorNames to set. + * @return This builder for chaining. + */ + public Builder setRestrictedEditorNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * restricted_editor_names updates the list of restricted editor names that
+       * are not allowed to be used by workspaces in an organization. If empty, all
+       * editors are allowed. Only updates if update_restricted_editor_names is
+       * true.
+       * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param value The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * restricted_editor_names updates the list of restricted editor names that
+       * are not allowed to be used by workspaces in an organization. If empty, all
+       * editors are allowed. Only updates if update_restricted_editor_names is
+       * true.
+       * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param values The restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedEditorNames( + java.lang.Iterable values) { + ensureRestrictedEditorNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedEditorNames_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * restricted_editor_names updates the list of restricted editor names that
+       * are not allowed to be used by workspaces in an organization. If empty, all
+       * editors are allowed. Only updates if update_restricted_editor_names is
+       * true.
+       * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @return This builder for chaining. + */ + public Builder clearRestrictedEditorNames() { + restrictedEditorNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + *
+       * restricted_editor_names updates the list of restricted editor names that
+       * are not allowed to be used by workspaces in an organization. If empty, all
+       * editors are allowed. Only updates if update_restricted_editor_names is
+       * true.
+       * 
+ * + * repeated string restricted_editor_names = 6 [json_name = "restrictedEditorNames"]; + * @param value The bytes of the restrictedEditorNames to add. + * @return This builder for chaining. + */ + public Builder addRestrictedEditorNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRestrictedEditorNamesIsMutable(); + restrictedEditorNames_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean updateRestrictedEditorNames_ ; + /** + *
+       * Specifies whether restricted_workspace_classes should be updated.
+       * 
+ * + * optional bool update_restricted_editor_names = 7 [json_name = "updateRestrictedEditorNames"]; + * @return Whether the updateRestrictedEditorNames field is set. + */ + @java.lang.Override + public boolean hasUpdateRestrictedEditorNames() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+       * Specifies whether restricted_workspace_classes should be updated.
+       * 
+ * + * optional bool update_restricted_editor_names = 7 [json_name = "updateRestrictedEditorNames"]; + * @return The updateRestrictedEditorNames. + */ + @java.lang.Override + public boolean getUpdateRestrictedEditorNames() { + return updateRestrictedEditorNames_; + } + /** + *
+       * Specifies whether restricted_workspace_classes should be updated.
+       * 
+ * + * optional bool update_restricted_editor_names = 7 [json_name = "updateRestrictedEditorNames"]; + * @param value The updateRestrictedEditorNames to set. + * @return This builder for chaining. + */ + public Builder setUpdateRestrictedEditorNames(boolean value) { + + updateRestrictedEditorNames_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * Specifies whether restricted_workspace_classes should be updated.
+       * 
+ * + * optional bool update_restricted_editor_names = 7 [json_name = "updateRestrictedEditorNames"]; + * @return This builder for chaining. + */ + public Builder clearUpdateRestrictedEditorNames() { + bitField0_ = (bitField0_ & ~0x00000020); + updateRestrictedEditorNames_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> pinnedEditorVersions_; + private com.google.protobuf.MapField + internalGetPinnedEditorVersions() { + if (pinnedEditorVersions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PinnedEditorVersionsDefaultEntryHolder.defaultEntry); + } + return pinnedEditorVersions_; + } + private com.google.protobuf.MapField + internalGetMutablePinnedEditorVersions() { + if (pinnedEditorVersions_ == null) { + pinnedEditorVersions_ = com.google.protobuf.MapField.newMapField( + PinnedEditorVersionsDefaultEntryHolder.defaultEntry); + } + if (!pinnedEditorVersions_.isMutable()) { + pinnedEditorVersions_ = pinnedEditorVersions_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return pinnedEditorVersions_; + } + public int getPinnedEditorVersionsCount() { + return internalGetPinnedEditorVersions().getMap().size(); + } + /** + *
+       * pinned_editor_versions updates the pinned version for the corresponding
+       * editor.
+       * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public boolean containsPinnedEditorVersions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetPinnedEditorVersions().getMap().containsKey(key); + } + /** + * Use {@link #getPinnedEditorVersionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getPinnedEditorVersions() { + return getPinnedEditorVersionsMap(); + } + /** + *
+       * pinned_editor_versions updates the pinned version for the corresponding
+       * editor.
+       * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public java.util.Map getPinnedEditorVersionsMap() { + return internalGetPinnedEditorVersions().getMap(); + } + /** + *
+       * pinned_editor_versions updates the pinned version for the corresponding
+       * editor.
+       * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getPinnedEditorVersionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPinnedEditorVersions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * pinned_editor_versions updates the pinned version for the corresponding
+       * editor.
+       * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + @java.lang.Override + public java.lang.String getPinnedEditorVersionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPinnedEditorVersions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearPinnedEditorVersions() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutablePinnedEditorVersions().getMutableMap() + .clear(); + return this; + } + /** + *
+       * pinned_editor_versions updates the pinned version for the corresponding
+       * editor.
+       * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + public Builder removePinnedEditorVersions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutablePinnedEditorVersions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePinnedEditorVersions() { + bitField0_ |= 0x00000040; + return internalGetMutablePinnedEditorVersions().getMutableMap(); + } + /** + *
+       * pinned_editor_versions updates the pinned version for the corresponding
+       * editor.
+       * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + public Builder putPinnedEditorVersions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutablePinnedEditorVersions().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * pinned_editor_versions updates the pinned version for the corresponding
+       * editor.
+       * 
+ * + * map<string, string> pinned_editor_versions = 8 [json_name = "pinnedEditorVersions"]; + */ + public Builder putAllPinnedEditorVersions( + java.util.Map values) { + internalGetMutablePinnedEditorVersions().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private boolean updatePinnedEditorVersions_ ; + /** + *
+       * Specifies whether pinned_editor_versions should be updated.
+       * 
+ * + * optional bool update_pinned_editor_versions = 9 [json_name = "updatePinnedEditorVersions"]; + * @return Whether the updatePinnedEditorVersions field is set. + */ + @java.lang.Override + public boolean hasUpdatePinnedEditorVersions() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+       * Specifies whether pinned_editor_versions should be updated.
+       * 
+ * + * optional bool update_pinned_editor_versions = 9 [json_name = "updatePinnedEditorVersions"]; + * @return The updatePinnedEditorVersions. + */ + @java.lang.Override + public boolean getUpdatePinnedEditorVersions() { + return updatePinnedEditorVersions_; + } + /** + *
+       * Specifies whether pinned_editor_versions should be updated.
+       * 
+ * + * optional bool update_pinned_editor_versions = 9 [json_name = "updatePinnedEditorVersions"]; + * @param value The updatePinnedEditorVersions to set. + * @return This builder for chaining. + */ + public Builder setUpdatePinnedEditorVersions(boolean value) { + + updatePinnedEditorVersions_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * Specifies whether pinned_editor_versions should be updated.
+       * 
+ * + * optional bool update_pinned_editor_versions = 9 [json_name = "updatePinnedEditorVersions"]; + * @return This builder for chaining. + */ + public Builder clearUpdatePinnedEditorVersions() { + bitField0_ = (bitField0_ & ~0x00000080); + updatePinnedEditorVersions_ = false; + onChanged(); + return this; + } + + private java.lang.Object defaultRole_ = ""; + /** + *
+       * default_role is the default role for new members in the organization.
+       * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return Whether the defaultRole field is set. + */ + public boolean hasDefaultRole() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+       * default_role is the default role for new members in the organization.
+       * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return The defaultRole. + */ + public java.lang.String getDefaultRole() { + java.lang.Object ref = defaultRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * default_role is the default role for new members in the organization.
+       * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return The bytes for defaultRole. + */ + public com.google.protobuf.ByteString + getDefaultRoleBytes() { + java.lang.Object ref = defaultRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * default_role is the default role for new members in the organization.
+       * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @param value The defaultRole to set. + * @return This builder for chaining. + */ + public Builder setDefaultRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + defaultRole_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * default_role is the default role for new members in the organization.
+       * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @return This builder for chaining. + */ + public Builder clearDefaultRole() { + defaultRole_ = getDefaultInstance().getDefaultRole(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+       * default_role is the default role for new members in the organization.
+       * 
+ * + * optional string default_role = 10 [json_name = "defaultRole"]; + * @param value The bytes for defaultRole to set. + * @return This builder for chaining. + */ + public Builder setDefaultRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + defaultRole_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateOrganizationSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateOrganizationSettingsRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateOrganizationSettingsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateOrganizationSettingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * settings are the updated settings
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return Whether the settings field is set. + */ + boolean hasSettings(); + /** + *
+     * settings are the updated settings
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return The settings. + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings getSettings(); + /** + *
+     * settings are the updated settings
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder getSettingsOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationSettingsResponse} + */ + public static final class UpdateOrganizationSettingsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateOrganizationSettingsResponse) + UpdateOrganizationSettingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateOrganizationSettingsResponse.class.getName()); + } + // Use UpdateOrganizationSettingsResponse.newBuilder() to construct. + private UpdateOrganizationSettingsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateOrganizationSettingsResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse.Builder.class); + } + + private int bitField0_; + public static final int SETTINGS_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings settings_; + /** + *
+     * settings are the updated settings
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return Whether the settings field is set. + */ + @java.lang.Override + public boolean hasSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * settings are the updated settings
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return The settings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings getSettings() { + return settings_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance() : settings_; + } + /** + *
+     * settings are the updated settings
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder getSettingsOrBuilder() { + return settings_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance() : settings_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse) obj; + + if (hasSettings() != other.hasSettings()) return false; + if (hasSettings()) { + if (!getSettings() + .equals(other.getSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSettings()) { + hash = (37 * hash) + SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationSettingsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateOrganizationSettingsResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.settings_ = settingsBuilder_ == null + ? settings_ + : settingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse.getDefaultInstance()) return this; + if (other.hasSettings()) { + mergeSettings(other.getSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings settings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder> settingsBuilder_; + /** + *
+       * settings are the updated settings
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return Whether the settings field is set. + */ + public boolean hasSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * settings are the updated settings
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return The settings. + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings getSettings() { + if (settingsBuilder_ == null) { + return settings_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance() : settings_; + } else { + return settingsBuilder_.getMessage(); + } + } + /** + *
+       * settings are the updated settings
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public Builder setSettings(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + settings_ = value; + } else { + settingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * settings are the updated settings
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public Builder setSettings( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder builderForValue) { + if (settingsBuilder_ == null) { + settings_ = builderForValue.build(); + } else { + settingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * settings are the updated settings
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public Builder mergeSettings(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings value) { + if (settingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + settings_ != null && + settings_ != io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance()) { + getSettingsBuilder().mergeFrom(value); + } else { + settings_ = value; + } + } else { + settingsBuilder_.mergeFrom(value); + } + if (settings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * settings are the updated settings
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public Builder clearSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * settings are the updated settings
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder getSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSettingsFieldBuilder().getBuilder(); + } + /** + *
+       * settings are the updated settings
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder getSettingsOrBuilder() { + if (settingsBuilder_ != null) { + return settingsBuilder_.getMessageOrBuilder(); + } else { + return settings_ == null ? + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance() : settings_; + } + } + /** + *
+       * settings are the updated settings
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder> + getSettingsFieldBuilder() { + if (settingsBuilder_ == null) { + settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder>( + getSettings(), + getParentForChildren(), + isClean()); + settings_ = null; + } + return settingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateOrganizationSettingsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateOrganizationSettingsResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationSettingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrganizationSettingsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the ID of the organization to retrieve the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization to retrieve the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationSettingsRequest} + */ + public static final class GetOrganizationSettingsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetOrganizationSettingsRequest) + GetOrganizationSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOrganizationSettingsRequest.class.getName()); + } + // Use GetOrganizationSettingsRequest.newBuilder() to construct. + private GetOrganizationSettingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOrganizationSettingsRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest.Builder.class); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization to retrieve the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization to retrieve the settings for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationSettingsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetOrganizationSettingsRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization to retrieve the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to retrieve the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to retrieve the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to retrieve the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to retrieve the settings for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOrganizationSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetOrganizationSettingsRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrganizationSettingsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetOrganizationSettingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * settings are the settings of the organization
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return Whether the settings field is set. + */ + boolean hasSettings(); + /** + *
+     * settings are the settings of the organization
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return The settings. + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings getSettings(); + /** + *
+     * settings are the settings of the organization
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder getSettingsOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationSettingsResponse} + */ + public static final class GetOrganizationSettingsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetOrganizationSettingsResponse) + GetOrganizationSettingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOrganizationSettingsResponse.class.getName()); + } + // Use GetOrganizationSettingsResponse.newBuilder() to construct. + private GetOrganizationSettingsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOrganizationSettingsResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse.Builder.class); + } + + private int bitField0_; + public static final int SETTINGS_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings settings_; + /** + *
+     * settings are the settings of the organization
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return Whether the settings field is set. + */ + @java.lang.Override + public boolean hasSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * settings are the settings of the organization
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return The settings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings getSettings() { + return settings_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance() : settings_; + } + /** + *
+     * settings are the settings of the organization
+     * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder getSettingsOrBuilder() { + return settings_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance() : settings_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse) obj; + + if (hasSettings() != other.hasSettings()) return false; + if (hasSettings()) { + if (!getSettings() + .equals(other.getSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSettings()) { + hash = (37 * hash) + SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationSettingsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetOrganizationSettingsResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationSettingsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.settings_ = settingsBuilder_ == null + ? settings_ + : settingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse.getDefaultInstance()) return this; + if (other.hasSettings()) { + mergeSettings(other.getSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings settings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder> settingsBuilder_; + /** + *
+       * settings are the settings of the organization
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return Whether the settings field is set. + */ + public boolean hasSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * settings are the settings of the organization
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + * @return The settings. + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings getSettings() { + if (settingsBuilder_ == null) { + return settings_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance() : settings_; + } else { + return settingsBuilder_.getMessage(); + } + } + /** + *
+       * settings are the settings of the organization
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public Builder setSettings(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + settings_ = value; + } else { + settingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * settings are the settings of the organization
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public Builder setSettings( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder builderForValue) { + if (settingsBuilder_ == null) { + settings_ = builderForValue.build(); + } else { + settingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * settings are the settings of the organization
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public Builder mergeSettings(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings value) { + if (settingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + settings_ != null && + settings_ != io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance()) { + getSettingsBuilder().mergeFrom(value); + } else { + settings_ = value; + } + } else { + settingsBuilder_.mergeFrom(value); + } + if (settings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * settings are the settings of the organization
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public Builder clearSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * settings are the settings of the organization
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder getSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSettingsFieldBuilder().getBuilder(); + } + /** + *
+       * settings are the settings of the organization
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder getSettingsOrBuilder() { + if (settingsBuilder_ != null) { + return settingsBuilder_.getMessageOrBuilder(); + } else { + return settings_ == null ? + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.getDefaultInstance() : settings_; + } + } + /** + *
+       * settings are the settings of the organization
+       * 
+ * + * .gitpod.v1.OrganizationSettings settings = 1 [json_name = "settings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder> + getSettingsFieldBuilder() { + if (settingsBuilder_ == null) { + settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettings.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationSettingsOrBuilder>( + getSettings(), + getParentForChildren(), + isClean()); + settings_ = null; + } + return settingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOrganizationSettingsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetOrganizationSettingsResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSettingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateOrganizationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateOrganizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * name is the organization name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the organization name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + * Protobuf type {@code gitpod.v1.CreateOrganizationRequest} + */ + public static final class CreateOrganizationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateOrganizationRequest) + CreateOrganizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateOrganizationRequest.class.getName()); + } + // Use CreateOrganizationRequest.newBuilder() to construct. + private CreateOrganizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateOrganizationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the organization name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the organization name
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateOrganizationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateOrganizationRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * name is the organization name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the organization name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the organization name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * name is the organization name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * name is the organization name
+       * 
+ * + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateOrganizationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateOrganizationRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOrganizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateOrganizationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateOrganizationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization is the created organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + boolean hasOrganization(); + /** + *
+     * organization is the created organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return The organization. + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganization(); + /** + *
+     * organization is the created organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateOrganizationResponse} + */ + public static final class CreateOrganizationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateOrganizationResponse) + CreateOrganizationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateOrganizationResponse.class.getName()); + } + // Use CreateOrganizationResponse.newBuilder() to construct. + private CreateOrganizationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateOrganizationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.OrganizationOuterClass.Organization organization_; + /** + *
+     * organization is the created organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + @java.lang.Override + public boolean hasOrganization() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * organization is the created organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return The organization. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganization() { + return organization_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } + /** + *
+     * organization is the created organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationOrBuilder() { + return organization_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOrganization()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOrganization()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse) obj; + + if (hasOrganization() != other.hasOrganization()) return false; + if (hasOrganization()) { + if (!getOrganization() + .equals(other.getOrganization())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOrganization()) { + hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateOrganizationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateOrganizationResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getOrganizationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_CreateOrganizationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organization_ = organizationBuilder_ == null + ? organization_ + : organizationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse.getDefaultInstance()) return this; + if (other.hasOrganization()) { + mergeOrganization(other.getOrganization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getOrganizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.OrganizationOuterClass.Organization organization_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder> organizationBuilder_; + /** + *
+       * organization is the created organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + public boolean hasOrganization() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * organization is the created organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return The organization. + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganization() { + if (organizationBuilder_ == null) { + return organization_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } else { + return organizationBuilder_.getMessage(); + } + } + /** + *
+       * organization is the created organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder setOrganization(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization value) { + if (organizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + } else { + organizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization is the created organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder setOrganization( + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder builderForValue) { + if (organizationBuilder_ == null) { + organization_ = builderForValue.build(); + } else { + organizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization is the created organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder mergeOrganization(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization value) { + if (organizationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + organization_ != null && + organization_ != io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance()) { + getOrganizationBuilder().mergeFrom(value); + } else { + organization_ = value; + } + } else { + organizationBuilder_.mergeFrom(value); + } + if (organization_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * organization is the created organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder clearOrganization() { + bitField0_ = (bitField0_ & ~0x00000001); + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * organization is the created organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder getOrganizationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOrganizationFieldBuilder().getBuilder(); + } + /** + *
+       * organization is the created organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationOrBuilder() { + if (organizationBuilder_ != null) { + return organizationBuilder_.getMessageOrBuilder(); + } else { + return organization_ == null ? + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } + } + /** + *
+       * organization is the created organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder> + getOrganizationFieldBuilder() { + if (organizationBuilder_ == null) { + organizationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder>( + getOrganization(), + getParentForChildren(), + isClean()); + organization_ = null; + } + return organizationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateOrganizationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateOrganizationResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOrganizationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrganizationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetOrganizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the unique identifier of the Organization to retreive.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the unique identifier of the Organization to retreive.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationRequest} + */ + public static final class GetOrganizationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetOrganizationRequest) + GetOrganizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOrganizationRequest.class.getName()); + } + // Use GetOrganizationRequest.newBuilder() to construct. + private GetOrganizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOrganizationRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest.Builder.class); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the unique identifier of the Organization to retreive.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the unique identifier of the Organization to retreive.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetOrganizationRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the unique identifier of the Organization to retreive.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the unique identifier of the Organization to retreive.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the unique identifier of the Organization to retreive.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the unique identifier of the Organization to retreive.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the unique identifier of the Organization to retreive.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOrganizationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetOrganizationRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrganizationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetOrganizationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization is the requested organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + boolean hasOrganization(); + /** + *
+     * organization is the requested organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return The organization. + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganization(); + /** + *
+     * organization is the requested organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationResponse} + */ + public static final class GetOrganizationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetOrganizationResponse) + GetOrganizationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOrganizationResponse.class.getName()); + } + // Use GetOrganizationResponse.newBuilder() to construct. + private GetOrganizationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOrganizationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.OrganizationOuterClass.Organization organization_; + /** + *
+     * organization is the requested organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + @java.lang.Override + public boolean hasOrganization() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * organization is the requested organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return The organization. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganization() { + return organization_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } + /** + *
+     * organization is the requested organization
+     * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationOrBuilder() { + return organization_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOrganization()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOrganization()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse) obj; + + if (hasOrganization() != other.hasOrganization()) return false; + if (hasOrganization()) { + if (!getOrganization() + .equals(other.getOrganization())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOrganization()) { + hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetOrganizationResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getOrganizationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organization_ = organizationBuilder_ == null + ? organization_ + : organizationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse.getDefaultInstance()) return this; + if (other.hasOrganization()) { + mergeOrganization(other.getOrganization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getOrganizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.OrganizationOuterClass.Organization organization_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder> organizationBuilder_; + /** + *
+       * organization is the requested organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + public boolean hasOrganization() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * organization is the requested organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + * @return The organization. + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganization() { + if (organizationBuilder_ == null) { + return organization_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } else { + return organizationBuilder_.getMessage(); + } + } + /** + *
+       * organization is the requested organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder setOrganization(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization value) { + if (organizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + } else { + organizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization is the requested organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder setOrganization( + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder builderForValue) { + if (organizationBuilder_ == null) { + organization_ = builderForValue.build(); + } else { + organizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization is the requested organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder mergeOrganization(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization value) { + if (organizationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + organization_ != null && + organization_ != io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance()) { + getOrganizationBuilder().mergeFrom(value); + } else { + organization_ = value; + } + } else { + organizationBuilder_.mergeFrom(value); + } + if (organization_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * organization is the requested organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public Builder clearOrganization() { + bitField0_ = (bitField0_ & ~0x00000001); + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * organization is the requested organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder getOrganizationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOrganizationFieldBuilder().getBuilder(); + } + /** + *
+       * organization is the requested organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationOrBuilder() { + if (organizationBuilder_ != null) { + return organizationBuilder_.getMessageOrBuilder(); + } else { + return organization_ == null ? + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance() : organization_; + } + } + /** + *
+       * organization is the requested organization
+       * 
+ * + * .gitpod.v1.Organization organization = 1 [json_name = "organization"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder> + getOrganizationFieldBuilder() { + if (organizationBuilder_ == null) { + organizationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder>( + getOrganization(), + getParentForChildren(), + isClean()); + organization_ = null; + } + return organizationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOrganizationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetOrganizationResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOrganizationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + *
+     * scope is the scope of the organizations to list
+     * 
+ * + * .gitpod.v1.ListOrganizationsRequest.Scope scope = 2 [json_name = "scope"]; + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + *
+     * scope is the scope of the organizations to list
+     * 
+ * + * .gitpod.v1.ListOrganizationsRequest.Scope scope = 2 [json_name = "scope"]; + * @return The scope. + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope getScope(); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationsRequest} + */ + public static final class ListOrganizationsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationsRequest) + ListOrganizationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListOrganizationsRequest.class.getName()); + } + // Use ListOrganizationsRequest.newBuilder() to construct. + private ListOrganizationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListOrganizationsRequest() { + scope_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Builder.class); + } + + /** + * Protobuf enum {@code gitpod.v1.ListOrganizationsRequest.Scope} + */ + public enum Scope + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SCOPE_UNSPECIFIED = 0; + */ + SCOPE_UNSPECIFIED(0), + /** + * SCOPE_MEMBER = 1; + */ + SCOPE_MEMBER(1), + /** + * SCOPE_ALL = 2; + */ + SCOPE_ALL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Scope.class.getName()); + } + /** + * SCOPE_UNSPECIFIED = 0; + */ + public static final int SCOPE_UNSPECIFIED_VALUE = 0; + /** + * SCOPE_MEMBER = 1; + */ + public static final int SCOPE_MEMBER_VALUE = 1; + /** + * SCOPE_ALL = 2; + */ + public static final int SCOPE_ALL_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Scope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Scope forNumber(int value) { + switch (value) { + case 0: return SCOPE_UNSPECIFIED; + case 1: return SCOPE_MEMBER; + case 2: return SCOPE_ALL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Scope> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scope findValueByNumber(int number) { + return Scope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.ListOrganizationsRequest.Scope) + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int SCOPE_FIELD_NUMBER = 2; + private int scope_ = 0; + /** + *
+     * scope is the scope of the organizations to list
+     * 
+ * + * .gitpod.v1.ListOrganizationsRequest.Scope scope = 2 [json_name = "scope"]; + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override public int getScopeValue() { + return scope_; + } + /** + *
+     * scope is the scope of the organizations to list
+     * 
+ * + * .gitpod.v1.ListOrganizationsRequest.Scope scope = 2 [json_name = "scope"]; + * @return The scope. + */ + @java.lang.Override public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope getScope() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope result = io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope.forNumber(scope_); + return result == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (scope_ != io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope.SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, scope_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (scope_ != io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope.SCOPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, scope_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (scope_ != other.scope_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationsRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + scope_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scope_ = scope_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + scope_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private int scope_ = 0; + /** + *
+       * scope is the scope of the organizations to list
+       * 
+ * + * .gitpod.v1.ListOrganizationsRequest.Scope scope = 2 [json_name = "scope"]; + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override public int getScopeValue() { + return scope_; + } + /** + *
+       * scope is the scope of the organizations to list
+       * 
+ * + * .gitpod.v1.ListOrganizationsRequest.Scope scope = 2 [json_name = "scope"]; + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * scope is the scope of the organizations to list
+       * 
+ * + * .gitpod.v1.ListOrganizationsRequest.Scope scope = 2 [json_name = "scope"]; + * @return The scope. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope getScope() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope result = io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope.forNumber(scope_); + return result == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope.UNRECOGNIZED : result; + } + /** + *
+       * scope is the scope of the organizations to list
+       * 
+ * + * .gitpod.v1.ListOrganizationsRequest.Scope scope = 2 [json_name = "scope"]; + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * scope is the scope of the organizations to list
+       * 
+ * + * .gitpod.v1.ListOrganizationsRequest.Scope scope = 2 [json_name = "scope"]; + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000002); + scope_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationsRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOrganizationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + java.util.List + getOrganizationsList(); + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganizations(int index); + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + int getOrganizationsCount(); + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + java.util.List + getOrganizationsOrBuilderList(); + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationsOrBuilder( + int index); + + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationsResponse} + */ + public static final class ListOrganizationsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationsResponse) + ListOrganizationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListOrganizationsResponse.class.getName()); + } + // Use ListOrganizationsResponse.newBuilder() to construct. + private ListOrganizationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListOrganizationsResponse() { + organizations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List organizations_; + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + @java.lang.Override + public java.util.List getOrganizationsList() { + return organizations_; + } + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + @java.lang.Override + public java.util.List + getOrganizationsOrBuilderList() { + return organizations_; + } + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + @java.lang.Override + public int getOrganizationsCount() { + return organizations_.size(); + } + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganizations(int index) { + return organizations_.get(index); + } + /** + *
+     * organizations are the organizations that matched the query
+     * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationsOrBuilder( + int index) { + return organizations_.get(index); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing organizations
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < organizations_.size(); i++) { + output.writeMessage(1, organizations_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < organizations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, organizations_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse) obj; + + if (!getOrganizationsList() + .equals(other.getOrganizationsList())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOrganizationsCount() > 0) { + hash = (37 * hash) + ORGANIZATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationsList().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationsResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getOrganizationsFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (organizationsBuilder_ == null) { + organizations_ = java.util.Collections.emptyList(); + } else { + organizations_ = null; + organizationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse result) { + if (organizationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + organizations_ = java.util.Collections.unmodifiableList(organizations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.organizations_ = organizations_; + } else { + result.organizations_ = organizationsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse.getDefaultInstance()) return this; + if (organizationsBuilder_ == null) { + if (!other.organizations_.isEmpty()) { + if (organizations_.isEmpty()) { + organizations_ = other.organizations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOrganizationsIsMutable(); + organizations_.addAll(other.organizations_); + } + onChanged(); + } + } else { + if (!other.organizations_.isEmpty()) { + if (organizationsBuilder_.isEmpty()) { + organizationsBuilder_.dispose(); + organizationsBuilder_ = null; + organizations_ = other.organizations_; + bitField0_ = (bitField0_ & ~0x00000001); + organizationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getOrganizationsFieldBuilder() : null; + } else { + organizationsBuilder_.addAllMessages(other.organizations_); + } + } + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization m = + input.readMessage( + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.parser(), + extensionRegistry); + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.add(m); + } else { + organizationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List organizations_ = + java.util.Collections.emptyList(); + private void ensureOrganizationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + organizations_ = new java.util.ArrayList(organizations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder> organizationsBuilder_; + + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public java.util.List getOrganizationsList() { + if (organizationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(organizations_); + } else { + return organizationsBuilder_.getMessageList(); + } + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public int getOrganizationsCount() { + if (organizationsBuilder_ == null) { + return organizations_.size(); + } else { + return organizationsBuilder_.getCount(); + } + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization getOrganizations(int index) { + if (organizationsBuilder_ == null) { + return organizations_.get(index); + } else { + return organizationsBuilder_.getMessage(index); + } + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public Builder setOrganizations( + int index, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization value) { + if (organizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrganizationsIsMutable(); + organizations_.set(index, value); + onChanged(); + } else { + organizationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public Builder setOrganizations( + int index, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder builderForValue) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.set(index, builderForValue.build()); + onChanged(); + } else { + organizationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public Builder addOrganizations(io.gitpod.publicapi.v1.OrganizationOuterClass.Organization value) { + if (organizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrganizationsIsMutable(); + organizations_.add(value); + onChanged(); + } else { + organizationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public Builder addOrganizations( + int index, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization value) { + if (organizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrganizationsIsMutable(); + organizations_.add(index, value); + onChanged(); + } else { + organizationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public Builder addOrganizations( + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder builderForValue) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.add(builderForValue.build()); + onChanged(); + } else { + organizationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public Builder addOrganizations( + int index, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder builderForValue) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.add(index, builderForValue.build()); + onChanged(); + } else { + organizationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public Builder addAllOrganizations( + java.lang.Iterable values) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, organizations_); + onChanged(); + } else { + organizationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public Builder clearOrganizations() { + if (organizationsBuilder_ == null) { + organizations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + organizationsBuilder_.clear(); + } + return this; + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public Builder removeOrganizations(int index) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.remove(index); + onChanged(); + } else { + organizationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder getOrganizationsBuilder( + int index) { + return getOrganizationsFieldBuilder().getBuilder(index); + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder getOrganizationsOrBuilder( + int index) { + if (organizationsBuilder_ == null) { + return organizations_.get(index); } else { + return organizationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public java.util.List + getOrganizationsOrBuilderList() { + if (organizationsBuilder_ != null) { + return organizationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(organizations_); + } + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder addOrganizationsBuilder() { + return getOrganizationsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance()); + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder addOrganizationsBuilder( + int index) { + return getOrganizationsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.getDefaultInstance()); + } + /** + *
+       * organizations are the organizations that matched the query
+       * 
+ * + * repeated .gitpod.v1.Organization organizations = 1 [json_name = "organizations"]; + */ + public java.util.List + getOrganizationsBuilderList() { + return getOrganizationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder> + getOrganizationsFieldBuilder() { + if (organizationsBuilder_ == null) { + organizationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.Organization, io.gitpod.publicapi.v1.OrganizationOuterClass.Organization.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationOrBuilder>( + organizations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + organizations_ = null; + } + return organizationsBuilder_; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing organizations
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationsResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteOrganizationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteOrganizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the ID of the organization to delete
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization to delete
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteOrganizationRequest} + */ + public static final class DeleteOrganizationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteOrganizationRequest) + DeleteOrganizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteOrganizationRequest.class.getName()); + } + // Use DeleteOrganizationRequest.newBuilder() to construct. + private DeleteOrganizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteOrganizationRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest.Builder.class); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization to delete
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization to delete
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteOrganizationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteOrganizationRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization to delete
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to delete
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to delete
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to delete
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to delete
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteOrganizationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteOrganizationRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOrganizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteOrganizationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteOrganizationResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteOrganizationResponse} + */ + public static final class DeleteOrganizationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteOrganizationResponse) + DeleteOrganizationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteOrganizationResponse.class.getName()); + } + // Use DeleteOrganizationResponse.newBuilder() to construct. + private DeleteOrganizationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteOrganizationResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteOrganizationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteOrganizationResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteOrganizationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteOrganizationResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOrganizationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrganizationInvitationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetOrganizationInvitationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the ID of the organization to retrieve the invitation
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization to retrieve the invitation
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationInvitationRequest} + */ + public static final class GetOrganizationInvitationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetOrganizationInvitationRequest) + GetOrganizationInvitationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOrganizationInvitationRequest.class.getName()); + } + // Use GetOrganizationInvitationRequest.newBuilder() to construct. + private GetOrganizationInvitationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOrganizationInvitationRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest.Builder.class); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization to retrieve the invitation
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization to retrieve the invitation
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationInvitationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetOrganizationInvitationRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization to retrieve the invitation
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to retrieve the invitation
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to retrieve the invitation
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to retrieve the invitation
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to retrieve the invitation
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOrganizationInvitationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetOrganizationInvitationRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationInvitationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrganizationInvitationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetOrganizationInvitationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * invitation_id is the invitation ID for an Organization
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + java.lang.String getInvitationId(); + /** + *
+     * invitation_id is the invitation ID for an Organization
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + com.google.protobuf.ByteString + getInvitationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationInvitationResponse} + */ + public static final class GetOrganizationInvitationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetOrganizationInvitationResponse) + GetOrganizationInvitationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetOrganizationInvitationResponse.class.getName()); + } + // Use GetOrganizationInvitationResponse.newBuilder() to construct. + private GetOrganizationInvitationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetOrganizationInvitationResponse() { + invitationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse.Builder.class); + } + + public static final int INVITATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object invitationId_ = ""; + /** + *
+     * invitation_id is the invitation ID for an Organization
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + @java.lang.Override + public java.lang.String getInvitationId() { + java.lang.Object ref = invitationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invitationId_ = s; + return s; + } + } + /** + *
+     * invitation_id is the invitation ID for an Organization
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInvitationIdBytes() { + java.lang.Object ref = invitationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + invitationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invitationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, invitationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invitationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, invitationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse) obj; + + if (!getInvitationId() + .equals(other.getInvitationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INVITATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getInvitationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetOrganizationInvitationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetOrganizationInvitationResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + invitationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_GetOrganizationInvitationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.invitationId_ = invitationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse.getDefaultInstance()) return this; + if (!other.getInvitationId().isEmpty()) { + invitationId_ = other.invitationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + invitationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object invitationId_ = ""; + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + public java.lang.String getInvitationId() { + java.lang.Object ref = invitationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invitationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + public com.google.protobuf.ByteString + getInvitationIdBytes() { + java.lang.Object ref = invitationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + invitationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @param value The invitationId to set. + * @return This builder for chaining. + */ + public Builder setInvitationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + invitationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return This builder for chaining. + */ + public Builder clearInvitationId() { + invitationId_ = getDefaultInstance().getInvitationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @param value The bytes for invitationId to set. + * @return This builder for chaining. + */ + public Builder setInvitationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + invitationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetOrganizationInvitationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetOrganizationInvitationResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationInvitationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface JoinOrganizationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.JoinOrganizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * invitation_id is the invitation ID for an Organization
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + java.lang.String getInvitationId(); + /** + *
+     * invitation_id is the invitation ID for an Organization
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + com.google.protobuf.ByteString + getInvitationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.JoinOrganizationRequest} + */ + public static final class JoinOrganizationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.JoinOrganizationRequest) + JoinOrganizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + JoinOrganizationRequest.class.getName()); + } + // Use JoinOrganizationRequest.newBuilder() to construct. + private JoinOrganizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private JoinOrganizationRequest() { + invitationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest.Builder.class); + } + + public static final int INVITATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object invitationId_ = ""; + /** + *
+     * invitation_id is the invitation ID for an Organization
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + @java.lang.Override + public java.lang.String getInvitationId() { + java.lang.Object ref = invitationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invitationId_ = s; + return s; + } + } + /** + *
+     * invitation_id is the invitation ID for an Organization
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInvitationIdBytes() { + java.lang.Object ref = invitationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + invitationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invitationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, invitationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invitationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, invitationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest) obj; + + if (!getInvitationId() + .equals(other.getInvitationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INVITATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getInvitationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.JoinOrganizationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.JoinOrganizationRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + invitationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.invitationId_ = invitationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest.getDefaultInstance()) return this; + if (!other.getInvitationId().isEmpty()) { + invitationId_ = other.invitationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + invitationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object invitationId_ = ""; + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + public java.lang.String getInvitationId() { + java.lang.Object ref = invitationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invitationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + public com.google.protobuf.ByteString + getInvitationIdBytes() { + java.lang.Object ref = invitationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + invitationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @param value The invitationId to set. + * @return This builder for chaining. + */ + public Builder setInvitationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + invitationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return This builder for chaining. + */ + public Builder clearInvitationId() { + invitationId_ = getDefaultInstance().getInvitationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * invitation_id is the invitation ID for an Organization
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @param value The bytes for invitationId to set. + * @return This builder for chaining. + */ + public Builder setInvitationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + invitationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.JoinOrganizationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.JoinOrganizationRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JoinOrganizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface JoinOrganizationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.JoinOrganizationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the id of the organization the user has just joined
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the id of the organization the user has just joined
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.JoinOrganizationResponse} + */ + public static final class JoinOrganizationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.JoinOrganizationResponse) + JoinOrganizationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + JoinOrganizationResponse.class.getName()); + } + // Use JoinOrganizationResponse.newBuilder() to construct. + private JoinOrganizationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private JoinOrganizationResponse() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse.Builder.class); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the id of the organization the user has just joined
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the id of the organization the user has just joined
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.JoinOrganizationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.JoinOrganizationResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_JoinOrganizationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the id of the organization the user has just joined
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the id of the organization the user has just joined
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the id of the organization the user has just joined
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the id of the organization the user has just joined
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the id of the organization the user has just joined
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.JoinOrganizationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.JoinOrganizationResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JoinOrganizationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResetOrganizationInvitationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ResetOrganizationInvitationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the ID of the organization to reset the invitation for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization to reset the invitation for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ResetOrganizationInvitationRequest} + */ + public static final class ResetOrganizationInvitationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ResetOrganizationInvitationRequest) + ResetOrganizationInvitationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ResetOrganizationInvitationRequest.class.getName()); + } + // Use ResetOrganizationInvitationRequest.newBuilder() to construct. + private ResetOrganizationInvitationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResetOrganizationInvitationRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest.Builder.class); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization to reset the invitation for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization to reset the invitation for.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ResetOrganizationInvitationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ResetOrganizationInvitationRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization to reset the invitation for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to reset the invitation for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization to reset the invitation for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to reset the invitation for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization to reset the invitation for.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ResetOrganizationInvitationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ResetOrganizationInvitationRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetOrganizationInvitationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResetOrganizationInvitationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ResetOrganizationInvitationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * invitation_id is the new invitation id for the organization.
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + java.lang.String getInvitationId(); + /** + *
+     * invitation_id is the new invitation id for the organization.
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + com.google.protobuf.ByteString + getInvitationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ResetOrganizationInvitationResponse} + */ + public static final class ResetOrganizationInvitationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ResetOrganizationInvitationResponse) + ResetOrganizationInvitationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ResetOrganizationInvitationResponse.class.getName()); + } + // Use ResetOrganizationInvitationResponse.newBuilder() to construct. + private ResetOrganizationInvitationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResetOrganizationInvitationResponse() { + invitationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse.Builder.class); + } + + public static final int INVITATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object invitationId_ = ""; + /** + *
+     * invitation_id is the new invitation id for the organization.
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + @java.lang.Override + public java.lang.String getInvitationId() { + java.lang.Object ref = invitationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invitationId_ = s; + return s; + } + } + /** + *
+     * invitation_id is the new invitation id for the organization.
+     * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInvitationIdBytes() { + java.lang.Object ref = invitationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + invitationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invitationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, invitationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invitationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, invitationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse) obj; + + if (!getInvitationId() + .equals(other.getInvitationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INVITATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getInvitationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ResetOrganizationInvitationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ResetOrganizationInvitationResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + invitationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ResetOrganizationInvitationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.invitationId_ = invitationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse.getDefaultInstance()) return this; + if (!other.getInvitationId().isEmpty()) { + invitationId_ = other.invitationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + invitationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object invitationId_ = ""; + /** + *
+       * invitation_id is the new invitation id for the organization.
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The invitationId. + */ + public java.lang.String getInvitationId() { + java.lang.Object ref = invitationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invitationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * invitation_id is the new invitation id for the organization.
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return The bytes for invitationId. + */ + public com.google.protobuf.ByteString + getInvitationIdBytes() { + java.lang.Object ref = invitationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + invitationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * invitation_id is the new invitation id for the organization.
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @param value The invitationId to set. + * @return This builder for chaining. + */ + public Builder setInvitationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + invitationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * invitation_id is the new invitation id for the organization.
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @return This builder for chaining. + */ + public Builder clearInvitationId() { + invitationId_ = getDefaultInstance().getInvitationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * invitation_id is the new invitation id for the organization.
+       * 
+ * + * string invitation_id = 1 [json_name = "invitationId"]; + * @param value The bytes for invitationId to set. + * @return This builder for chaining. + */ + public Builder setInvitationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + invitationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ResetOrganizationInvitationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ResetOrganizationInvitationResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetOrganizationInvitationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOrganizationMembersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationMembersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the ID of the organization that contains the members to
+     * list
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization that contains the members to
+     * list
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationMembersRequest} + */ + public static final class ListOrganizationMembersRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationMembersRequest) + ListOrganizationMembersRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListOrganizationMembersRequest.class.getName()); + } + // Use ListOrganizationMembersRequest.newBuilder() to construct. + private ListOrganizationMembersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListOrganizationMembersRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization that contains the members to
+     * list
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization that contains the members to
+     * list
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationMembersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationMembersRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization that contains the members to
+       * list
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization that contains the members to
+       * list
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization that contains the members to
+       * list
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization that contains the members to
+       * list
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization that contains the members to
+       * list
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationMembersRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationMembersRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationMembersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOrganizationMembersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationMembersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + java.util.List + getMembersList(); + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember getMembers(int index); + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + int getMembersCount(); + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + java.util.List + getMembersOrBuilderList(); + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder getMembersOrBuilder( + int index); + + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationMembersResponse} + */ + public static final class ListOrganizationMembersResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationMembersResponse) + ListOrganizationMembersResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListOrganizationMembersResponse.class.getName()); + } + // Use ListOrganizationMembersResponse.newBuilder() to construct. + private ListOrganizationMembersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListOrganizationMembersResponse() { + members_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse.Builder.class); + } + + private int bitField0_; + public static final int MEMBERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List members_; + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public java.util.List getMembersList() { + return members_; + } + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public java.util.List + getMembersOrBuilderList() { + return members_; + } + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public int getMembersCount() { + return members_.size(); + } + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember getMembers(int index) { + return members_.get(index); + } + /** + *
+     * members are the organization members of this Organization
+     * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder getMembersOrBuilder( + int index) { + return members_.get(index); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < members_.size(); i++) { + output.writeMessage(1, members_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < members_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, members_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse) obj; + + if (!getMembersList() + .equals(other.getMembersList())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMembersCount() > 0) { + hash = (37 * hash) + MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getMembersList().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationMembersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationMembersResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getMembersFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + } else { + members_ = null; + membersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_ListOrganizationMembersResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse result) { + if (membersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.members_ = members_; + } else { + result.members_ = membersBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse.getDefaultInstance()) return this; + if (membersBuilder_ == null) { + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + } else { + if (!other.members_.isEmpty()) { + if (membersBuilder_.isEmpty()) { + membersBuilder_.dispose(); + membersBuilder_ = null; + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + membersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getMembersFieldBuilder() : null; + } else { + membersBuilder_.addAllMessages(other.members_); + } + } + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember m = + input.readMessage( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.parser(), + extensionRegistry); + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(m); + } else { + membersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List members_ = + java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder> membersBuilder_; + + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public java.util.List getMembersList() { + if (membersBuilder_ == null) { + return java.util.Collections.unmodifiableList(members_); + } else { + return membersBuilder_.getMessageList(); + } + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public int getMembersCount() { + if (membersBuilder_ == null) { + return members_.size(); + } else { + return membersBuilder_.getCount(); + } + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember getMembers(int index) { + if (membersBuilder_ == null) { + return members_.get(index); + } else { + return membersBuilder_.getMessage(index); + } + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public Builder setMembers( + int index, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + } else { + membersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public Builder setMembers( + int index, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.set(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public Builder addMembers(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + } else { + membersBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public Builder addMembers( + int index, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(index, value); + onChanged(); + } else { + membersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public Builder addMembers( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public Builder addMembers( + int index, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); + onChanged(); + } else { + membersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public Builder clearMembers() { + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membersBuilder_.clear(); + } + return this; + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public Builder removeMembers(int index) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.remove(index); + onChanged(); + } else { + membersBuilder_.remove(index); + } + return this; + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder getMembersBuilder( + int index) { + return getMembersFieldBuilder().getBuilder(index); + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder getMembersOrBuilder( + int index) { + if (membersBuilder_ == null) { + return members_.get(index); } else { + return membersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public java.util.List + getMembersOrBuilderList() { + if (membersBuilder_ != null) { + return membersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(members_); + } + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder addMembersBuilder() { + return getMembersFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.getDefaultInstance()); + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder addMembersBuilder( + int index) { + return getMembersFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.getDefaultInstance()); + } + /** + *
+       * members are the organization members of this Organization
+       * 
+ * + * repeated .gitpod.v1.OrganizationMember members = 1 [json_name = "members"]; + */ + public java.util.List + getMembersBuilderList() { + return getMembersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder> + getMembersFieldBuilder() { + if (membersBuilder_ == null) { + membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder>( + members_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + members_ = null; + } + return membersBuilder_; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationMembersResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationMembersResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationMembersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateOrganizationMemberRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateOrganizationMemberRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the ID of the organization in which the role is to be
+     * updated
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization in which the role is to be
+     * updated
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + *
+     * user_id is the user for which the membership shall be updated.
+     * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + *
+     * user_id is the user for which the membership shall be updated.
+     * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + *
+     * role is the new role for the user in the organization
+     * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return Whether the role field is set. + */ + boolean hasRole(); + /** + *
+     * role is the new role for the user in the organization
+     * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return The enum numeric value on the wire for role. + */ + int getRoleValue(); + /** + *
+     * role is the new role for the user in the organization
+     * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return The role. + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole getRole(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationMemberRequest} + */ + public static final class UpdateOrganizationMemberRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateOrganizationMemberRequest) + UpdateOrganizationMemberRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateOrganizationMemberRequest.class.getName()); + } + // Use UpdateOrganizationMemberRequest.newBuilder() to construct. + private UpdateOrganizationMemberRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateOrganizationMemberRequest() { + organizationId_ = ""; + userId_ = ""; + role_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization in which the role is to be
+     * updated
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization in which the role is to be
+     * updated
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + *
+     * user_id is the user for which the membership shall be updated.
+     * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + *
+     * user_id is the user for which the membership shall be updated.
+     * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLE_FIELD_NUMBER = 3; + private int role_ = 0; + /** + *
+     * role is the new role for the user in the organization
+     * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return Whether the role field is set. + */ + @java.lang.Override public boolean hasRole() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * role is the new role for the user in the organization
+     * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override public int getRoleValue() { + return role_; + } + /** + *
+     * role is the new role for the user in the organization
+     * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return The role. + */ + @java.lang.Override public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole getRole() { + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole result = io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.forNumber(role_); + return result == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, userId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(3, role_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, userId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, role_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUserId() + .equals(other.getUserId())) return false; + if (hasRole() != other.hasRole()) return false; + if (hasRole()) { + if (role_ != other.role_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + if (hasRole()) { + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationMemberRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateOrganizationMemberRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + userId_ = ""; + role_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userId_ = userId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.role_ = role_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRole()) { + setRole(other.getRole()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + role_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization in which the role is to be
+       * updated
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization in which the role is to be
+       * updated
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization in which the role is to be
+       * updated
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization in which the role is to be
+       * updated
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization in which the role is to be
+       * updated
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object userId_ = ""; + /** + *
+       * user_id is the user for which the membership shall be updated.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * user_id is the user for which the membership shall be updated.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * user_id is the user for which the membership shall be updated.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * user_id is the user for which the membership shall be updated.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * user_id is the user for which the membership shall be updated.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int role_ = 0; + /** + *
+       * role is the new role for the user in the organization
+       * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return Whether the role field is set. + */ + @java.lang.Override public boolean hasRole() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * role is the new role for the user in the organization
+       * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override public int getRoleValue() { + return role_; + } + /** + *
+       * role is the new role for the user in the organization
+       * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. + */ + public Builder setRoleValue(int value) { + role_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * role is the new role for the user in the organization
+       * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return The role. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole getRole() { + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole result = io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.forNumber(role_); + return result == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole.UNRECOGNIZED : result; + } + /** + *
+       * role is the new role for the user in the organization
+       * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationRole value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + role_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * role is the new role for the user in the organization
+       * 
+ * + * optional .gitpod.v1.OrganizationRole role = 3 [json_name = "role"]; + * @return This builder for chaining. + */ + public Builder clearRole() { + bitField0_ = (bitField0_ & ~0x00000004); + role_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateOrganizationMemberRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateOrganizationMemberRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationMemberRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateOrganizationMemberResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateOrganizationMemberResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * member is the updated organization member
+     * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + * @return Whether the member field is set. + */ + boolean hasMember(); + /** + *
+     * member is the updated organization member
+     * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + * @return The member. + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember getMember(); + /** + *
+     * member is the updated organization member
+     * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + */ + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder getMemberOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationMemberResponse} + */ + public static final class UpdateOrganizationMemberResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateOrganizationMemberResponse) + UpdateOrganizationMemberResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateOrganizationMemberResponse.class.getName()); + } + // Use UpdateOrganizationMemberResponse.newBuilder() to construct. + private UpdateOrganizationMemberResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateOrganizationMemberResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse.Builder.class); + } + + private int bitField0_; + public static final int MEMBER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember member_; + /** + *
+     * member is the updated organization member
+     * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + * @return Whether the member field is set. + */ + @java.lang.Override + public boolean hasMember() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * member is the updated organization member
+     * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + * @return The member. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember getMember() { + return member_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.getDefaultInstance() : member_; + } + /** + *
+     * member is the updated organization member
+     * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder getMemberOrBuilder() { + return member_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.getDefaultInstance() : member_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMember()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMember()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse) obj; + + if (hasMember() != other.hasMember()) return false; + if (hasMember()) { + if (!getMember() + .equals(other.getMember())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMember()) { + hash = (37 * hash) + MEMBER_FIELD_NUMBER; + hash = (53 * hash) + getMember().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateOrganizationMemberResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateOrganizationMemberResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getMemberFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + member_ = null; + if (memberBuilder_ != null) { + memberBuilder_.dispose(); + memberBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_UpdateOrganizationMemberResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.member_ = memberBuilder_ == null + ? member_ + : memberBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse.getDefaultInstance()) return this; + if (other.hasMember()) { + mergeMember(other.getMember()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getMemberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember member_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder> memberBuilder_; + /** + *
+       * member is the updated organization member
+       * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + * @return Whether the member field is set. + */ + public boolean hasMember() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * member is the updated organization member
+       * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + * @return The member. + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember getMember() { + if (memberBuilder_ == null) { + return member_ == null ? io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.getDefaultInstance() : member_; + } else { + return memberBuilder_.getMessage(); + } + } + /** + *
+       * member is the updated organization member
+       * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + */ + public Builder setMember(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember value) { + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + member_ = value; + } else { + memberBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * member is the updated organization member
+       * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + */ + public Builder setMember( + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder builderForValue) { + if (memberBuilder_ == null) { + member_ = builderForValue.build(); + } else { + memberBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * member is the updated organization member
+       * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + */ + public Builder mergeMember(io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember value) { + if (memberBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + member_ != null && + member_ != io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.getDefaultInstance()) { + getMemberBuilder().mergeFrom(value); + } else { + member_ = value; + } + } else { + memberBuilder_.mergeFrom(value); + } + if (member_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * member is the updated organization member
+       * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + */ + public Builder clearMember() { + bitField0_ = (bitField0_ & ~0x00000001); + member_ = null; + if (memberBuilder_ != null) { + memberBuilder_.dispose(); + memberBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * member is the updated organization member
+       * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder getMemberBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMemberFieldBuilder().getBuilder(); + } + /** + *
+       * member is the updated organization member
+       * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + */ + public io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder getMemberOrBuilder() { + if (memberBuilder_ != null) { + return memberBuilder_.getMessageOrBuilder(); + } else { + return member_ == null ? + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.getDefaultInstance() : member_; + } + } + /** + *
+       * member is the updated organization member
+       * 
+ * + * .gitpod.v1.OrganizationMember member = 1 [json_name = "member"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder> + getMemberFieldBuilder() { + if (memberBuilder_ == null) { + memberBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMember.Builder, io.gitpod.publicapi.v1.OrganizationOuterClass.OrganizationMemberOrBuilder>( + getMember(), + getParentForChildren(), + isClean()); + member_ = null; + } + return memberBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateOrganizationMemberResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateOrganizationMemberResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationMemberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteOrganizationMemberRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteOrganizationMemberRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * organization_id is the ID of the organization in which a member should be
+     * deleted.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization in which a member should be
+     * deleted.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + *
+     * user_id is the ID of the user that should be deleted from the organization.
+     * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + *
+     * user_id is the ID of the user that should be deleted from the organization.
+     * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteOrganizationMemberRequest} + */ + public static final class DeleteOrganizationMemberRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteOrganizationMemberRequest) + DeleteOrganizationMemberRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteOrganizationMemberRequest.class.getName()); + } + // Use DeleteOrganizationMemberRequest.newBuilder() to construct. + private DeleteOrganizationMemberRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteOrganizationMemberRequest() { + organizationId_ = ""; + userId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest.Builder.class); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization in which a member should be
+     * deleted.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization in which a member should be
+     * deleted.
+     * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + *
+     * user_id is the ID of the user that should be deleted from the organization.
+     * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + *
+     * user_id is the ID of the user that should be deleted from the organization.
+     * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, userId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, userId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest other = (io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteOrganizationMemberRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteOrganizationMemberRequest) + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest.class, io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + userId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest result = new io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userId_ = userId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization in which a member should be
+       * deleted.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization in which a member should be
+       * deleted.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization in which a member should be
+       * deleted.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization in which a member should be
+       * deleted.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization in which a member should be
+       * deleted.
+       * 
+ * + * string organization_id = 1 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object userId_ = ""; + /** + *
+       * user_id is the ID of the user that should be deleted from the organization.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * user_id is the ID of the user that should be deleted from the organization.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * user_id is the ID of the user that should be deleted from the organization.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * user_id is the ID of the user that should be deleted from the organization.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * user_id is the ID of the user that should be deleted from the organization.
+       * 
+ * + * string user_id = 2 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteOrganizationMemberRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteOrganizationMemberRequest) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOrganizationMemberRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteOrganizationMemberResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteOrganizationMemberResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteOrganizationMemberResponse} + */ + public static final class DeleteOrganizationMemberResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteOrganizationMemberResponse) + DeleteOrganizationMemberResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteOrganizationMemberResponse.class.getName()); + } + // Use DeleteOrganizationMemberResponse.newBuilder() to construct. + private DeleteOrganizationMemberResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteOrganizationMemberResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse other = (io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteOrganizationMemberResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteOrganizationMemberResponse) + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse.class, io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.internal_static_gitpod_v1_DeleteOrganizationMemberResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse build() { + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse buildPartial() { + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse result = new io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse) { + return mergeFrom((io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse other) { + if (other == io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteOrganizationMemberResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteOrganizationMemberResponse) + private static final io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse(); + } + + public static io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOrganizationMemberResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_Organization_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_Organization_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_OrganizationMember_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_OrganizationMember_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_OrganizationSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_OrganizationSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_OrganizationSettings_PinnedEditorVersionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_OrganizationSettings_PinnedEditorVersionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateOrganizationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateOrganizationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateOrganizationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateOrganizationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_PinnedEditorVersionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_PinnedEditorVersionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetOrganizationSettingsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetOrganizationSettingsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetOrganizationSettingsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetOrganizationSettingsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateOrganizationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateOrganizationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateOrganizationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateOrganizationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetOrganizationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetOrganizationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetOrganizationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetOrganizationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteOrganizationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteOrganizationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteOrganizationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteOrganizationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetOrganizationInvitationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetOrganizationInvitationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetOrganizationInvitationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetOrganizationInvitationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_JoinOrganizationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_JoinOrganizationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_JoinOrganizationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_JoinOrganizationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ResetOrganizationInvitationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ResetOrganizationInvitationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ResetOrganizationInvitationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ResetOrganizationInvitationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationMembersRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationMembersRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationMembersResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationMembersResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateOrganizationMemberRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateOrganizationMemberRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateOrganizationMemberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateOrganizationMemberResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteOrganizationMemberRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteOrganizationMemberRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteOrganizationMemberResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteOrganizationMemberResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034gitpod/v1/organization.proto\022\tgitpod.v" + + "1\032\032gitpod/v1/pagination.proto\032\031gitpod/v1" + + "/workspace.proto\032\037google/protobuf/timest" + + "amp.proto\"\207\001\n\014Organization\022\016\n\002id\030\001 \001(\tR\002" + + "id\022\022\n\004name\030\002 \001(\tR\004name\022?\n\rcreation_time\030" + + "\003 \001(\0132\032.google.protobuf.TimestampR\014creat" + + "ionTime\022\022\n\004slug\030\004 \001(\tR\004slug\"\243\002\n\022Organiza" + + "tionMember\022\027\n\007user_id\030\001 \001(\tR\006userId\022/\n\004r" + + "ole\030\002 \001(\0162\033.gitpod.v1.OrganizationRoleR\004" + + "role\022=\n\014member_since\030\003 \001(\0132\032.google.prot" + + "obuf.TimestampR\013memberSince\022\035\n\navatar_ur" + + "l\030\004 \001(\tR\tavatarUrl\022\033\n\tfull_name\030\005 \001(\tR\010f" + + "ullName\022\024\n\005email\030\006 \001(\tR\005email\0222\n\025owned_b" + + "y_organization\030\007 \001(\010R\023ownedByOrganizatio" + + "n\"\335\003\n\024OrganizationSettings\022<\n\032workspace_" + + "sharing_disabled\030\001 \001(\010R\030workspaceSharing" + + "Disabled\0226\n\027default_workspace_image\030\002 \001(" + + "\tR\025defaultWorkspaceImage\022:\n\031allowed_work" + + "space_classes\030\003 \003(\tR\027allowedWorkspaceCla" + + "sses\0226\n\027restricted_editor_names\030\004 \003(\tR\025r" + + "estrictedEditorNames\022o\n\026pinned_editor_ve" + + "rsions\030\005 \003(\01329.gitpod.v1.OrganizationSet" + + "tings.PinnedEditorVersionsEntryR\024pinnedE" + + "ditorVersions\022!\n\014default_role\030\006 \001(\tR\013def" + + "aultRole\032G\n\031PinnedEditorVersionsEntry\022\020\n" + + "\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028" + + "\001\"\220\001\n\'ListOrganizationWorkspaceClassesRe" + + "quest\022<\n\npagination\030\001 \001(\0132\034.gitpod.v1.Pa" + + "ginationRequestR\npagination\022\'\n\017organizat" + + "ion_id\030\002 \001(\tR\016organizationId\"\261\001\n(ListOrg" + + "anizationWorkspaceClassesResponse\022=\n\npag" + + "ination\030\001 \001(\0132\035.gitpod.v1.PaginationResp" + + "onseR\npagination\022F\n\021workspace_classes\030\002 " + + "\003(\0132\031.gitpod.v1.WorkspaceClassR\020workspac" + + "eClasses\"f\n\031UpdateOrganizationRequest\022\'\n" + + "\017organization_id\030\001 \001(\tR\016organizationId\022\027" + + "\n\004name\030\002 \001(\tH\000R\004name\210\001\001B\007\n\005_name\"Y\n\032Upda" + + "teOrganizationResponse\022;\n\014organization\030\001" + + " \001(\0132\027.gitpod.v1.OrganizationR\014organizat" + + "ion\"\322\006\n!UpdateOrganizationSettingsReques" + + "t\022\'\n\017organization_id\030\001 \001(\tR\016organization" + + "Id\022A\n\032workspace_sharing_disabled\030\003 \001(\010H\000" + + "R\030workspaceSharingDisabled\210\001\001\022;\n\027default" + + "_workspace_image\030\004 \001(\tH\001R\025defaultWorkspa" + + "ceImage\210\001\001\022:\n\031allowed_workspace_classes\030" + + "\005 \003(\tR\027allowedWorkspaceClasses\0226\n\027restri" + + "cted_editor_names\030\006 \003(\tR\025restrictedEdito" + + "rNames\022H\n\036update_restricted_editor_names" + + "\030\007 \001(\010H\002R\033updateRestrictedEditorNames\210\001\001" + + "\022|\n\026pinned_editor_versions\030\010 \003(\0132F.gitpo" + + "d.v1.UpdateOrganizationSettingsRequest.P" + + "innedEditorVersionsEntryR\024pinnedEditorVe" + + "rsions\022F\n\035update_pinned_editor_versions\030" + + "\t \001(\010H\003R\032updatePinnedEditorVersions\210\001\001\022&" + + "\n\014default_role\030\n \001(\tH\004R\013defaultRole\210\001\001\032G" + + "\n\031PinnedEditorVersionsEntry\022\020\n\003key\030\001 \001(\t" + + "R\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\035\n\033_work" + + "space_sharing_disabledB\032\n\030_default_works" + + "pace_imageB!\n\037_update_restricted_editor_" + + "namesB \n\036_update_pinned_editor_versionsB" + + "\017\n\r_default_role\"a\n\"UpdateOrganizationSe" + + "ttingsResponse\022;\n\010settings\030\001 \001(\0132\037.gitpo" + + "d.v1.OrganizationSettingsR\010settings\"I\n\036G" + + "etOrganizationSettingsRequest\022\'\n\017organiz" + + "ation_id\030\001 \001(\tR\016organizationId\"^\n\037GetOrg" + + "anizationSettingsResponse\022;\n\010settings\030\001 " + + "\001(\0132\037.gitpod.v1.OrganizationSettingsR\010se" + + "ttings\"/\n\031CreateOrganizationRequest\022\022\n\004n" + + "ame\030\001 \001(\tR\004name\"Y\n\032CreateOrganizationRes" + + "ponse\022;\n\014organization\030\001 \001(\0132\027.gitpod.v1." + + "OrganizationR\014organization\"A\n\026GetOrganiz" + + "ationRequest\022\'\n\017organization_id\030\001 \001(\tR\016o" + + "rganizationId\"V\n\027GetOrganizationResponse" + + "\022;\n\014organization\030\001 \001(\0132\027.gitpod.v1.Organ" + + "izationR\014organization\"\332\001\n\030ListOrganizati" + + "onsRequest\022<\n\npagination\030\001 \001(\0132\034.gitpod." + + "v1.PaginationRequestR\npagination\022?\n\005scop" + + "e\030\002 \001(\0162).gitpod.v1.ListOrganizationsReq" + + "uest.ScopeR\005scope\"?\n\005Scope\022\025\n\021SCOPE_UNSP" + + "ECIFIED\020\000\022\020\n\014SCOPE_MEMBER\020\001\022\r\n\tSCOPE_ALL" + + "\020\002\"\231\001\n\031ListOrganizationsResponse\022=\n\rorga" + + "nizations\030\001 \003(\0132\027.gitpod.v1.Organization" + + "R\rorganizations\022=\n\npagination\030\002 \001(\0132\035.gi" + + "tpod.v1.PaginationResponseR\npagination\"D" + + "\n\031DeleteOrganizationRequest\022\'\n\017organizat" + + "ion_id\030\001 \001(\tR\016organizationId\"\034\n\032DeleteOr" + + "ganizationResponse\"K\n GetOrganizationInv" + + "itationRequest\022\'\n\017organization_id\030\001 \001(\tR" + + "\016organizationId\"H\n!GetOrganizationInvita" + + "tionResponse\022#\n\rinvitation_id\030\001 \001(\tR\014inv" + + "itationId\">\n\027JoinOrganizationRequest\022#\n\r" + + "invitation_id\030\001 \001(\tR\014invitationId\"C\n\030Joi" + + "nOrganizationResponse\022\'\n\017organization_id" + + "\030\001 \001(\tR\016organizationId\"M\n\"ResetOrganizat" + + "ionInvitationRequest\022\'\n\017organization_id\030" + + "\001 \001(\tR\016organizationId\"J\n#ResetOrganizati" + + "onInvitationResponse\022#\n\rinvitation_id\030\001 " + + "\001(\tR\014invitationId\"\207\001\n\036ListOrganizationMe" + + "mbersRequest\022\'\n\017organization_id\030\001 \001(\tR\016o" + + "rganizationId\022<\n\npagination\030\002 \001(\0132\034.gitp" + + "od.v1.PaginationRequestR\npagination\"\231\001\n\037" + + "ListOrganizationMembersResponse\0227\n\007membe" + + "rs\030\001 \003(\0132\035.gitpod.v1.OrganizationMemberR" + + "\007members\022=\n\npagination\030\002 \001(\0132\035.gitpod.v1" + + ".PaginationResponseR\npagination\"\242\001\n\037Upda" + + "teOrganizationMemberRequest\022\'\n\017organizat" + + "ion_id\030\001 \001(\tR\016organizationId\022\027\n\007user_id\030" + + "\002 \001(\tR\006userId\0224\n\004role\030\003 \001(\0162\033.gitpod.v1." + + "OrganizationRoleH\000R\004role\210\001\001B\007\n\005_role\"Y\n " + + "UpdateOrganizationMemberResponse\0225\n\006memb" + + "er\030\001 \001(\0132\035.gitpod.v1.OrganizationMemberR" + + "\006member\"c\n\037DeleteOrganizationMemberReque" + + "st\022\'\n\017organization_id\030\001 \001(\tR\016organizatio" + + "nId\022\027\n\007user_id\030\002 \001(\tR\006userId\"\"\n DeleteOr" + + "ganizationMemberResponse*\224\001\n\020Organizatio" + + "nRole\022!\n\035ORGANIZATION_ROLE_UNSPECIFIED\020\000" + + "\022\033\n\027ORGANIZATION_ROLE_OWNER\020\001\022\034\n\030ORGANIZ" + + "ATION_ROLE_MEMBER\020\002\022\"\n\036ORGANIZATION_ROLE" + + "_COLLABORATOR\020\0032\276\014\n\023OrganizationService\022" + + "c\n\022CreateOrganization\022$.gitpod.v1.Create" + + "OrganizationRequest\032%.gitpod.v1.CreateOr" + + "ganizationResponse\"\000\022Z\n\017GetOrganization\022" + + "!.gitpod.v1.GetOrganizationRequest\032\".git" + + "pod.v1.GetOrganizationResponse\"\000\022c\n\022Upda" + + "teOrganization\022$.gitpod.v1.UpdateOrganiz" + + "ationRequest\032%.gitpod.v1.UpdateOrganizat" + + "ionResponse\"\000\022`\n\021ListOrganizations\022#.git" + + "pod.v1.ListOrganizationsRequest\032$.gitpod" + + ".v1.ListOrganizationsResponse\"\000\022c\n\022Delet" + + "eOrganization\022$.gitpod.v1.DeleteOrganiza" + + "tionRequest\032%.gitpod.v1.DeleteOrganizati" + + "onResponse\"\000\022x\n\031GetOrganizationInvitatio" + + "n\022+.gitpod.v1.GetOrganizationInvitationR" + + "equest\032,.gitpod.v1.GetOrganizationInvita" + + "tionResponse\"\000\022]\n\020JoinOrganization\022\".git" + + "pod.v1.JoinOrganizationRequest\032#.gitpod." + + "v1.JoinOrganizationResponse\"\000\022~\n\033ResetOr" + + "ganizationInvitation\022-.gitpod.v1.ResetOr" + + "ganizationInvitationRequest\032..gitpod.v1." + + "ResetOrganizationInvitationResponse\"\000\022r\n" + + "\027ListOrganizationMembers\022).gitpod.v1.Lis" + + "tOrganizationMembersRequest\032*.gitpod.v1." + + "ListOrganizationMembersResponse\"\000\022u\n\030Upd" + + "ateOrganizationMember\022*.gitpod.v1.Update" + + "OrganizationMemberRequest\032+.gitpod.v1.Up" + + "dateOrganizationMemberResponse\"\000\022u\n\030Dele" + + "teOrganizationMember\022*.gitpod.v1.DeleteO" + + "rganizationMemberRequest\032+.gitpod.v1.Del" + + "eteOrganizationMemberResponse\"\000\022r\n\027GetOr" + + "ganizationSettings\022).gitpod.v1.GetOrgani" + + "zationSettingsRequest\032*.gitpod.v1.GetOrg" + + "anizationSettingsResponse\"\000\022{\n\032UpdateOrg" + + "anizationSettings\022,.gitpod.v1.UpdateOrga" + + "nizationSettingsRequest\032-.gitpod.v1.Upda" + + "teOrganizationSettingsResponse\"\000\022\215\001\n Lis" + + "tOrganizationWorkspaceClasses\0222.gitpod.v" + + "1.ListOrganizationWorkspaceClassesReques" + + "t\0323.gitpod.v1.ListOrganizationWorkspaceC" + + "lassesResponse\"\000BQ\n\026io.gitpod.publicapi." + + "v1Z7github.com/gitpod-io/gitpod/componen" + + "ts/public-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + io.gitpod.publicapi.v1.WorkspaceOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_v1_Organization_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_Organization_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_Organization_descriptor, + new java.lang.String[] { "Id", "Name", "CreationTime", "Slug", }); + internal_static_gitpod_v1_OrganizationMember_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_OrganizationMember_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_OrganizationMember_descriptor, + new java.lang.String[] { "UserId", "Role", "MemberSince", "AvatarUrl", "FullName", "Email", "OwnedByOrganization", }); + internal_static_gitpod_v1_OrganizationSettings_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_OrganizationSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_OrganizationSettings_descriptor, + new java.lang.String[] { "WorkspaceSharingDisabled", "DefaultWorkspaceImage", "AllowedWorkspaceClasses", "RestrictedEditorNames", "PinnedEditorVersions", "DefaultRole", }); + internal_static_gitpod_v1_OrganizationSettings_PinnedEditorVersionsEntry_descriptor = + internal_static_gitpod_v1_OrganizationSettings_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_OrganizationSettings_PinnedEditorVersionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_OrganizationSettings_PinnedEditorVersionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesRequest_descriptor, + new java.lang.String[] { "Pagination", "OrganizationId", }); + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationWorkspaceClassesResponse_descriptor, + new java.lang.String[] { "Pagination", "WorkspaceClasses", }); + internal_static_gitpod_v1_UpdateOrganizationRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_UpdateOrganizationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateOrganizationRequest_descriptor, + new java.lang.String[] { "OrganizationId", "Name", }); + internal_static_gitpod_v1_UpdateOrganizationResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_UpdateOrganizationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateOrganizationResponse_descriptor, + new java.lang.String[] { "Organization", }); + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_descriptor, + new java.lang.String[] { "OrganizationId", "WorkspaceSharingDisabled", "DefaultWorkspaceImage", "AllowedWorkspaceClasses", "RestrictedEditorNames", "UpdateRestrictedEditorNames", "PinnedEditorVersions", "UpdatePinnedEditorVersions", "DefaultRole", }); + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_PinnedEditorVersionsEntry_descriptor = + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_PinnedEditorVersionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateOrganizationSettingsRequest_PinnedEditorVersionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateOrganizationSettingsResponse_descriptor, + new java.lang.String[] { "Settings", }); + internal_static_gitpod_v1_GetOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_GetOrganizationSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetOrganizationSettingsRequest_descriptor, + new java.lang.String[] { "OrganizationId", }); + internal_static_gitpod_v1_GetOrganizationSettingsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_GetOrganizationSettingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetOrganizationSettingsResponse_descriptor, + new java.lang.String[] { "Settings", }); + internal_static_gitpod_v1_CreateOrganizationRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_v1_CreateOrganizationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateOrganizationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_gitpod_v1_CreateOrganizationResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_v1_CreateOrganizationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateOrganizationResponse_descriptor, + new java.lang.String[] { "Organization", }); + internal_static_gitpod_v1_GetOrganizationRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_v1_GetOrganizationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetOrganizationRequest_descriptor, + new java.lang.String[] { "OrganizationId", }); + internal_static_gitpod_v1_GetOrganizationResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_v1_GetOrganizationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetOrganizationResponse_descriptor, + new java.lang.String[] { "Organization", }); + internal_static_gitpod_v1_ListOrganizationsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_v1_ListOrganizationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationsRequest_descriptor, + new java.lang.String[] { "Pagination", "Scope", }); + internal_static_gitpod_v1_ListOrganizationsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_gitpod_v1_ListOrganizationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationsResponse_descriptor, + new java.lang.String[] { "Organizations", "Pagination", }); + internal_static_gitpod_v1_DeleteOrganizationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_gitpod_v1_DeleteOrganizationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteOrganizationRequest_descriptor, + new java.lang.String[] { "OrganizationId", }); + internal_static_gitpod_v1_DeleteOrganizationResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_gitpod_v1_DeleteOrganizationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteOrganizationResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_GetOrganizationInvitationRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_gitpod_v1_GetOrganizationInvitationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetOrganizationInvitationRequest_descriptor, + new java.lang.String[] { "OrganizationId", }); + internal_static_gitpod_v1_GetOrganizationInvitationResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_gitpod_v1_GetOrganizationInvitationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetOrganizationInvitationResponse_descriptor, + new java.lang.String[] { "InvitationId", }); + internal_static_gitpod_v1_JoinOrganizationRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_gitpod_v1_JoinOrganizationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_JoinOrganizationRequest_descriptor, + new java.lang.String[] { "InvitationId", }); + internal_static_gitpod_v1_JoinOrganizationResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_gitpod_v1_JoinOrganizationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_JoinOrganizationResponse_descriptor, + new java.lang.String[] { "OrganizationId", }); + internal_static_gitpod_v1_ResetOrganizationInvitationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_gitpod_v1_ResetOrganizationInvitationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ResetOrganizationInvitationRequest_descriptor, + new java.lang.String[] { "OrganizationId", }); + internal_static_gitpod_v1_ResetOrganizationInvitationResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_gitpod_v1_ResetOrganizationInvitationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ResetOrganizationInvitationResponse_descriptor, + new java.lang.String[] { "InvitationId", }); + internal_static_gitpod_v1_ListOrganizationMembersRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_gitpod_v1_ListOrganizationMembersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationMembersRequest_descriptor, + new java.lang.String[] { "OrganizationId", "Pagination", }); + internal_static_gitpod_v1_ListOrganizationMembersResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_gitpod_v1_ListOrganizationMembersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationMembersResponse_descriptor, + new java.lang.String[] { "Members", "Pagination", }); + internal_static_gitpod_v1_UpdateOrganizationMemberRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_gitpod_v1_UpdateOrganizationMemberRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateOrganizationMemberRequest_descriptor, + new java.lang.String[] { "OrganizationId", "UserId", "Role", }); + internal_static_gitpod_v1_UpdateOrganizationMemberResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_gitpod_v1_UpdateOrganizationMemberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateOrganizationMemberResponse_descriptor, + new java.lang.String[] { "Member", }); + internal_static_gitpod_v1_DeleteOrganizationMemberRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_gitpod_v1_DeleteOrganizationMemberRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteOrganizationMemberRequest_descriptor, + new java.lang.String[] { "OrganizationId", "UserId", }); + internal_static_gitpod_v1_DeleteOrganizationMemberResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_gitpod_v1_DeleteOrganizationMemberResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteOrganizationMemberResponse_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + io.gitpod.publicapi.v1.WorkspaceOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationServiceClient.kt new file mode 100644 index 00000000000000..904575b62bd6cf --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationServiceClient.kt @@ -0,0 +1,268 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/organization.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class OrganizationServiceClient( + private val client: ProtocolClientInterface, +) : OrganizationServiceClientInterface { + /** + * CreateOrganization creates a new Organization. + */ + override suspend fun createOrganization(request: OrganizationOuterClass.CreateOrganizationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/CreateOrganization", + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.CreateOrganizationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetOrganization retrieves a single Organization. + */ + override suspend fun getOrganization(request: OrganizationOuterClass.GetOrganizationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/GetOrganization", + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateOrganization updates the properties of an Organization. + */ + override suspend fun updateOrganization(request: OrganizationOuterClass.UpdateOrganizationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/UpdateOrganization", + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListOrganizations lists all organization the caller has access to. + */ + override suspend fun listOrganizations(request: OrganizationOuterClass.ListOrganizationsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/ListOrganizations", + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteOrganization deletes the specified organization. + */ + override suspend fun deleteOrganization(request: OrganizationOuterClass.DeleteOrganizationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/DeleteOrganization", + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetOrganizationInvitation retrieves the invitation for a Organization. + */ + override suspend + fun getOrganizationInvitation(request: OrganizationOuterClass.GetOrganizationInvitationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/GetOrganizationInvitation", + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationInvitationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * JoinOrganization makes the caller a OrganizationMember of the Organization. + */ + override suspend fun joinOrganization(request: OrganizationOuterClass.JoinOrganizationRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/JoinOrganization", + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.JoinOrganizationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ResetOrganizationInvitation resets the invitation_id for a Organization. + */ + override suspend + fun resetOrganizationInvitation(request: OrganizationOuterClass.ResetOrganizationInvitationRequest, + headers: Headers): ResponseMessage + = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/ResetOrganizationInvitation", + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.ResetOrganizationInvitationResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListOrganizationMembers lists the members of a Organization. + */ + override suspend + fun listOrganizationMembers(request: OrganizationOuterClass.ListOrganizationMembersRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/ListOrganizationMembers", + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationMembersResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateOrganizationMember updates organization membership properties. + */ + override suspend + fun updateOrganizationMember(request: OrganizationOuterClass.UpdateOrganizationMemberRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/UpdateOrganizationMember", + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationMemberResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteOrganizationMember removes a OrganizationMember from the + * Organization. + */ + override suspend + fun deleteOrganizationMember(request: OrganizationOuterClass.DeleteOrganizationMemberRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/DeleteOrganizationMember", + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.DeleteOrganizationMemberResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetOrganizationSettings retrieves the settings of a Organization. + */ + override suspend + fun getOrganizationSettings(request: OrganizationOuterClass.GetOrganizationSettingsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/GetOrganizationSettings", + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.GetOrganizationSettingsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateOrganizationSettings updates the settings of a Organization. + */ + override suspend + fun updateOrganizationSettings(request: OrganizationOuterClass.UpdateOrganizationSettingsRequest, + headers: Headers): ResponseMessage + = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/UpdateOrganizationSettings", + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.UpdateOrganizationSettingsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListOrganizationWorkspaceClasses lists workspace classes of a + * Organization. + */ + override suspend + fun listOrganizationWorkspaceClasses(request: OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest, + headers: Headers): + ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.OrganizationService/ListOrganizationWorkspaceClasses", + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest::class, + io.gitpod.publicapi.v1.OrganizationOuterClass.ListOrganizationWorkspaceClassesResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationServiceClientInterface.kt new file mode 100644 index 00000000000000..d94213b887e86b --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/OrganizationServiceClientInterface.kt @@ -0,0 +1,122 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/organization.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface OrganizationServiceClientInterface { + /** + * CreateOrganization creates a new Organization. + */ + public suspend fun createOrganization(request: OrganizationOuterClass.CreateOrganizationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * GetOrganization retrieves a single Organization. + */ + public suspend fun getOrganization(request: OrganizationOuterClass.GetOrganizationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * UpdateOrganization updates the properties of an Organization. + */ + public suspend fun updateOrganization(request: OrganizationOuterClass.UpdateOrganizationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * ListOrganizations lists all organization the caller has access to. + */ + public suspend fun listOrganizations(request: OrganizationOuterClass.ListOrganizationsRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * DeleteOrganization deletes the specified organization. + */ + public suspend fun deleteOrganization(request: OrganizationOuterClass.DeleteOrganizationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * GetOrganizationInvitation retrieves the invitation for a Organization. + */ + public suspend + fun getOrganizationInvitation(request: OrganizationOuterClass.GetOrganizationInvitationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * JoinOrganization makes the caller a OrganizationMember of the Organization. + */ + public suspend fun joinOrganization(request: OrganizationOuterClass.JoinOrganizationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * ResetOrganizationInvitation resets the invitation_id for a Organization. + */ + public suspend + fun resetOrganizationInvitation(request: OrganizationOuterClass.ResetOrganizationInvitationRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * ListOrganizationMembers lists the members of a Organization. + */ + public suspend + fun listOrganizationMembers(request: OrganizationOuterClass.ListOrganizationMembersRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * UpdateOrganizationMember updates organization membership properties. + */ + public suspend + fun updateOrganizationMember(request: OrganizationOuterClass.UpdateOrganizationMemberRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * DeleteOrganizationMember removes a OrganizationMember from the + * Organization. + */ + public suspend + fun deleteOrganizationMember(request: OrganizationOuterClass.DeleteOrganizationMemberRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * GetOrganizationSettings retrieves the settings of a Organization. + */ + public suspend + fun getOrganizationSettings(request: OrganizationOuterClass.GetOrganizationSettingsRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * UpdateOrganizationSettings updates the settings of a Organization. + */ + public suspend + fun updateOrganizationSettings(request: OrganizationOuterClass.UpdateOrganizationSettingsRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * ListOrganizationWorkspaceClasses lists workspace classes of a + * Organization. + */ + public suspend + fun listOrganizationWorkspaceClasses(request: OrganizationOuterClass.ListOrganizationWorkspaceClassesRequest, + headers: Headers = emptyMap()): + ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Pagination.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Pagination.java new file mode 100644 index 00000000000000..57a15d2aaabffb --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Pagination.java @@ -0,0 +1,1501 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/pagination.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Pagination { + private Pagination() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Pagination.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PaginationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.PaginationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Page size is the maximum number of results to retrieve per page.
+     * Defaults to 25. Maximum 100.
+     * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+     * Page is the page number of results to retrieve.
+     * The first page starts at 1.
+     * Defaults to 1.
+     * 
+ * + * int32 page = 2 [json_name = "page", deprecated = true]; + * @deprecated gitpod.v1.PaginationRequest.page is deprecated. + * See gitpod/v1/pagination.proto;l=15 + * @return The page. + */ + @java.lang.Deprecated int getPage(); + + /** + *
+     * Token for the next set of results that was returned as next_token of a
+     * PaginationResponse
+     * 
+ * + * string token = 3 [json_name = "token"]; + * @return The token. + */ + java.lang.String getToken(); + /** + *
+     * Token for the next set of results that was returned as next_token of a
+     * PaginationResponse
+     * 
+ * + * string token = 3 [json_name = "token"]; + * @return The bytes for token. + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + * Protobuf type {@code gitpod.v1.PaginationRequest} + */ + public static final class PaginationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.PaginationRequest) + PaginationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PaginationRequest.class.getName()); + } + // Use PaginationRequest.newBuilder() to construct. + private PaginationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PaginationRequest() { + token_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.class, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_ = 0; + /** + *
+     * Page size is the maximum number of results to retrieve per page.
+     * Defaults to 25. Maximum 100.
+     * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_FIELD_NUMBER = 2; + private int page_ = 0; + /** + *
+     * Page is the page number of results to retrieve.
+     * The first page starts at 1.
+     * Defaults to 1.
+     * 
+ * + * int32 page = 2 [json_name = "page", deprecated = true]; + * @deprecated gitpod.v1.PaginationRequest.page is deprecated. + * See gitpod/v1/pagination.proto;l=15 + * @return The page. + */ + @java.lang.Override + @java.lang.Deprecated public int getPage() { + return page_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + *
+     * Token for the next set of results that was returned as next_token of a
+     * PaginationResponse
+     * 
+ * + * string token = 3 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * Token for the next set of results that was returned as next_token of a
+     * PaginationResponse
+     * 
+ * + * string token = 3 [json_name = "token"]; + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (page_ != 0) { + output.writeInt32(2, page_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, token_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); + } + if (page_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, page_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, token_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Pagination.PaginationRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Pagination.PaginationRequest other = (io.gitpod.publicapi.v1.Pagination.PaginationRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (getPage() + != other.getPage()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_FIELD_NUMBER; + hash = (53 * hash) + getPage(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Pagination.PaginationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.PaginationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.PaginationRequest) + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.class, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Pagination.PaginationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = 0; + page_ = 0; + token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest build() { + io.gitpod.publicapi.v1.Pagination.PaginationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest buildPartial() { + io.gitpod.publicapi.v1.Pagination.PaginationRequest result = new io.gitpod.publicapi.v1.Pagination.PaginationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Pagination.PaginationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.page_ = page_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.token_ = token_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Pagination.PaginationRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Pagination.PaginationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Pagination.PaginationRequest other) { + if (other == io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.getPage() != 0) { + setPage(other.getPage()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + page_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int pageSize_ ; + /** + *
+       * Page size is the maximum number of results to retrieve per page.
+       * Defaults to 25. Maximum 100.
+       * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+       * Page size is the maximum number of results to retrieve per page.
+       * Defaults to 25. Maximum 100.
+       * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Page size is the maximum number of results to retrieve per page.
+       * Defaults to 25. Maximum 100.
+       * 
+ * + * int32 page_size = 1 [json_name = "pageSize"]; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private int page_ ; + /** + *
+       * Page is the page number of results to retrieve.
+       * The first page starts at 1.
+       * Defaults to 1.
+       * 
+ * + * int32 page = 2 [json_name = "page", deprecated = true]; + * @deprecated gitpod.v1.PaginationRequest.page is deprecated. + * See gitpod/v1/pagination.proto;l=15 + * @return The page. + */ + @java.lang.Override + @java.lang.Deprecated public int getPage() { + return page_; + } + /** + *
+       * Page is the page number of results to retrieve.
+       * The first page starts at 1.
+       * Defaults to 1.
+       * 
+ * + * int32 page = 2 [json_name = "page", deprecated = true]; + * @deprecated gitpod.v1.PaginationRequest.page is deprecated. + * See gitpod/v1/pagination.proto;l=15 + * @param value The page to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setPage(int value) { + + page_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Page is the page number of results to retrieve.
+       * The first page starts at 1.
+       * Defaults to 1.
+       * 
+ * + * int32 page = 2 [json_name = "page", deprecated = true]; + * @deprecated gitpod.v1.PaginationRequest.page is deprecated. + * See gitpod/v1/pagination.proto;l=15 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearPage() { + bitField0_ = (bitField0_ & ~0x00000002); + page_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * Token for the next set of results that was returned as next_token of a
+       * PaginationResponse
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Token for the next set of results that was returned as next_token of a
+       * PaginationResponse
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @return The bytes for token. + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Token for the next set of results that was returned as next_token of a
+       * PaginationResponse
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + token_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Token for the next set of results that was returned as next_token of a
+       * PaginationResponse
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Token for the next set of results that was returned as next_token of a
+       * PaginationResponse
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.PaginationRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.PaginationRequest) + private static final io.gitpod.publicapi.v1.Pagination.PaginationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Pagination.PaginationRequest(); + } + + public static io.gitpod.publicapi.v1.Pagination.PaginationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PaginationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PaginationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.PaginationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Total is the total number of results available.
+     * 
+ * + * int32 total = 1 [json_name = "total", deprecated = true]; + * @deprecated gitpod.v1.PaginationResponse.total is deprecated. + * See gitpod/v1/pagination.proto;l=24 + * @return The total. + */ + @java.lang.Deprecated int getTotal(); + + /** + *
+     * Token passed for retreiving the next set of results. Empty if there are no
+     * more results
+     * 
+ * + * string next_token = 2 [json_name = "nextToken"]; + * @return The nextToken. + */ + java.lang.String getNextToken(); + /** + *
+     * Token passed for retreiving the next set of results. Empty if there are no
+     * more results
+     * 
+ * + * string next_token = 2 [json_name = "nextToken"]; + * @return The bytes for nextToken. + */ + com.google.protobuf.ByteString + getNextTokenBytes(); + } + /** + * Protobuf type {@code gitpod.v1.PaginationResponse} + */ + public static final class PaginationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.PaginationResponse) + PaginationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PaginationResponse.class.getName()); + } + // Use PaginationResponse.newBuilder() to construct. + private PaginationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PaginationResponse() { + nextToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.class, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder.class); + } + + public static final int TOTAL_FIELD_NUMBER = 1; + private int total_ = 0; + /** + *
+     * Total is the total number of results available.
+     * 
+ * + * int32 total = 1 [json_name = "total", deprecated = true]; + * @deprecated gitpod.v1.PaginationResponse.total is deprecated. + * See gitpod/v1/pagination.proto;l=24 + * @return The total. + */ + @java.lang.Override + @java.lang.Deprecated public int getTotal() { + return total_; + } + + public static final int NEXT_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextToken_ = ""; + /** + *
+     * Token passed for retreiving the next set of results. Empty if there are no
+     * more results
+     * 
+ * + * string next_token = 2 [json_name = "nextToken"]; + * @return The nextToken. + */ + @java.lang.Override + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } + } + /** + *
+     * Token passed for retreiving the next set of results. Empty if there are no
+     * more results
+     * 
+ * + * string next_token = 2 [json_name = "nextToken"]; + * @return The bytes for nextToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (total_ != 0) { + output.writeInt32(1, total_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (total_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, total_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Pagination.PaginationResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Pagination.PaginationResponse other = (io.gitpod.publicapi.v1.Pagination.PaginationResponse) obj; + + if (getTotal() + != other.getTotal()) return false; + if (!getNextToken() + .equals(other.getNextToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal(); + hash = (37 * hash) + NEXT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Pagination.PaginationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.PaginationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.PaginationResponse) + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.class, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Pagination.PaginationResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + total_ = 0; + nextToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Pagination.internal_static_gitpod_v1_PaginationResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse build() { + io.gitpod.publicapi.v1.Pagination.PaginationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse buildPartial() { + io.gitpod.publicapi.v1.Pagination.PaginationResponse result = new io.gitpod.publicapi.v1.Pagination.PaginationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Pagination.PaginationResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.total_ = total_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextToken_ = nextToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Pagination.PaginationResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Pagination.PaginationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Pagination.PaginationResponse other) { + if (other == io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) return this; + if (other.getTotal() != 0) { + setTotal(other.getTotal()); + } + if (!other.getNextToken().isEmpty()) { + nextToken_ = other.nextToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + total_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + nextToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int total_ ; + /** + *
+       * Total is the total number of results available.
+       * 
+ * + * int32 total = 1 [json_name = "total", deprecated = true]; + * @deprecated gitpod.v1.PaginationResponse.total is deprecated. + * See gitpod/v1/pagination.proto;l=24 + * @return The total. + */ + @java.lang.Override + @java.lang.Deprecated public int getTotal() { + return total_; + } + /** + *
+       * Total is the total number of results available.
+       * 
+ * + * int32 total = 1 [json_name = "total", deprecated = true]; + * @deprecated gitpod.v1.PaginationResponse.total is deprecated. + * See gitpod/v1/pagination.proto;l=24 + * @param value The total to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setTotal(int value) { + + total_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Total is the total number of results available.
+       * 
+ * + * int32 total = 1 [json_name = "total", deprecated = true]; + * @deprecated gitpod.v1.PaginationResponse.total is deprecated. + * See gitpod/v1/pagination.proto;l=24 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearTotal() { + bitField0_ = (bitField0_ & ~0x00000001); + total_ = 0; + onChanged(); + return this; + } + + private java.lang.Object nextToken_ = ""; + /** + *
+       * Token passed for retreiving the next set of results. Empty if there are no
+       * more results
+       * 
+ * + * string next_token = 2 [json_name = "nextToken"]; + * @return The nextToken. + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Token passed for retreiving the next set of results. Empty if there are no
+       * more results
+       * 
+ * + * string next_token = 2 [json_name = "nextToken"]; + * @return The bytes for nextToken. + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Token passed for retreiving the next set of results. Empty if there are no
+       * more results
+       * 
+ * + * string next_token = 2 [json_name = "nextToken"]; + * @param value The nextToken to set. + * @return This builder for chaining. + */ + public Builder setNextToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Token passed for retreiving the next set of results. Empty if there are no
+       * more results
+       * 
+ * + * string next_token = 2 [json_name = "nextToken"]; + * @return This builder for chaining. + */ + public Builder clearNextToken() { + nextToken_ = getDefaultInstance().getNextToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Token passed for retreiving the next set of results. Empty if there are no
+       * more results
+       * 
+ * + * string next_token = 2 [json_name = "nextToken"]; + * @param value The bytes for nextToken to set. + * @return This builder for chaining. + */ + public Builder setNextTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.PaginationResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.PaginationResponse) + private static final io.gitpod.publicapi.v1.Pagination.PaginationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Pagination.PaginationResponse(); + } + + public static io.gitpod.publicapi.v1.Pagination.PaginationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PaginationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_PaginationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_PaginationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_PaginationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_PaginationResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032gitpod/v1/pagination.proto\022\tgitpod.v1\"" + + "^\n\021PaginationRequest\022\033\n\tpage_size\030\001 \001(\005R" + + "\010pageSize\022\026\n\004page\030\002 \001(\005B\002\030\001R\004page\022\024\n\005tok" + + "en\030\003 \001(\tR\005token\"M\n\022PaginationResponse\022\030\n" + + "\005total\030\001 \001(\005B\002\030\001R\005total\022\035\n\nnext_token\030\002 " + + "\001(\tR\tnextTokenBQ\n\026io.gitpod.publicapi.v1" + + "Z7github.com/gitpod-io/gitpod/components" + + "/public-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_v1_PaginationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_PaginationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_PaginationRequest_descriptor, + new java.lang.String[] { "PageSize", "Page", "Token", }); + internal_static_gitpod_v1_PaginationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_PaginationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_PaginationResponse_descriptor, + new java.lang.String[] { "Total", "NextToken", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildOuterClass.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildOuterClass.java new file mode 100644 index 00000000000000..a3e709cc97d6ad --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildOuterClass.java @@ -0,0 +1,15700 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/prebuild.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class PrebuildOuterClass { + private PrebuildOuterClass() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PrebuildOuterClass.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GetPrebuildRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetPrebuildRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + java.lang.String getPrebuildId(); + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + com.google.protobuf.ByteString + getPrebuildIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetPrebuildRequest} + */ + public static final class GetPrebuildRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetPrebuildRequest) + GetPrebuildRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetPrebuildRequest.class.getName()); + } + // Use GetPrebuildRequest.newBuilder() to construct. + private GetPrebuildRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetPrebuildRequest() { + prebuildId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest.Builder.class); + } + + public static final int PREBUILD_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object prebuildId_ = ""; + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + @java.lang.Override + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, prebuildId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, prebuildId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest other = (io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest) obj; + + if (!getPrebuildId() + .equals(other.getPrebuildId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREBUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetPrebuildRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetPrebuildRequest) + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prebuildId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest result = new io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prebuildId_ = prebuildId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest.getDefaultInstance()) return this; + if (!other.getPrebuildId().isEmpty()) { + prebuildId_ = other.prebuildId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + prebuildId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object prebuildId_ = ""; + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prebuildId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildId() { + prebuildId_ = getDefaultInstance().getPrebuildId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The bytes for prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prebuildId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetPrebuildRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetPrebuildRequest) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrebuildRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetPrebuildResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetPrebuildResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + boolean hasPrebuild(); + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return The prebuild. + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuild(); + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GetPrebuildResponse} + */ + public static final class GetPrebuildResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetPrebuildResponse) + GetPrebuildResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetPrebuildResponse.class.getName()); + } + // Use GetPrebuildResponse.newBuilder() to construct. + private GetPrebuildResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetPrebuildResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse.Builder.class); + } + + private int bitField0_; + public static final int PREBUILD_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild prebuild_; + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + @java.lang.Override + public boolean hasPrebuild() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuild() { + return prebuild_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance() : prebuild_; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildOrBuilder() { + return prebuild_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance() : prebuild_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPrebuild()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPrebuild()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse other = (io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse) obj; + + if (hasPrebuild() != other.hasPrebuild()) return false; + if (hasPrebuild()) { + if (!getPrebuild() + .equals(other.getPrebuild())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrebuild()) { + hash = (37 * hash) + PREBUILD_FIELD_NUMBER; + hash = (53 * hash) + getPrebuild().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetPrebuildResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetPrebuildResponse) + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPrebuildFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prebuild_ = null; + if (prebuildBuilder_ != null) { + prebuildBuilder_.dispose(); + prebuildBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_GetPrebuildResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse result = new io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prebuild_ = prebuildBuilder_ == null + ? prebuild_ + : prebuildBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse.getDefaultInstance()) return this; + if (other.hasPrebuild()) { + mergePrebuild(other.getPrebuild()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPrebuildFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild prebuild_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder> prebuildBuilder_; + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + public boolean hasPrebuild() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return The prebuild. + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuild() { + if (prebuildBuilder_ == null) { + return prebuild_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance() : prebuild_; + } else { + return prebuildBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public Builder setPrebuild(io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prebuild_ = value; + } else { + prebuildBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public Builder setPrebuild( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder builderForValue) { + if (prebuildBuilder_ == null) { + prebuild_ = builderForValue.build(); + } else { + prebuildBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public Builder mergePrebuild(io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + prebuild_ != null && + prebuild_ != io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance()) { + getPrebuildBuilder().mergeFrom(value); + } else { + prebuild_ = value; + } + } else { + prebuildBuilder_.mergeFrom(value); + } + if (prebuild_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public Builder clearPrebuild() { + bitField0_ = (bitField0_ & ~0x00000001); + prebuild_ = null; + if (prebuildBuilder_ != null) { + prebuildBuilder_.dispose(); + prebuildBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder getPrebuildBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPrebuildFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildOrBuilder() { + if (prebuildBuilder_ != null) { + return prebuildBuilder_.getMessageOrBuilder(); + } else { + return prebuild_ == null ? + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance() : prebuild_; + } + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder> + getPrebuildFieldBuilder() { + if (prebuildBuilder_ == null) { + prebuildBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder>( + getPrebuild(), + getParentForChildren(), + isClean()); + prebuild_ = null; + } + return prebuildBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetPrebuildResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetPrebuildResponse) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrebuildResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListPrebuildsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListPrebuildsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + *
+     * it is for backward compatiblity with the current dashboard, use prebuild_id
+     * instead
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.ListPrebuildsRequest.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=35 + * @return The workspaceId. + */ + @java.lang.Deprecated java.lang.String getWorkspaceId(); + /** + *
+     * it is for backward compatiblity with the current dashboard, use prebuild_id
+     * instead
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.ListPrebuildsRequest.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=35 + * @return The bytes for workspaceId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + * string git_ref = 4 [json_name = "gitRef"]; + * @return The gitRef. + */ + java.lang.String getGitRef(); + /** + * string git_ref = 4 [json_name = "gitRef"]; + * @return The bytes for gitRef. + */ + com.google.protobuf.ByteString + getGitRefBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ListPrebuildsRequest} + */ + public static final class ListPrebuildsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListPrebuildsRequest) + ListPrebuildsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListPrebuildsRequest.class.getName()); + } + // Use ListPrebuildsRequest.newBuilder() to construct. + private ListPrebuildsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListPrebuildsRequest() { + workspaceId_ = ""; + configurationId_ = ""; + gitRef_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * it is for backward compatiblity with the current dashboard, use prebuild_id
+     * instead
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.ListPrebuildsRequest.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=35 + * @return The workspaceId. + */ + @java.lang.Override + @java.lang.Deprecated public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * it is for backward compatiblity with the current dashboard, use prebuild_id
+     * instead
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.ListPrebuildsRequest.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=35 + * @return The bytes for workspaceId. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIT_REF_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object gitRef_ = ""; + /** + * string git_ref = 4 [json_name = "gitRef"]; + * @return The gitRef. + */ + @java.lang.Override + public java.lang.String getGitRef() { + java.lang.Object ref = gitRef_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRef_ = s; + return s; + } + } + /** + * string git_ref = 4 [json_name = "gitRef"]; + * @return The bytes for gitRef. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGitRefBytes() { + java.lang.Object ref = gitRef_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gitRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, workspaceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitRef_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, gitRef_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workspaceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitRef_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, gitRef_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest other = (io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!getGitRef() + .equals(other.getGitRef())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (37 * hash) + GIT_REF_FIELD_NUMBER; + hash = (53 * hash) + getGitRef().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListPrebuildsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListPrebuildsRequest) + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + workspaceId_ = ""; + configurationId_ = ""; + gitRef_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest result = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspaceId_ = workspaceId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.configurationId_ = configurationId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gitRef_ = gitRef_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getGitRef().isEmpty()) { + gitRef_ = other.gitRef_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + gitRef_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * it is for backward compatiblity with the current dashboard, use prebuild_id
+       * instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.ListPrebuildsRequest.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=35 + * @return The workspaceId. + */ + @java.lang.Deprecated public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * it is for backward compatiblity with the current dashboard, use prebuild_id
+       * instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.ListPrebuildsRequest.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=35 + * @return The bytes for workspaceId. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * it is for backward compatiblity with the current dashboard, use prebuild_id
+       * instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.ListPrebuildsRequest.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=35 + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * it is for backward compatiblity with the current dashboard, use prebuild_id
+       * instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.ListPrebuildsRequest.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=35 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * it is for backward compatiblity with the current dashboard, use prebuild_id
+       * instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.ListPrebuildsRequest.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=35 + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object gitRef_ = ""; + /** + * string git_ref = 4 [json_name = "gitRef"]; + * @return The gitRef. + */ + public java.lang.String getGitRef() { + java.lang.Object ref = gitRef_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRef_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string git_ref = 4 [json_name = "gitRef"]; + * @return The bytes for gitRef. + */ + public com.google.protobuf.ByteString + getGitRefBytes() { + java.lang.Object ref = gitRef_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gitRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string git_ref = 4 [json_name = "gitRef"]; + * @param value The gitRef to set. + * @return This builder for chaining. + */ + public Builder setGitRef( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + gitRef_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string git_ref = 4 [json_name = "gitRef"]; + * @return This builder for chaining. + */ + public Builder clearGitRef() { + gitRef_ = getDefaultInstance().getGitRef(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string git_ref = 4 [json_name = "gitRef"]; + * @param value The bytes for gitRef to set. + * @return This builder for chaining. + */ + public Builder setGitRefBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + gitRef_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListPrebuildsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListPrebuildsRequest) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrebuildsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListPrebuildsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListPrebuildsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + java.util.List + getPrebuildsList(); + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuilds(int index); + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + int getPrebuildsCount(); + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + java.util.List + getPrebuildsOrBuilderList(); + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildsOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListPrebuildsResponse} + */ + public static final class ListPrebuildsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListPrebuildsResponse) + ListPrebuildsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListPrebuildsResponse.class.getName()); + } + // Use ListPrebuildsResponse.newBuilder() to construct. + private ListPrebuildsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListPrebuildsResponse() { + prebuilds_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + public static final int PREBUILDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List prebuilds_; + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public java.util.List getPrebuildsList() { + return prebuilds_; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public java.util.List + getPrebuildsOrBuilderList() { + return prebuilds_; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public int getPrebuildsCount() { + return prebuilds_.size(); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuilds(int index) { + return prebuilds_.get(index); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildsOrBuilder( + int index) { + return prebuilds_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < prebuilds_.size(); i++) { + output.writeMessage(2, prebuilds_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < prebuilds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, prebuilds_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse other = (io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getPrebuildsList() + .equals(other.getPrebuildsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getPrebuildsCount() > 0) { + hash = (37 * hash) + PREBUILDS_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListPrebuildsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListPrebuildsResponse) + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getPrebuildsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (prebuildsBuilder_ == null) { + prebuilds_ = java.util.Collections.emptyList(); + } else { + prebuilds_ = null; + prebuildsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListPrebuildsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse result = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse result) { + if (prebuildsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + prebuilds_ = java.util.Collections.unmodifiableList(prebuilds_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.prebuilds_ = prebuilds_; + } else { + result.prebuilds_ = prebuildsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (prebuildsBuilder_ == null) { + if (!other.prebuilds_.isEmpty()) { + if (prebuilds_.isEmpty()) { + prebuilds_ = other.prebuilds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePrebuildsIsMutable(); + prebuilds_.addAll(other.prebuilds_); + } + onChanged(); + } + } else { + if (!other.prebuilds_.isEmpty()) { + if (prebuildsBuilder_.isEmpty()) { + prebuildsBuilder_.dispose(); + prebuildsBuilder_ = null; + prebuilds_ = other.prebuilds_; + bitField0_ = (bitField0_ & ~0x00000002); + prebuildsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPrebuildsFieldBuilder() : null; + } else { + prebuildsBuilder_.addAllMessages(other.prebuilds_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild m = + input.readMessage( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.parser(), + extensionRegistry); + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.add(m); + } else { + prebuildsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List prebuilds_ = + java.util.Collections.emptyList(); + private void ensurePrebuildsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + prebuilds_ = new java.util.ArrayList(prebuilds_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder> prebuildsBuilder_; + + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public java.util.List getPrebuildsList() { + if (prebuildsBuilder_ == null) { + return java.util.Collections.unmodifiableList(prebuilds_); + } else { + return prebuildsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public int getPrebuildsCount() { + if (prebuildsBuilder_ == null) { + return prebuilds_.size(); + } else { + return prebuildsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuilds(int index) { + if (prebuildsBuilder_ == null) { + return prebuilds_.get(index); + } else { + return prebuildsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder setPrebuilds( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrebuildsIsMutable(); + prebuilds_.set(index, value); + onChanged(); + } else { + prebuildsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder setPrebuilds( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder builderForValue) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.set(index, builderForValue.build()); + onChanged(); + } else { + prebuildsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addPrebuilds(io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrebuildsIsMutable(); + prebuilds_.add(value); + onChanged(); + } else { + prebuildsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addPrebuilds( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrebuildsIsMutable(); + prebuilds_.add(index, value); + onChanged(); + } else { + prebuildsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addPrebuilds( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder builderForValue) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.add(builderForValue.build()); + onChanged(); + } else { + prebuildsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addPrebuilds( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder builderForValue) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.add(index, builderForValue.build()); + onChanged(); + } else { + prebuildsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addAllPrebuilds( + java.lang.Iterable values) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prebuilds_); + onChanged(); + } else { + prebuildsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder clearPrebuilds() { + if (prebuildsBuilder_ == null) { + prebuilds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + prebuildsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder removePrebuilds(int index) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.remove(index); + onChanged(); + } else { + prebuildsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder getPrebuildsBuilder( + int index) { + return getPrebuildsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildsOrBuilder( + int index) { + if (prebuildsBuilder_ == null) { + return prebuilds_.get(index); } else { + return prebuildsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public java.util.List + getPrebuildsOrBuilderList() { + if (prebuildsBuilder_ != null) { + return prebuildsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(prebuilds_); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder addPrebuildsBuilder() { + return getPrebuildsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder addPrebuildsBuilder( + int index) { + return getPrebuildsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public java.util.List + getPrebuildsBuilderList() { + return getPrebuildsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder> + getPrebuildsFieldBuilder() { + if (prebuildsBuilder_ == null) { + prebuildsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder>( + prebuilds_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + prebuilds_ = null; + } + return prebuildsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListPrebuildsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListPrebuildsResponse) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrebuildsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StartPrebuildRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.StartPrebuildRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + * string git_ref = 2 [json_name = "gitRef"]; + * @return The gitRef. + */ + java.lang.String getGitRef(); + /** + * string git_ref = 2 [json_name = "gitRef"]; + * @return The bytes for gitRef. + */ + com.google.protobuf.ByteString + getGitRefBytes(); + } + /** + * Protobuf type {@code gitpod.v1.StartPrebuildRequest} + */ + public static final class StartPrebuildRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.StartPrebuildRequest) + StartPrebuildRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StartPrebuildRequest.class.getName()); + } + // Use StartPrebuildRequest.newBuilder() to construct. + private StartPrebuildRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StartPrebuildRequest() { + configurationId_ = ""; + gitRef_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest.Builder.class); + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIT_REF_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object gitRef_ = ""; + /** + * string git_ref = 2 [json_name = "gitRef"]; + * @return The gitRef. + */ + @java.lang.Override + public java.lang.String getGitRef() { + java.lang.Object ref = gitRef_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRef_ = s; + return s; + } + } + /** + * string git_ref = 2 [json_name = "gitRef"]; + * @return The bytes for gitRef. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGitRefBytes() { + java.lang.Object ref = gitRef_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gitRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitRef_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, gitRef_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitRef_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, gitRef_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest other = (io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest) obj; + + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!getGitRef() + .equals(other.getGitRef())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (37 * hash) + GIT_REF_FIELD_NUMBER; + hash = (53 * hash) + getGitRef().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.StartPrebuildRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.StartPrebuildRequest) + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configurationId_ = ""; + gitRef_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest result = new io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.configurationId_ = configurationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gitRef_ = gitRef_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest.getDefaultInstance()) return this; + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGitRef().isEmpty()) { + gitRef_ = other.gitRef_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + gitRef_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string configuration_id = 1 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object gitRef_ = ""; + /** + * string git_ref = 2 [json_name = "gitRef"]; + * @return The gitRef. + */ + public java.lang.String getGitRef() { + java.lang.Object ref = gitRef_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRef_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string git_ref = 2 [json_name = "gitRef"]; + * @return The bytes for gitRef. + */ + public com.google.protobuf.ByteString + getGitRefBytes() { + java.lang.Object ref = gitRef_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gitRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string git_ref = 2 [json_name = "gitRef"]; + * @param value The gitRef to set. + * @return This builder for chaining. + */ + public Builder setGitRef( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + gitRef_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string git_ref = 2 [json_name = "gitRef"]; + * @return This builder for chaining. + */ + public Builder clearGitRef() { + gitRef_ = getDefaultInstance().getGitRef(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string git_ref = 2 [json_name = "gitRef"]; + * @param value The bytes for gitRef to set. + * @return This builder for chaining. + */ + public Builder setGitRefBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + gitRef_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.StartPrebuildRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.StartPrebuildRequest) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartPrebuildRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StartPrebuildResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.StartPrebuildResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + java.lang.String getPrebuildId(); + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + com.google.protobuf.ByteString + getPrebuildIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.StartPrebuildResponse} + */ + public static final class StartPrebuildResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.StartPrebuildResponse) + StartPrebuildResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StartPrebuildResponse.class.getName()); + } + // Use StartPrebuildResponse.newBuilder() to construct. + private StartPrebuildResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StartPrebuildResponse() { + prebuildId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse.Builder.class); + } + + public static final int PREBUILD_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object prebuildId_ = ""; + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + @java.lang.Override + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, prebuildId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, prebuildId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse other = (io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse) obj; + + if (!getPrebuildId() + .equals(other.getPrebuildId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREBUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.StartPrebuildResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.StartPrebuildResponse) + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prebuildId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_StartPrebuildResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse result = new io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prebuildId_ = prebuildId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse.getDefaultInstance()) return this; + if (!other.getPrebuildId().isEmpty()) { + prebuildId_ = other.prebuildId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + prebuildId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object prebuildId_ = ""; + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prebuildId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildId() { + prebuildId_ = getDefaultInstance().getPrebuildId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The bytes for prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prebuildId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.StartPrebuildResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.StartPrebuildResponse) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartPrebuildResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CancelPrebuildRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CancelPrebuildRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + java.lang.String getPrebuildId(); + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + com.google.protobuf.ByteString + getPrebuildIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.CancelPrebuildRequest} + */ + public static final class CancelPrebuildRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CancelPrebuildRequest) + CancelPrebuildRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CancelPrebuildRequest.class.getName()); + } + // Use CancelPrebuildRequest.newBuilder() to construct. + private CancelPrebuildRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CancelPrebuildRequest() { + prebuildId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest.Builder.class); + } + + public static final int PREBUILD_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object prebuildId_ = ""; + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + @java.lang.Override + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, prebuildId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, prebuildId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest other = (io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest) obj; + + if (!getPrebuildId() + .equals(other.getPrebuildId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREBUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CancelPrebuildRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CancelPrebuildRequest) + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prebuildId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest result = new io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prebuildId_ = prebuildId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest.getDefaultInstance()) return this; + if (!other.getPrebuildId().isEmpty()) { + prebuildId_ = other.prebuildId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + prebuildId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object prebuildId_ = ""; + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prebuildId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildId() { + prebuildId_ = getDefaultInstance().getPrebuildId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The bytes for prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prebuildId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CancelPrebuildRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CancelPrebuildRequest) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelPrebuildRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CancelPrebuildResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CancelPrebuildResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.CancelPrebuildResponse} + */ + public static final class CancelPrebuildResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CancelPrebuildResponse) + CancelPrebuildResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CancelPrebuildResponse.class.getName()); + } + // Use CancelPrebuildResponse.newBuilder() to construct. + private CancelPrebuildResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CancelPrebuildResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse other = (io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CancelPrebuildResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CancelPrebuildResponse) + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_CancelPrebuildResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse result = new io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CancelPrebuildResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CancelPrebuildResponse) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelPrebuildResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WatchPrebuildRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WatchPrebuildRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return Whether the prebuildId field is set. + */ + boolean hasPrebuildId(); + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + java.lang.String getPrebuildId(); + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + com.google.protobuf.ByteString + getPrebuildIdBytes(); + + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return Whether the configurationId field is set. + */ + boolean hasConfigurationId(); + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest.ScopeCase getScopeCase(); + } + /** + * Protobuf type {@code gitpod.v1.WatchPrebuildRequest} + */ + public static final class WatchPrebuildRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WatchPrebuildRequest) + WatchPrebuildRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WatchPrebuildRequest.class.getName()); + } + // Use WatchPrebuildRequest.newBuilder() to construct. + private WatchPrebuildRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WatchPrebuildRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest.Builder.class); + } + + private int scopeCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object scope_; + public enum ScopeCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PREBUILD_ID(1), + CONFIGURATION_ID(2), + SCOPE_NOT_SET(0); + private final int value; + private ScopeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScopeCase valueOf(int value) { + return forNumber(value); + } + + public static ScopeCase forNumber(int value) { + switch (value) { + case 1: return PREBUILD_ID; + case 2: return CONFIGURATION_ID; + case 0: return SCOPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ScopeCase + getScopeCase() { + return ScopeCase.forNumber( + scopeCase_); + } + + public static final int PREBUILD_ID_FIELD_NUMBER = 1; + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return Whether the prebuildId field is set. + */ + public boolean hasPrebuildId() { + return scopeCase_ == 1; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + public java.lang.String getPrebuildId() { + java.lang.Object ref = ""; + if (scopeCase_ == 1) { + ref = scope_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (scopeCase_ == 1) { + scope_ = s; + } + return s; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = ""; + if (scopeCase_ == 1) { + ref = scope_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scopeCase_ == 1) { + scope_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 2; + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return Whether the configurationId field is set. + */ + public boolean hasConfigurationId() { + return scopeCase_ == 2; + } + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = ""; + if (scopeCase_ == 2) { + ref = scope_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (scopeCase_ == 2) { + scope_ = s; + } + return s; + } + } + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = ""; + if (scopeCase_ == 2) { + ref = scope_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scopeCase_ == 2) { + scope_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (scopeCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, scope_); + } + if (scopeCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, scope_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scopeCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, scope_); + } + if (scopeCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, scope_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest other = (io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest) obj; + + if (!getScopeCase().equals(other.getScopeCase())) return false; + switch (scopeCase_) { + case 1: + if (!getPrebuildId() + .equals(other.getPrebuildId())) return false; + break; + case 2: + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (scopeCase_) { + case 1: + hash = (37 * hash) + PREBUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildId().hashCode(); + break; + case 2: + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WatchPrebuildRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WatchPrebuildRequest) + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scopeCase_ = 0; + scope_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest result = new io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest result) { + result.scopeCase_ = scopeCase_; + result.scope_ = this.scope_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest.getDefaultInstance()) return this; + switch (other.getScopeCase()) { + case PREBUILD_ID: { + scopeCase_ = 1; + scope_ = other.scope_; + onChanged(); + break; + } + case CONFIGURATION_ID: { + scopeCase_ = 2; + scope_ = other.scope_; + onChanged(); + break; + } + case SCOPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + scopeCase_ = 1; + scope_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + scopeCase_ = 2; + scope_ = s; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int scopeCase_ = 0; + private java.lang.Object scope_; + public ScopeCase + getScopeCase() { + return ScopeCase.forNumber( + scopeCase_); + } + + public Builder clearScope() { + scopeCase_ = 0; + scope_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return Whether the prebuildId field is set. + */ + @java.lang.Override + public boolean hasPrebuildId() { + return scopeCase_ == 1; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + @java.lang.Override + public java.lang.String getPrebuildId() { + java.lang.Object ref = ""; + if (scopeCase_ == 1) { + ref = scope_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (scopeCase_ == 1) { + scope_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = ""; + if (scopeCase_ == 1) { + ref = scope_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scopeCase_ == 1) { + scope_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + scopeCase_ = 1; + scope_ = value; + onChanged(); + return this; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildId() { + if (scopeCase_ == 1) { + scopeCase_ = 0; + scope_ = null; + onChanged(); + } + return this; + } + /** + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The bytes for prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + scopeCase_ = 1; + scope_ = value; + onChanged(); + return this; + } + + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return Whether the configurationId field is set. + */ + @java.lang.Override + public boolean hasConfigurationId() { + return scopeCase_ == 2; + } + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = ""; + if (scopeCase_ == 2) { + ref = scope_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (scopeCase_ == 2) { + scope_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = ""; + if (scopeCase_ == 2) { + ref = scope_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scopeCase_ == 2) { + scope_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + scopeCase_ = 2; + scope_ = value; + onChanged(); + return this; + } + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + if (scopeCase_ == 2) { + scopeCase_ = 0; + scope_ = null; + onChanged(); + } + return this; + } + /** + * string configuration_id = 2 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + scopeCase_ = 2; + scope_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WatchPrebuildRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WatchPrebuildRequest) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WatchPrebuildRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WatchPrebuildResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WatchPrebuildResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + boolean hasPrebuild(); + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return The prebuild. + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuild(); + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.WatchPrebuildResponse} + */ + public static final class WatchPrebuildResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WatchPrebuildResponse) + WatchPrebuildResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WatchPrebuildResponse.class.getName()); + } + // Use WatchPrebuildResponse.newBuilder() to construct. + private WatchPrebuildResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WatchPrebuildResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse.Builder.class); + } + + private int bitField0_; + public static final int PREBUILD_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild prebuild_; + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + @java.lang.Override + public boolean hasPrebuild() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuild() { + return prebuild_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance() : prebuild_; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildOrBuilder() { + return prebuild_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance() : prebuild_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPrebuild()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPrebuild()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse other = (io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse) obj; + + if (hasPrebuild() != other.hasPrebuild()) return false; + if (hasPrebuild()) { + if (!getPrebuild() + .equals(other.getPrebuild())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrebuild()) { + hash = (37 * hash) + PREBUILD_FIELD_NUMBER; + hash = (53 * hash) + getPrebuild().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WatchPrebuildResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WatchPrebuildResponse) + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPrebuildFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prebuild_ = null; + if (prebuildBuilder_ != null) { + prebuildBuilder_.dispose(); + prebuildBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_WatchPrebuildResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse result = new io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prebuild_ = prebuildBuilder_ == null + ? prebuild_ + : prebuildBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse.getDefaultInstance()) return this; + if (other.hasPrebuild()) { + mergePrebuild(other.getPrebuild()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPrebuildFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild prebuild_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder> prebuildBuilder_; + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + public boolean hasPrebuild() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + * @return The prebuild. + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuild() { + if (prebuildBuilder_ == null) { + return prebuild_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance() : prebuild_; + } else { + return prebuildBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public Builder setPrebuild(io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prebuild_ = value; + } else { + prebuildBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public Builder setPrebuild( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder builderForValue) { + if (prebuildBuilder_ == null) { + prebuild_ = builderForValue.build(); + } else { + prebuildBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public Builder mergePrebuild(io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + prebuild_ != null && + prebuild_ != io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance()) { + getPrebuildBuilder().mergeFrom(value); + } else { + prebuild_ = value; + } + } else { + prebuildBuilder_.mergeFrom(value); + } + if (prebuild_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public Builder clearPrebuild() { + bitField0_ = (bitField0_ & ~0x00000001); + prebuild_ = null; + if (prebuildBuilder_ != null) { + prebuildBuilder_.dispose(); + prebuildBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder getPrebuildBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPrebuildFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildOrBuilder() { + if (prebuildBuilder_ != null) { + return prebuildBuilder_.getMessageOrBuilder(); + } else { + return prebuild_ == null ? + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance() : prebuild_; + } + } + /** + * .gitpod.v1.Prebuild prebuild = 1 [json_name = "prebuild"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder> + getPrebuildFieldBuilder() { + if (prebuildBuilder_ == null) { + prebuildBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder>( + getPrebuild(), + getParentForChildren(), + isClean()); + prebuild_ = null; + } + return prebuildBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WatchPrebuildResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WatchPrebuildResponse) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WatchPrebuildResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOrganizationPrebuildsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationPrebuildsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + * @return The filter. + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter getFilter(); + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.FilterOrBuilder getFilterOrBuilder(); + + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + java.util.List + getSortList(); + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + io.gitpod.publicapi.v1.Sorting.Sort getSort(int index); + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + int getSortCount(); + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + java.util.List + getSortOrBuilderList(); + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationPrebuildsRequest} + */ + public static final class ListOrganizationPrebuildsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationPrebuildsRequest) + ListOrganizationPrebuildsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListOrganizationPrebuildsRequest.class.getName()); + } + // Use ListOrganizationPrebuildsRequest.newBuilder() to construct. + private ListOrganizationPrebuildsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListOrganizationPrebuildsRequest() { + organizationId_ = ""; + sort_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Builder.class); + } + + public interface FilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationPrebuildsRequest.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State state = 1 [json_name = "state"]; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State state = 1 [json_name = "state"]; + * @return The state. + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State getState(); + + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + boolean hasConfiguration(); + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + * @return The configuration. + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration getConfiguration(); + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.ConfigurationOrBuilder getConfigurationOrBuilder(); + + /** + *
+       * Filter the search down by searching for configuration names matching the
+       * query
+       * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + java.lang.String getSearchTerm(); + /** + *
+       * Filter the search down by searching for configuration names matching the
+       * query
+       * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + com.google.protobuf.ByteString + getSearchTermBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationPrebuildsRequest.Filter} + */ + public static final class Filter extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationPrebuildsRequest.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Filter.class.getName()); + } + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Filter() { + state_ = 0; + searchTerm_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Builder.class); + } + + /** + * Protobuf enum {@code gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * STATE_SUCCEEDED = 1; + */ + STATE_SUCCEEDED(1), + /** + * STATE_FAILED = 2; + */ + STATE_FAILED(2), + /** + * STATE_UNFINISHED = 3; + */ + STATE_UNFINISHED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + State.class.getName()); + } + /** + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * STATE_SUCCEEDED = 1; + */ + public static final int STATE_SUCCEEDED_VALUE = 1; + /** + * STATE_FAILED = 2; + */ + public static final int STATE_FAILED_VALUE = 2; + /** + * STATE_UNFINISHED = 3; + */ + public static final int STATE_UNFINISHED_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return STATE_SUCCEEDED; + case 2: return STATE_FAILED; + case 3: return STATE_UNFINISHED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State) + } + + public interface ConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string branch = 2 [json_name = "branch"]; + * @return The branch. + */ + java.lang.String getBranch(); + /** + * string branch = 2 [json_name = "branch"]; + * @return The bytes for branch. + */ + com.google.protobuf.ByteString + getBranchBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration} + */ + public static final class Configuration extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration) + ConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Configuration.class.getName()); + } + // Use Configuration.newBuilder() to construct. + private Configuration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Configuration() { + id_ = ""; + branch_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object branch_ = ""; + /** + * string branch = 2 [json_name = "branch"]; + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } + } + /** + * string branch = 2 [json_name = "branch"]; + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, branch_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, branch_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration other = (io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getBranch() + .equals(other.getBranch())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration) + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.ConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + branch_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration result = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branch_ = branch_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object branch_ = ""; + /** + * string branch = 2 [json_name = "branch"]; + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string branch = 2 [json_name = "branch"]; + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string branch = 2 [json_name = "branch"]; + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string branch = 2 [json_name = "branch"]; + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string branch = 2 [json_name = "branch"]; + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Configuration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State state = 1 [json_name = "state"]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State state = 1 [json_name = "state"]; + * @return The state. + */ + @java.lang.Override public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State getState() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State result = io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State.forNumber(state_); + return result == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State.UNRECOGNIZED : result; + } + + public static final int CONFIGURATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration configuration_; + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + @java.lang.Override + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + * @return The configuration. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration getConfiguration() { + return configuration_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.getDefaultInstance() : configuration_; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.ConfigurationOrBuilder getConfigurationOrBuilder() { + return configuration_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.getDefaultInstance() : configuration_; + } + + public static final int SEARCH_TERM_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object searchTerm_ = ""; + /** + *
+       * Filter the search down by searching for configuration names matching the
+       * query
+       * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + @java.lang.Override + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } + } + /** + *
+       * Filter the search down by searching for configuration names matching the
+       * query
+       * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getConfiguration()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, searchTerm_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfiguration()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, searchTerm_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter other = (io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter) obj; + + if (state_ != other.state_) return false; + if (hasConfiguration() != other.hasConfiguration()) return false; + if (hasConfiguration()) { + if (!getConfiguration() + .equals(other.getConfiguration())) return false; + } + if (!getSearchTerm() + .equals(other.getSearchTerm())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().hashCode(); + } + hash = (37 * hash) + SEARCH_TERM_FIELD_NUMBER; + hash = (53 * hash) + getSearchTerm().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationPrebuildsRequest.Filter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationPrebuildsRequest.Filter) + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + searchTerm_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter result = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.configuration_ = configurationBuilder_ == null + ? configuration_ + : configurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchTerm_ = searchTerm_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + if (!other.getSearchTerm().isEmpty()) { + searchTerm_ = other.searchTerm_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + searchTerm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int state_ = 0; + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State state = 1 [json_name = "state"]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State state = 1 [json_name = "state"]; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State state = 1 [json_name = "state"]; + * @return The state. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State getState() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State result = io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State.forNumber(state_); + return result == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State state = 1 [json_name = "state"]; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.State state = 1 [json_name = "state"]; + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration configuration_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.ConfigurationOrBuilder> configurationBuilder_; + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + * @return Whether the configuration field is set. + */ + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + * @return The configuration. + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.getDefaultInstance() : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + */ + public Builder setConfiguration(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + } else { + configurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + */ + public Builder setConfiguration( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + */ + public Builder mergeConfiguration(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration value) { + if (configurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + configuration_ != null && + configuration_ != io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.getDefaultInstance()) { + getConfigurationBuilder().mergeFrom(value); + } else { + configuration_ = value; + } + } else { + configurationBuilder_.mergeFrom(value); + } + if (configuration_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + */ + public Builder clearConfiguration() { + bitField0_ = (bitField0_ & ~0x00000002); + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.Builder getConfigurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.ConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null ? + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.getDefaultInstance() : configuration_; + } + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter.Configuration configuration = 2 [json_name = "configuration"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.ConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Configuration.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.ConfigurationOrBuilder>( + getConfiguration(), + getParentForChildren(), + isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + + private java.lang.Object searchTerm_ = ""; + /** + *
+         * Filter the search down by searching for configuration names matching the
+         * query
+         * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Filter the search down by searching for configuration names matching the
+         * query
+         * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Filter the search down by searching for configuration names matching the
+         * query
+         * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @param value The searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTerm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + searchTerm_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Filter the search down by searching for configuration names matching the
+         * query
+         * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @return This builder for chaining. + */ + public Builder clearSearchTerm() { + searchTerm_ = getDefaultInstance().getSearchTerm(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+         * Filter the search down by searching for configuration names matching the
+         * query
+         * 
+ * + * string search_term = 3 [json_name = "searchTerm"]; + * @param value The bytes for searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTermBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + searchTerm_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationPrebuildsRequest.Filter) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationPrebuildsRequest.Filter) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 3; + private io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter filter_; + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + * @return The filter. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter getFilter() { + return filter_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.getDefaultInstance() : filter_; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.FilterOrBuilder getFilterOrBuilder() { + return filter_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.getDefaultInstance() : filter_; + } + + public static final int SORT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List sort_; + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public java.util.List getSortList() { + return sort_; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public java.util.List + getSortOrBuilderList() { + return sort_; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public int getSortCount() { + return sort_.size(); + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.Sort getSort(int index) { + return sort_.get(index); + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index) { + return sort_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getFilter()); + } + for (int i = 0; i < sort_.size(); i++) { + output.writeMessage(4, sort_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFilter()); + } + for (int i = 0; i < sort_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, sort_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest other = (io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (!getSortList() + .equals(other.getSortList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (getSortCount() > 0) { + hash = (37 * hash) + SORT_FIELD_NUMBER; + hash = (53 * hash) + getSortList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationPrebuildsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationPrebuildsRequest) + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getFilterFieldBuilder(); + getSortFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + organizationId_ = ""; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + if (sortBuilder_ == null) { + sort_ = java.util.Collections.emptyList(); + } else { + sort_ = null; + sortBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest result = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest result) { + if (sortBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + sort_ = java.util.Collections.unmodifiableList(sort_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.sort_ = sort_; + } else { + result.sort_ = sortBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filterBuilder_ == null + ? filter_ + : filterBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (sortBuilder_ == null) { + if (!other.sort_.isEmpty()) { + if (sort_.isEmpty()) { + sort_ = other.sort_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSortIsMutable(); + sort_.addAll(other.sort_); + } + onChanged(); + } + } else { + if (!other.sort_.isEmpty()) { + if (sortBuilder_.isEmpty()) { + sortBuilder_.dispose(); + sortBuilder_ = null; + sort_ = other.sort_; + bitField0_ = (bitField0_ & ~0x00000008); + sortBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSortFieldBuilder() : null; + } else { + sortBuilder_.addAllMessages(other.sort_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + io.gitpod.publicapi.v1.Sorting.Sort m = + input.readMessage( + io.gitpod.publicapi.v1.Sorting.Sort.parser(), + extensionRegistry); + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(m); + } else { + sortBuilder_.addMessage(m); + } + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter filter_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.FilterOrBuilder> filterBuilder_; + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + * @return The filter. + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + */ + public Builder setFilter(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + */ + public Builder setFilter( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + */ + public Builder mergeFilter(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + filter_ != null && + filter_ != io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Builder getFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.getDefaultInstance() : filter_; + } + } + /** + * .gitpod.v1.ListOrganizationPrebuildsRequest.Filter filter = 3 [json_name = "filter"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.Filter.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest.FilterOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private java.util.List sort_ = + java.util.Collections.emptyList(); + private void ensureSortIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + sort_ = new java.util.ArrayList(sort_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder> sortBuilder_; + + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public java.util.List getSortList() { + if (sortBuilder_ == null) { + return java.util.Collections.unmodifiableList(sort_); + } else { + return sortBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public int getSortCount() { + if (sortBuilder_ == null) { + return sort_.size(); + } else { + return sortBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort getSort(int index) { + if (sortBuilder_ == null) { + return sort_.get(index); + } else { + return sortBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder setSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.set(index, value); + onChanged(); + } else { + sortBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder setSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.set(index, builderForValue.build()); + onChanged(); + } else { + sortBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addSort(io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.add(value); + onChanged(); + } else { + sortBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.add(index, value); + onChanged(); + } else { + sortBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addSort( + io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(builderForValue.build()); + onChanged(); + } else { + sortBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(index, builderForValue.build()); + onChanged(); + } else { + sortBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder addAllSort( + java.lang.Iterable values) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sort_); + onChanged(); + } else { + sortBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder clearSort() { + if (sortBuilder_ == null) { + sort_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + sortBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public Builder removeSort(int index) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.remove(index); + onChanged(); + } else { + sortBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder getSortBuilder( + int index) { + return getSortFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index) { + if (sortBuilder_ == null) { + return sort_.get(index); } else { + return sortBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public java.util.List + getSortOrBuilderList() { + if (sortBuilder_ != null) { + return sortBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sort_); + } + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder addSortBuilder() { + return getSortFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder addSortBuilder( + int index) { + return getSortFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Sort sort = 4 [json_name = "sort"]; + */ + public java.util.List + getSortBuilderList() { + return getSortFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder> + getSortFieldBuilder() { + if (sortBuilder_ == null) { + sortBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder>( + sort_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + sort_ = null; + } + return sortBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationPrebuildsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationPrebuildsRequest) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationPrebuildsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOrganizationPrebuildsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListOrganizationPrebuildsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + java.util.List + getPrebuildsList(); + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuilds(int index); + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + int getPrebuildsCount(); + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + java.util.List + getPrebuildsOrBuilderList(); + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildsOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationPrebuildsResponse} + */ + public static final class ListOrganizationPrebuildsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListOrganizationPrebuildsResponse) + ListOrganizationPrebuildsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListOrganizationPrebuildsResponse.class.getName()); + } + // Use ListOrganizationPrebuildsResponse.newBuilder() to construct. + private ListOrganizationPrebuildsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListOrganizationPrebuildsResponse() { + prebuilds_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + public static final int PREBUILDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List prebuilds_; + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public java.util.List getPrebuildsList() { + return prebuilds_; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public java.util.List + getPrebuildsOrBuilderList() { + return prebuilds_; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public int getPrebuildsCount() { + return prebuilds_.size(); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuilds(int index) { + return prebuilds_.get(index); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildsOrBuilder( + int index) { + return prebuilds_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < prebuilds_.size(); i++) { + output.writeMessage(2, prebuilds_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < prebuilds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, prebuilds_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse other = (io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getPrebuildsList() + .equals(other.getPrebuildsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getPrebuildsCount() > 0) { + hash = (37 * hash) + PREBUILDS_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListOrganizationPrebuildsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListOrganizationPrebuildsResponse) + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse.class, io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getPrebuildsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (prebuildsBuilder_ == null) { + prebuilds_ = java.util.Collections.emptyList(); + } else { + prebuilds_ = null; + prebuildsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse result = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse result) { + if (prebuildsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + prebuilds_ = java.util.Collections.unmodifiableList(prebuilds_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.prebuilds_ = prebuilds_; + } else { + result.prebuilds_ = prebuildsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (prebuildsBuilder_ == null) { + if (!other.prebuilds_.isEmpty()) { + if (prebuilds_.isEmpty()) { + prebuilds_ = other.prebuilds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePrebuildsIsMutable(); + prebuilds_.addAll(other.prebuilds_); + } + onChanged(); + } + } else { + if (!other.prebuilds_.isEmpty()) { + if (prebuildsBuilder_.isEmpty()) { + prebuildsBuilder_.dispose(); + prebuildsBuilder_ = null; + prebuilds_ = other.prebuilds_; + bitField0_ = (bitField0_ & ~0x00000002); + prebuildsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPrebuildsFieldBuilder() : null; + } else { + prebuildsBuilder_.addAllMessages(other.prebuilds_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild m = + input.readMessage( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.parser(), + extensionRegistry); + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.add(m); + } else { + prebuildsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List prebuilds_ = + java.util.Collections.emptyList(); + private void ensurePrebuildsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + prebuilds_ = new java.util.ArrayList(prebuilds_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder> prebuildsBuilder_; + + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public java.util.List getPrebuildsList() { + if (prebuildsBuilder_ == null) { + return java.util.Collections.unmodifiableList(prebuilds_); + } else { + return prebuildsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public int getPrebuildsCount() { + if (prebuildsBuilder_ == null) { + return prebuilds_.size(); + } else { + return prebuildsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getPrebuilds(int index) { + if (prebuildsBuilder_ == null) { + return prebuilds_.get(index); + } else { + return prebuildsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder setPrebuilds( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrebuildsIsMutable(); + prebuilds_.set(index, value); + onChanged(); + } else { + prebuildsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder setPrebuilds( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder builderForValue) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.set(index, builderForValue.build()); + onChanged(); + } else { + prebuildsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addPrebuilds(io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrebuildsIsMutable(); + prebuilds_.add(value); + onChanged(); + } else { + prebuildsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addPrebuilds( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild value) { + if (prebuildsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrebuildsIsMutable(); + prebuilds_.add(index, value); + onChanged(); + } else { + prebuildsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addPrebuilds( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder builderForValue) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.add(builderForValue.build()); + onChanged(); + } else { + prebuildsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addPrebuilds( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder builderForValue) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.add(index, builderForValue.build()); + onChanged(); + } else { + prebuildsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder addAllPrebuilds( + java.lang.Iterable values) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prebuilds_); + onChanged(); + } else { + prebuildsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder clearPrebuilds() { + if (prebuildsBuilder_ == null) { + prebuilds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + prebuildsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public Builder removePrebuilds(int index) { + if (prebuildsBuilder_ == null) { + ensurePrebuildsIsMutable(); + prebuilds_.remove(index); + onChanged(); + } else { + prebuildsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder getPrebuildsBuilder( + int index) { + return getPrebuildsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder getPrebuildsOrBuilder( + int index) { + if (prebuildsBuilder_ == null) { + return prebuilds_.get(index); } else { + return prebuildsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public java.util.List + getPrebuildsOrBuilderList() { + if (prebuildsBuilder_ != null) { + return prebuildsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(prebuilds_); + } + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder addPrebuildsBuilder() { + return getPrebuildsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder addPrebuildsBuilder( + int index) { + return getPrebuildsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Prebuild prebuilds = 2 [json_name = "prebuilds"]; + */ + public java.util.List + getPrebuildsBuilderList() { + return getPrebuildsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder> + getPrebuildsFieldBuilder() { + if (prebuildsBuilder_ == null) { + prebuildsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder>( + prebuilds_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + prebuilds_ = null; + } + return prebuildsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListOrganizationPrebuildsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListOrganizationPrebuildsResponse) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationPrebuildsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrebuildOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.Prebuild) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * it is for backward compatiblity with the current dashboard, use id instead
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.Prebuild.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=100 + * @return The workspaceId. + */ + @java.lang.Deprecated java.lang.String getWorkspaceId(); + /** + *
+     * it is for backward compatiblity with the current dashboard, use id instead
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.Prebuild.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=100 + * @return The bytes for workspaceId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + * string based_on_prebuild_id = 3 [json_name = "basedOnPrebuildId"]; + * @return The basedOnPrebuildId. + */ + java.lang.String getBasedOnPrebuildId(); + /** + * string based_on_prebuild_id = 3 [json_name = "basedOnPrebuildId"]; + * @return The bytes for basedOnPrebuildId. + */ + com.google.protobuf.ByteString + getBasedOnPrebuildIdBytes(); + + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + * string ref = 5 [json_name = "ref"]; + * @return The ref. + */ + java.lang.String getRef(); + /** + * string ref = 5 [json_name = "ref"]; + * @return The bytes for ref. + */ + com.google.protobuf.ByteString + getRefBytes(); + + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + * @return Whether the commit field is set. + */ + boolean hasCommit(); + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + * @return The commit. + */ + io.gitpod.publicapi.v1.Scm.Commit getCommit(); + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + */ + io.gitpod.publicapi.v1.Scm.CommitOrBuilder getCommitOrBuilder(); + + /** + * string context_url = 7 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + java.lang.String getContextUrl(); + /** + * string context_url = 7 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + com.google.protobuf.ByteString + getContextUrlBytes(); + + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + * @return The status. + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus getStatus(); + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatusOrBuilder getStatusOrBuilder(); + + /** + * string configuration_name = 9 [json_name = "configurationName"]; + * @return The configurationName. + */ + java.lang.String getConfigurationName(); + /** + * string configuration_name = 9 [json_name = "configurationName"]; + * @return The bytes for configurationName. + */ + com.google.protobuf.ByteString + getConfigurationNameBytes(); + } + /** + * Protobuf type {@code gitpod.v1.Prebuild} + */ + public static final class Prebuild extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.Prebuild) + PrebuildOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Prebuild.class.getName()); + } + // Use Prebuild.newBuilder() to construct. + private Prebuild(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Prebuild() { + id_ = ""; + workspaceId_ = ""; + basedOnPrebuildId_ = ""; + configurationId_ = ""; + ref_ = ""; + contextUrl_ = ""; + configurationName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_Prebuild_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_Prebuild_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.class, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * it is for backward compatiblity with the current dashboard, use id instead
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.Prebuild.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=100 + * @return The workspaceId. + */ + @java.lang.Override + @java.lang.Deprecated public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * it is for backward compatiblity with the current dashboard, use id instead
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.Prebuild.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=100 + * @return The bytes for workspaceId. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BASED_ON_PREBUILD_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object basedOnPrebuildId_ = ""; + /** + * string based_on_prebuild_id = 3 [json_name = "basedOnPrebuildId"]; + * @return The basedOnPrebuildId. + */ + @java.lang.Override + public java.lang.String getBasedOnPrebuildId() { + java.lang.Object ref = basedOnPrebuildId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + basedOnPrebuildId_ = s; + return s; + } + } + /** + * string based_on_prebuild_id = 3 [json_name = "basedOnPrebuildId"]; + * @return The bytes for basedOnPrebuildId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBasedOnPrebuildIdBytes() { + java.lang.Object ref = basedOnPrebuildId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + basedOnPrebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REF_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object ref_ = ""; + /** + * string ref = 5 [json_name = "ref"]; + * @return The ref. + */ + @java.lang.Override + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } + } + /** + * string ref = 5 [json_name = "ref"]; + * @return The bytes for ref. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_FIELD_NUMBER = 6; + private io.gitpod.publicapi.v1.Scm.Commit commit_; + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + * @return Whether the commit field is set. + */ + @java.lang.Override + public boolean hasCommit() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + * @return The commit. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Commit getCommit() { + return commit_ == null ? io.gitpod.publicapi.v1.Scm.Commit.getDefaultInstance() : commit_; + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.CommitOrBuilder getCommitOrBuilder() { + return commit_ == null ? io.gitpod.publicapi.v1.Scm.Commit.getDefaultInstance() : commit_; + } + + public static final int CONTEXT_URL_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object contextUrl_ = ""; + /** + * string context_url = 7 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + @java.lang.Override + public java.lang.String getContextUrl() { + java.lang.Object ref = contextUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextUrl_ = s; + return s; + } + } + /** + * string context_url = 7 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = contextUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 8; + private io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus status_; + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus getStatus() { + return status_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.getDefaultInstance() : status_; + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.getDefaultInstance() : status_; + } + + public static final int CONFIGURATION_NAME_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationName_ = ""; + /** + * string configuration_name = 9 [json_name = "configurationName"]; + * @return The configurationName. + */ + @java.lang.Override + public java.lang.String getConfigurationName() { + java.lang.Object ref = configurationName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationName_ = s; + return s; + } + } + /** + * string configuration_name = 9 [json_name = "configurationName"]; + * @return The bytes for configurationName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationNameBytes() { + java.lang.Object ref = configurationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, workspaceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(basedOnPrebuildId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, basedOnPrebuildId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, ref_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCommit()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, contextUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getStatus()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, configurationName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workspaceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(basedOnPrebuildId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, basedOnPrebuildId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, ref_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCommit()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, contextUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getStatus()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, configurationName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild other = (io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getBasedOnPrebuildId() + .equals(other.getBasedOnPrebuildId())) return false; + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!getRef() + .equals(other.getRef())) return false; + if (hasCommit() != other.hasCommit()) return false; + if (hasCommit()) { + if (!getCommit() + .equals(other.getCommit())) return false; + } + if (!getContextUrl() + .equals(other.getContextUrl())) return false; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getConfigurationName() + .equals(other.getConfigurationName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (37 * hash) + BASED_ON_PREBUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getBasedOnPrebuildId().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (37 * hash) + REF_FIELD_NUMBER; + hash = (53 * hash) + getRef().hashCode(); + if (hasCommit()) { + hash = (37 * hash) + COMMIT_FIELD_NUMBER; + hash = (53 * hash) + getCommit().hashCode(); + } + hash = (37 * hash) + CONTEXT_URL_FIELD_NUMBER; + hash = (53 * hash) + getContextUrl().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (37 * hash) + CONFIGURATION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.Prebuild} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.Prebuild) + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_Prebuild_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_Prebuild_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.class, io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCommitFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + workspaceId_ = ""; + basedOnPrebuildId_ = ""; + configurationId_ = ""; + ref_ = ""; + commit_ = null; + if (commitBuilder_ != null) { + commitBuilder_.dispose(); + commitBuilder_ = null; + } + contextUrl_ = ""; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + configurationName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_Prebuild_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild result = new io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspaceId_ = workspaceId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.basedOnPrebuildId_ = basedOnPrebuildId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.configurationId_ = configurationId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ref_ = ref_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.commit_ = commitBuilder_ == null + ? commit_ + : commitBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.contextUrl_ = contextUrl_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.configurationName_ = configurationName_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getBasedOnPrebuildId().isEmpty()) { + basedOnPrebuildId_ = other.basedOnPrebuildId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getRef().isEmpty()) { + ref_ = other.ref_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCommit()) { + mergeCommit(other.getCommit()); + } + if (!other.getContextUrl().isEmpty()) { + contextUrl_ = other.contextUrl_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (!other.getConfigurationName().isEmpty()) { + configurationName_ = other.configurationName_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + basedOnPrebuildId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + ref_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCommitFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + contextUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + configurationName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * it is for backward compatiblity with the current dashboard, use id instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.Prebuild.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=100 + * @return The workspaceId. + */ + @java.lang.Deprecated public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * it is for backward compatiblity with the current dashboard, use id instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.Prebuild.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=100 + * @return The bytes for workspaceId. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * it is for backward compatiblity with the current dashboard, use id instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.Prebuild.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=100 + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * it is for backward compatiblity with the current dashboard, use id instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.Prebuild.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=100 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * it is for backward compatiblity with the current dashboard, use id instead
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId", deprecated = true]; + * @deprecated gitpod.v1.Prebuild.workspace_id is deprecated. + * See gitpod/v1/prebuild.proto;l=100 + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object basedOnPrebuildId_ = ""; + /** + * string based_on_prebuild_id = 3 [json_name = "basedOnPrebuildId"]; + * @return The basedOnPrebuildId. + */ + public java.lang.String getBasedOnPrebuildId() { + java.lang.Object ref = basedOnPrebuildId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + basedOnPrebuildId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string based_on_prebuild_id = 3 [json_name = "basedOnPrebuildId"]; + * @return The bytes for basedOnPrebuildId. + */ + public com.google.protobuf.ByteString + getBasedOnPrebuildIdBytes() { + java.lang.Object ref = basedOnPrebuildId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + basedOnPrebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string based_on_prebuild_id = 3 [json_name = "basedOnPrebuildId"]; + * @param value The basedOnPrebuildId to set. + * @return This builder for chaining. + */ + public Builder setBasedOnPrebuildId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + basedOnPrebuildId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string based_on_prebuild_id = 3 [json_name = "basedOnPrebuildId"]; + * @return This builder for chaining. + */ + public Builder clearBasedOnPrebuildId() { + basedOnPrebuildId_ = getDefaultInstance().getBasedOnPrebuildId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string based_on_prebuild_id = 3 [json_name = "basedOnPrebuildId"]; + * @param value The bytes for basedOnPrebuildId to set. + * @return This builder for chaining. + */ + public Builder setBasedOnPrebuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + basedOnPrebuildId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string configuration_id = 4 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object ref_ = ""; + /** + * string ref = 5 [json_name = "ref"]; + * @return The ref. + */ + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ref = 5 [json_name = "ref"]; + * @return The bytes for ref. + */ + public com.google.protobuf.ByteString + getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ref = 5 [json_name = "ref"]; + * @param value The ref to set. + * @return This builder for chaining. + */ + public Builder setRef( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ref_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string ref = 5 [json_name = "ref"]; + * @return This builder for chaining. + */ + public Builder clearRef() { + ref_ = getDefaultInstance().getRef(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string ref = 5 [json_name = "ref"]; + * @param value The bytes for ref to set. + * @return This builder for chaining. + */ + public Builder setRefBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ref_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Scm.Commit commit_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Scm.Commit, io.gitpod.publicapi.v1.Scm.Commit.Builder, io.gitpod.publicapi.v1.Scm.CommitOrBuilder> commitBuilder_; + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + * @return Whether the commit field is set. + */ + public boolean hasCommit() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + * @return The commit. + */ + public io.gitpod.publicapi.v1.Scm.Commit getCommit() { + if (commitBuilder_ == null) { + return commit_ == null ? io.gitpod.publicapi.v1.Scm.Commit.getDefaultInstance() : commit_; + } else { + return commitBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + */ + public Builder setCommit(io.gitpod.publicapi.v1.Scm.Commit value) { + if (commitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commit_ = value; + } else { + commitBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + */ + public Builder setCommit( + io.gitpod.publicapi.v1.Scm.Commit.Builder builderForValue) { + if (commitBuilder_ == null) { + commit_ = builderForValue.build(); + } else { + commitBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + */ + public Builder mergeCommit(io.gitpod.publicapi.v1.Scm.Commit value) { + if (commitBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + commit_ != null && + commit_ != io.gitpod.publicapi.v1.Scm.Commit.getDefaultInstance()) { + getCommitBuilder().mergeFrom(value); + } else { + commit_ = value; + } + } else { + commitBuilder_.mergeFrom(value); + } + if (commit_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + */ + public Builder clearCommit() { + bitField0_ = (bitField0_ & ~0x00000020); + commit_ = null; + if (commitBuilder_ != null) { + commitBuilder_.dispose(); + commitBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + */ + public io.gitpod.publicapi.v1.Scm.Commit.Builder getCommitBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCommitFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + */ + public io.gitpod.publicapi.v1.Scm.CommitOrBuilder getCommitOrBuilder() { + if (commitBuilder_ != null) { + return commitBuilder_.getMessageOrBuilder(); + } else { + return commit_ == null ? + io.gitpod.publicapi.v1.Scm.Commit.getDefaultInstance() : commit_; + } + } + /** + * .gitpod.v1.Commit commit = 6 [json_name = "commit"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Scm.Commit, io.gitpod.publicapi.v1.Scm.Commit.Builder, io.gitpod.publicapi.v1.Scm.CommitOrBuilder> + getCommitFieldBuilder() { + if (commitBuilder_ == null) { + commitBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Scm.Commit, io.gitpod.publicapi.v1.Scm.Commit.Builder, io.gitpod.publicapi.v1.Scm.CommitOrBuilder>( + getCommit(), + getParentForChildren(), + isClean()); + commit_ = null; + } + return commitBuilder_; + } + + private java.lang.Object contextUrl_ = ""; + /** + * string context_url = 7 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + public java.lang.String getContextUrl() { + java.lang.Object ref = contextUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string context_url = 7 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = contextUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string context_url = 7 [json_name = "contextUrl"]; + * @param value The contextUrl to set. + * @return This builder for chaining. + */ + public Builder setContextUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + contextUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string context_url = 7 [json_name = "contextUrl"]; + * @return This builder for chaining. + */ + public Builder clearContextUrl() { + contextUrl_ = getDefaultInstance().getContextUrl(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string context_url = 7 [json_name = "contextUrl"]; + * @param value The bytes for contextUrl to set. + * @return This builder for chaining. + */ + public Builder setContextUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + contextUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus status_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatusOrBuilder> statusBuilder_; + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + * @return The status. + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + */ + public Builder setStatus(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + */ + public Builder setStatus( + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + */ + public Builder mergeStatus(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + status_ != null && + status_ != io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000080); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.getDefaultInstance() : status_; + } + } + /** + * .gitpod.v1.PrebuildStatus status = 8 [json_name = "status"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private java.lang.Object configurationName_ = ""; + /** + * string configuration_name = 9 [json_name = "configurationName"]; + * @return The configurationName. + */ + public java.lang.String getConfigurationName() { + java.lang.Object ref = configurationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_name = 9 [json_name = "configurationName"]; + * @return The bytes for configurationName. + */ + public com.google.protobuf.ByteString + getConfigurationNameBytes() { + java.lang.Object ref = configurationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_name = 9 [json_name = "configurationName"]; + * @param value The configurationName to set. + * @return This builder for chaining. + */ + public Builder setConfigurationName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * string configuration_name = 9 [json_name = "configurationName"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationName() { + configurationName_ = getDefaultInstance().getConfigurationName(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * string configuration_name = 9 [json_name = "configurationName"]; + * @param value The bytes for configurationName to set. + * @return This builder for chaining. + */ + public Builder setConfigurationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.Prebuild) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.Prebuild) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Prebuild parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.Prebuild getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrebuildStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.PrebuildStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + * @return Whether the phase field is set. + */ + boolean hasPhase(); + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + * @return The phase. + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase getPhase(); + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhaseOrBuilder getPhaseOrBuilder(); + + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 3 [json_name = "message"]; + * @return The message. + */ + java.lang.String getMessage(); + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 3 [json_name = "message"]; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The logUrl. + */ + java.lang.String getLogUrl(); + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The bytes for logUrl. + */ + com.google.protobuf.ByteString + getLogUrlBytes(); + + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + java.util.List + getTaskLogsList(); + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog getTaskLogs(int index); + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + int getTaskLogsCount(); + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + java.util.List + getTaskLogsOrBuilderList(); + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLogOrBuilder getTaskLogsOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.PrebuildStatus} + */ + public static final class PrebuildStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.PrebuildStatus) + PrebuildStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PrebuildStatus.class.getName()); + } + // Use PrebuildStatus.newBuilder() to construct. + private PrebuildStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrebuildStatus() { + message_ = ""; + logUrl_ = ""; + taskLogs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.class, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.Builder.class); + } + + private int bitField0_; + public static final int PHASE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase phase_; + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + * @return Whether the phase field is set. + */ + @java.lang.Override + public boolean hasPhase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + * @return The phase. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase getPhase() { + return phase_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.getDefaultInstance() : phase_; + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhaseOrBuilder getPhaseOrBuilder() { + return phase_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.getDefaultInstance() : phase_; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 3 [json_name = "message"]; + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 3 [json_name = "message"]; + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOG_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object logUrl_ = ""; + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The logUrl. + */ + @java.lang.Override + public java.lang.String getLogUrl() { + java.lang.Object ref = logUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logUrl_ = s; + return s; + } + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The bytes for logUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLogUrlBytes() { + java.lang.Object ref = logUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_LOGS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List taskLogs_; + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + @java.lang.Override + public java.util.List getTaskLogsList() { + return taskLogs_; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + @java.lang.Override + public java.util.List + getTaskLogsOrBuilderList() { + return taskLogs_; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + @java.lang.Override + public int getTaskLogsCount() { + return taskLogs_.size(); + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog getTaskLogs(int index) { + return taskLogs_.get(index); + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLogOrBuilder getTaskLogsOrBuilder( + int index) { + return taskLogs_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPhase()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, message_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, logUrl_); + } + for (int i = 0; i < taskLogs_.size(); i++) { + output.writeMessage(5, taskLogs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPhase()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, message_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, logUrl_); + } + for (int i = 0; i < taskLogs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, taskLogs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus other = (io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus) obj; + + if (hasPhase() != other.hasPhase()) return false; + if (hasPhase()) { + if (!getPhase() + .equals(other.getPhase())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getLogUrl() + .equals(other.getLogUrl())) return false; + if (!getTaskLogsList() + .equals(other.getTaskLogsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPhase()) { + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + getPhase().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + LOG_URL_FIELD_NUMBER; + hash = (53 * hash) + getLogUrl().hashCode(); + if (getTaskLogsCount() > 0) { + hash = (37 * hash) + TASK_LOGS_FIELD_NUMBER; + hash = (53 * hash) + getTaskLogsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.PrebuildStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.PrebuildStatus) + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.class, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPhaseFieldBuilder(); + getStartTimeFieldBuilder(); + getTaskLogsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phase_ = null; + if (phaseBuilder_ != null) { + phaseBuilder_.dispose(); + phaseBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + message_ = ""; + logUrl_ = ""; + if (taskLogsBuilder_ == null) { + taskLogs_ = java.util.Collections.emptyList(); + } else { + taskLogs_ = null; + taskLogsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildStatus_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus result = new io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus result) { + if (taskLogsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + taskLogs_ = java.util.Collections.unmodifiableList(taskLogs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.taskLogs_ = taskLogs_; + } else { + result.taskLogs_ = taskLogsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phase_ = phaseBuilder_ == null + ? phase_ + : phaseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.logUrl_ = logUrl_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus.getDefaultInstance()) return this; + if (other.hasPhase()) { + mergePhase(other.getPhase()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLogUrl().isEmpty()) { + logUrl_ = other.logUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (taskLogsBuilder_ == null) { + if (!other.taskLogs_.isEmpty()) { + if (taskLogs_.isEmpty()) { + taskLogs_ = other.taskLogs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTaskLogsIsMutable(); + taskLogs_.addAll(other.taskLogs_); + } + onChanged(); + } + } else { + if (!other.taskLogs_.isEmpty()) { + if (taskLogsBuilder_.isEmpty()) { + taskLogsBuilder_.dispose(); + taskLogsBuilder_ = null; + taskLogs_ = other.taskLogs_; + bitField0_ = (bitField0_ & ~0x00000010); + taskLogsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getTaskLogsFieldBuilder() : null; + } else { + taskLogsBuilder_.addAllMessages(other.taskLogs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPhaseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + logUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog m = + input.readMessage( + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.parser(), + extensionRegistry); + if (taskLogsBuilder_ == null) { + ensureTaskLogsIsMutable(); + taskLogs_.add(m); + } else { + taskLogsBuilder_.addMessage(m); + } + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase phase_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhaseOrBuilder> phaseBuilder_; + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + * @return Whether the phase field is set. + */ + public boolean hasPhase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + * @return The phase. + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase getPhase() { + if (phaseBuilder_ == null) { + return phase_ == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.getDefaultInstance() : phase_; + } else { + return phaseBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + */ + public Builder setPhase(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase value) { + if (phaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + phase_ = value; + } else { + phaseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + */ + public Builder setPhase( + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Builder builderForValue) { + if (phaseBuilder_ == null) { + phase_ = builderForValue.build(); + } else { + phaseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + */ + public Builder mergePhase(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase value) { + if (phaseBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + phase_ != null && + phase_ != io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.getDefaultInstance()) { + getPhaseBuilder().mergeFrom(value); + } else { + phase_ = value; + } + } else { + phaseBuilder_.mergeFrom(value); + } + if (phase_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + */ + public Builder clearPhase() { + bitField0_ = (bitField0_ & ~0x00000001); + phase_ = null; + if (phaseBuilder_ != null) { + phaseBuilder_.dispose(); + phaseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Builder getPhaseBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPhaseFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhaseOrBuilder getPhaseOrBuilder() { + if (phaseBuilder_ != null) { + return phaseBuilder_.getMessageOrBuilder(); + } else { + return phase_ == null ? + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.getDefaultInstance() : phase_; + } + } + /** + * .gitpod.v1.PrebuildPhase phase = 1 [json_name = "phase"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhaseOrBuilder> + getPhaseFieldBuilder() { + if (phaseBuilder_ == null) { + phaseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhaseOrBuilder>( + getPhase(), + getParentForChildren(), + isClean()); + phase_ = null; + } + return phaseBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * .google.protobuf.Timestamp start_time = 2 [json_name = "startTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private java.lang.Object message_ = ""; + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 3 [json_name = "message"]; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 3 [json_name = "message"]; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 3 [json_name = "message"]; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + message_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 3 [json_name = "message"]; + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * message is an optional human-readable message detailing the current phase
+       * 
+ * + * string message = 3 [json_name = "message"]; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object logUrl_ = ""; + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The logUrl. + */ + public java.lang.String getLogUrl() { + java.lang.Object ref = logUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The bytes for logUrl. + */ + public com.google.protobuf.ByteString + getLogUrlBytes() { + java.lang.Object ref = logUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @param value The logUrl to set. + * @return This builder for chaining. + */ + public Builder setLogUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + logUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return This builder for chaining. + */ + public Builder clearLogUrl() { + logUrl_ = getDefaultInstance().getLogUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @param value The bytes for logUrl to set. + * @return This builder for chaining. + */ + public Builder setLogUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + logUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List taskLogs_ = + java.util.Collections.emptyList(); + private void ensureTaskLogsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + taskLogs_ = new java.util.ArrayList(taskLogs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLogOrBuilder> taskLogsBuilder_; + + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public java.util.List getTaskLogsList() { + if (taskLogsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taskLogs_); + } else { + return taskLogsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public int getTaskLogsCount() { + if (taskLogsBuilder_ == null) { + return taskLogs_.size(); + } else { + return taskLogsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog getTaskLogs(int index) { + if (taskLogsBuilder_ == null) { + return taskLogs_.get(index); + } else { + return taskLogsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public Builder setTaskLogs( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog value) { + if (taskLogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskLogsIsMutable(); + taskLogs_.set(index, value); + onChanged(); + } else { + taskLogsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public Builder setTaskLogs( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder builderForValue) { + if (taskLogsBuilder_ == null) { + ensureTaskLogsIsMutable(); + taskLogs_.set(index, builderForValue.build()); + onChanged(); + } else { + taskLogsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public Builder addTaskLogs(io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog value) { + if (taskLogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskLogsIsMutable(); + taskLogs_.add(value); + onChanged(); + } else { + taskLogsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public Builder addTaskLogs( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog value) { + if (taskLogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskLogsIsMutable(); + taskLogs_.add(index, value); + onChanged(); + } else { + taskLogsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public Builder addTaskLogs( + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder builderForValue) { + if (taskLogsBuilder_ == null) { + ensureTaskLogsIsMutable(); + taskLogs_.add(builderForValue.build()); + onChanged(); + } else { + taskLogsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public Builder addTaskLogs( + int index, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder builderForValue) { + if (taskLogsBuilder_ == null) { + ensureTaskLogsIsMutable(); + taskLogs_.add(index, builderForValue.build()); + onChanged(); + } else { + taskLogsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public Builder addAllTaskLogs( + java.lang.Iterable values) { + if (taskLogsBuilder_ == null) { + ensureTaskLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taskLogs_); + onChanged(); + } else { + taskLogsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public Builder clearTaskLogs() { + if (taskLogsBuilder_ == null) { + taskLogs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + taskLogsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public Builder removeTaskLogs(int index) { + if (taskLogsBuilder_ == null) { + ensureTaskLogsIsMutable(); + taskLogs_.remove(index); + onChanged(); + } else { + taskLogsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder getTaskLogsBuilder( + int index) { + return getTaskLogsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLogOrBuilder getTaskLogsOrBuilder( + int index) { + if (taskLogsBuilder_ == null) { + return taskLogs_.get(index); } else { + return taskLogsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public java.util.List + getTaskLogsOrBuilderList() { + if (taskLogsBuilder_ != null) { + return taskLogsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taskLogs_); + } + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder addTaskLogsBuilder() { + return getTaskLogsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder addTaskLogsBuilder( + int index) { + return getTaskLogsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.TaskLog task_logs = 5 [json_name = "taskLogs"]; + */ + public java.util.List + getTaskLogsBuilderList() { + return getTaskLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLogOrBuilder> + getTaskLogsFieldBuilder() { + if (taskLogsBuilder_ == null) { + taskLogsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLogOrBuilder>( + taskLogs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + taskLogs_ = null; + } + return taskLogsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.PrebuildStatus) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.PrebuildStatus) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuildStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.TaskLog) + com.google.protobuf.MessageOrBuilder { + + /** + * string task_id = 1 [json_name = "taskId"]; + * @return The taskId. + */ + java.lang.String getTaskId(); + /** + * string task_id = 1 [json_name = "taskId"]; + * @return The bytes for taskId. + */ + com.google.protobuf.ByteString + getTaskIdBytes(); + + /** + * string task_label = 2 [json_name = "taskLabel"]; + * @return The taskLabel. + */ + java.lang.String getTaskLabel(); + /** + * string task_label = 2 [json_name = "taskLabel"]; + * @return The bytes for taskLabel. + */ + com.google.protobuf.ByteString + getTaskLabelBytes(); + + /** + * string task_json = 3 [json_name = "taskJson"]; + * @return The taskJson. + */ + java.lang.String getTaskJson(); + /** + * string task_json = 3 [json_name = "taskJson"]; + * @return The bytes for taskJson. + */ + com.google.protobuf.ByteString + getTaskJsonBytes(); + + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The logUrl. + */ + java.lang.String getLogUrl(); + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The bytes for logUrl. + */ + com.google.protobuf.ByteString + getLogUrlBytes(); + } + /** + * Protobuf type {@code gitpod.v1.TaskLog} + */ + public static final class TaskLog extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.TaskLog) + TaskLogOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + TaskLog.class.getName()); + } + // Use TaskLog.newBuilder() to construct. + private TaskLog(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TaskLog() { + taskId_ = ""; + taskLabel_ = ""; + taskJson_ = ""; + logUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_TaskLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.class, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder.class); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object taskId_ = ""; + /** + * string task_id = 1 [json_name = "taskId"]; + * @return The taskId. + */ + @java.lang.Override + public java.lang.String getTaskId() { + java.lang.Object ref = taskId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskId_ = s; + return s; + } + } + /** + * string task_id = 1 [json_name = "taskId"]; + * @return The bytes for taskId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTaskIdBytes() { + java.lang.Object ref = taskId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_LABEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object taskLabel_ = ""; + /** + * string task_label = 2 [json_name = "taskLabel"]; + * @return The taskLabel. + */ + @java.lang.Override + public java.lang.String getTaskLabel() { + java.lang.Object ref = taskLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskLabel_ = s; + return s; + } + } + /** + * string task_label = 2 [json_name = "taskLabel"]; + * @return The bytes for taskLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTaskLabelBytes() { + java.lang.Object ref = taskLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_JSON_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object taskJson_ = ""; + /** + * string task_json = 3 [json_name = "taskJson"]; + * @return The taskJson. + */ + @java.lang.Override + public java.lang.String getTaskJson() { + java.lang.Object ref = taskJson_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskJson_ = s; + return s; + } + } + /** + * string task_json = 3 [json_name = "taskJson"]; + * @return The bytes for taskJson. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTaskJsonBytes() { + java.lang.Object ref = taskJson_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOG_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object logUrl_ = ""; + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The logUrl. + */ + @java.lang.Override + public java.lang.String getLogUrl() { + java.lang.Object ref = logUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logUrl_ = s; + return s; + } + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The bytes for logUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLogUrlBytes() { + java.lang.Object ref = logUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, taskId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskLabel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, taskLabel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskJson_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, taskJson_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, logUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, taskId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskLabel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, taskLabel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskJson_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, taskJson_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, logUrl_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog other = (io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog) obj; + + if (!getTaskId() + .equals(other.getTaskId())) return false; + if (!getTaskLabel() + .equals(other.getTaskLabel())) return false; + if (!getTaskJson() + .equals(other.getTaskJson())) return false; + if (!getLogUrl() + .equals(other.getLogUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + hash = (37 * hash) + TASK_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getTaskLabel().hashCode(); + hash = (37 * hash) + TASK_JSON_FIELD_NUMBER; + hash = (53 * hash) + getTaskJson().hashCode(); + hash = (37 * hash) + LOG_URL_FIELD_NUMBER; + hash = (53 * hash) + getLogUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.TaskLog} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.TaskLog) + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_TaskLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.class, io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + taskId_ = ""; + taskLabel_ = ""; + taskJson_ = ""; + logUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_TaskLog_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog result = new io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.taskId_ = taskId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.taskLabel_ = taskLabel_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.taskJson_ = taskJson_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.logUrl_ = logUrl_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog.getDefaultInstance()) return this; + if (!other.getTaskId().isEmpty()) { + taskId_ = other.taskId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTaskLabel().isEmpty()) { + taskLabel_ = other.taskLabel_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTaskJson().isEmpty()) { + taskJson_ = other.taskJson_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLogUrl().isEmpty()) { + logUrl_ = other.logUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + taskId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + taskLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + taskJson_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + logUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object taskId_ = ""; + /** + * string task_id = 1 [json_name = "taskId"]; + * @return The taskId. + */ + public java.lang.String getTaskId() { + java.lang.Object ref = taskId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string task_id = 1 [json_name = "taskId"]; + * @return The bytes for taskId. + */ + public com.google.protobuf.ByteString + getTaskIdBytes() { + java.lang.Object ref = taskId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string task_id = 1 [json_name = "taskId"]; + * @param value The taskId to set. + * @return This builder for chaining. + */ + public Builder setTaskId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + taskId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string task_id = 1 [json_name = "taskId"]; + * @return This builder for chaining. + */ + public Builder clearTaskId() { + taskId_ = getDefaultInstance().getTaskId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string task_id = 1 [json_name = "taskId"]; + * @param value The bytes for taskId to set. + * @return This builder for chaining. + */ + public Builder setTaskIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + taskId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object taskLabel_ = ""; + /** + * string task_label = 2 [json_name = "taskLabel"]; + * @return The taskLabel. + */ + public java.lang.String getTaskLabel() { + java.lang.Object ref = taskLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string task_label = 2 [json_name = "taskLabel"]; + * @return The bytes for taskLabel. + */ + public com.google.protobuf.ByteString + getTaskLabelBytes() { + java.lang.Object ref = taskLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string task_label = 2 [json_name = "taskLabel"]; + * @param value The taskLabel to set. + * @return This builder for chaining. + */ + public Builder setTaskLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + taskLabel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string task_label = 2 [json_name = "taskLabel"]; + * @return This builder for chaining. + */ + public Builder clearTaskLabel() { + taskLabel_ = getDefaultInstance().getTaskLabel(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string task_label = 2 [json_name = "taskLabel"]; + * @param value The bytes for taskLabel to set. + * @return This builder for chaining. + */ + public Builder setTaskLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + taskLabel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object taskJson_ = ""; + /** + * string task_json = 3 [json_name = "taskJson"]; + * @return The taskJson. + */ + public java.lang.String getTaskJson() { + java.lang.Object ref = taskJson_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskJson_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string task_json = 3 [json_name = "taskJson"]; + * @return The bytes for taskJson. + */ + public com.google.protobuf.ByteString + getTaskJsonBytes() { + java.lang.Object ref = taskJson_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string task_json = 3 [json_name = "taskJson"]; + * @param value The taskJson to set. + * @return This builder for chaining. + */ + public Builder setTaskJson( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + taskJson_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string task_json = 3 [json_name = "taskJson"]; + * @return This builder for chaining. + */ + public Builder clearTaskJson() { + taskJson_ = getDefaultInstance().getTaskJson(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string task_json = 3 [json_name = "taskJson"]; + * @param value The bytes for taskJson to set. + * @return This builder for chaining. + */ + public Builder setTaskJsonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + taskJson_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object logUrl_ = ""; + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The logUrl. + */ + public java.lang.String getLogUrl() { + java.lang.Object ref = logUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return The bytes for logUrl. + */ + public com.google.protobuf.ByteString + getLogUrlBytes() { + java.lang.Object ref = logUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @param value The logUrl to set. + * @return This builder for chaining. + */ + public Builder setLogUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + logUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @return This builder for chaining. + */ + public Builder clearLogUrl() { + logUrl_ = getDefaultInstance().getLogUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string log_url = 4 [json_name = "logUrl"]; + * @param value The bytes for logUrl to set. + * @return This builder for chaining. + */ + public Builder setLogUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + logUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.TaskLog) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.TaskLog) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.TaskLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrebuildPhaseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.PrebuildPhase) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PrebuildPhase.Phase name = 1 [json_name = "name"]; + * @return The enum numeric value on the wire for name. + */ + int getNameValue(); + /** + * .gitpod.v1.PrebuildPhase.Phase name = 1 [json_name = "name"]; + * @return The name. + */ + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase getName(); + } + /** + * Protobuf type {@code gitpod.v1.PrebuildPhase} + */ + public static final class PrebuildPhase extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.PrebuildPhase) + PrebuildPhaseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PrebuildPhase.class.getName()); + } + // Use PrebuildPhase.newBuilder() to construct. + private PrebuildPhase(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrebuildPhase() { + name_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildPhase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildPhase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.class, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Builder.class); + } + + /** + * Protobuf enum {@code gitpod.v1.PrebuildPhase.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PHASE_UNSPECIFIED = 0; + */ + PHASE_UNSPECIFIED(0), + /** + * PHASE_QUEUED = 1; + */ + PHASE_QUEUED(1), + /** + * PHASE_BUILDING = 2; + */ + PHASE_BUILDING(2), + /** + * PHASE_ABORTED = 3; + */ + PHASE_ABORTED(3), + /** + * PHASE_TIMEOUT = 4; + */ + PHASE_TIMEOUT(4), + /** + * PHASE_AVAILABLE = 5; + */ + PHASE_AVAILABLE(5), + /** + * PHASE_FAILED = 6; + */ + PHASE_FAILED(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Phase.class.getName()); + } + /** + * PHASE_UNSPECIFIED = 0; + */ + public static final int PHASE_UNSPECIFIED_VALUE = 0; + /** + * PHASE_QUEUED = 1; + */ + public static final int PHASE_QUEUED_VALUE = 1; + /** + * PHASE_BUILDING = 2; + */ + public static final int PHASE_BUILDING_VALUE = 2; + /** + * PHASE_ABORTED = 3; + */ + public static final int PHASE_ABORTED_VALUE = 3; + /** + * PHASE_TIMEOUT = 4; + */ + public static final int PHASE_TIMEOUT_VALUE = 4; + /** + * PHASE_AVAILABLE = 5; + */ + public static final int PHASE_AVAILABLE_VALUE = 5; + /** + * PHASE_FAILED = 6; + */ + public static final int PHASE_FAILED_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Phase forNumber(int value) { + switch (value) { + case 0: return PHASE_UNSPECIFIED; + case 1: return PHASE_QUEUED; + case 2: return PHASE_BUILDING; + case 3: return PHASE_ABORTED; + case 4: return PHASE_TIMEOUT; + case 5: return PHASE_AVAILABLE; + case 6: return PHASE_FAILED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.PrebuildPhase.Phase) + } + + public static final int NAME_FIELD_NUMBER = 1; + private int name_ = 0; + /** + * .gitpod.v1.PrebuildPhase.Phase name = 1 [json_name = "name"]; + * @return The enum numeric value on the wire for name. + */ + @java.lang.Override public int getNameValue() { + return name_; + } + /** + * .gitpod.v1.PrebuildPhase.Phase name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase getName() { + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase result = io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase.forNumber(name_); + return result == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (name_ != io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase.PHASE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (name_ != io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase.PHASE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase other = (io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase) obj; + + if (name_ != other.name_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + name_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.PrebuildPhase} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.PrebuildPhase) + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildPhase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildPhase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.class, io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.internal_static_gitpod_v1_PrebuildPhase_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase build() { + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase buildPartial() { + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase result = new io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase) { + return mergeFrom((io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase other) { + if (other == io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.getDefaultInstance()) return this; + if (other.name_ != 0) { + setNameValue(other.getNameValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + name_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int name_ = 0; + /** + * .gitpod.v1.PrebuildPhase.Phase name = 1 [json_name = "name"]; + * @return The enum numeric value on the wire for name. + */ + @java.lang.Override public int getNameValue() { + return name_; + } + /** + * .gitpod.v1.PrebuildPhase.Phase name = 1 [json_name = "name"]; + * @param value The enum numeric value on the wire for name to set. + * @return This builder for chaining. + */ + public Builder setNameValue(int value) { + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildPhase.Phase name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase getName() { + io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase result = io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase.forNumber(name_); + return result == null ? io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.PrebuildPhase.Phase name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.PrebuildPhase.Phase name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.PrebuildPhase) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.PrebuildPhase) + private static final io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase(); + } + + public static io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuildPhase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.PrebuildOuterClass.PrebuildPhase getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetPrebuildRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetPrebuildRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetPrebuildResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetPrebuildResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListPrebuildsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListPrebuildsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListPrebuildsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListPrebuildsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_StartPrebuildRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_StartPrebuildRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_StartPrebuildResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_StartPrebuildResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CancelPrebuildRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CancelPrebuildRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CancelPrebuildResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CancelPrebuildResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WatchPrebuildRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WatchPrebuildRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WatchPrebuildResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WatchPrebuildResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_Prebuild_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_Prebuild_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_PrebuildStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_PrebuildStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_TaskLog_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_TaskLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_PrebuildPhase_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_PrebuildPhase_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\030gitpod/v1/prebuild.proto\022\tgitpod.v1\032\032g" + + "itpod/v1/pagination.proto\032\023gitpod/v1/scm" + + ".proto\032\027gitpod/v1/sorting.proto\032\037google/" + + "protobuf/timestamp.proto\"5\n\022GetPrebuildR" + + "equest\022\037\n\013prebuild_id\030\001 \001(\tR\nprebuildId\"" + + "F\n\023GetPrebuildResponse\022/\n\010prebuild\030\001 \001(\013" + + "2\023.gitpod.v1.PrebuildR\010prebuild\"\277\001\n\024List" + + "PrebuildsRequest\022<\n\npagination\030\001 \001(\0132\034.g" + + "itpod.v1.PaginationRequestR\npagination\022%" + + "\n\014workspace_id\030\002 \001(\tB\002\030\001R\013workspaceId\022)\n" + + "\020configuration_id\030\003 \001(\tR\017configurationId" + + "\022\027\n\007git_ref\030\004 \001(\tR\006gitRef\"\211\001\n\025ListPrebui" + + "ldsResponse\022=\n\npagination\030\001 \001(\0132\035.gitpod" + + ".v1.PaginationResponseR\npagination\0221\n\tpr" + + "ebuilds\030\002 \003(\0132\023.gitpod.v1.PrebuildR\tpreb" + + "uilds\"Z\n\024StartPrebuildRequest\022)\n\020configu" + + "ration_id\030\001 \001(\tR\017configurationId\022\027\n\007git_" + + "ref\030\002 \001(\tR\006gitRef\"8\n\025StartPrebuildRespon" + + "se\022\037\n\013prebuild_id\030\001 \001(\tR\nprebuildId\"8\n\025C" + + "ancelPrebuildRequest\022\037\n\013prebuild_id\030\001 \001(" + + "\tR\nprebuildId\"\030\n\026CancelPrebuildResponse\"" + + "o\n\024WatchPrebuildRequest\022!\n\013prebuild_id\030\001" + + " \001(\tH\000R\nprebuildId\022+\n\020configuration_id\030\002" + + " \001(\tH\000R\017configurationIdB\007\n\005scope\"H\n\025Watc" + + "hPrebuildResponse\022/\n\010prebuild\030\001 \001(\0132\023.gi" + + "tpod.v1.PrebuildR\010prebuild\"\364\004\n ListOrgan" + + "izationPrebuildsRequest\022<\n\npagination\030\001 " + + "\001(\0132\034.gitpod.v1.PaginationRequestR\npagin" + + "ation\022\'\n\017organization_id\030\002 \001(\tR\016organiza" + + "tionId\022J\n\006filter\030\003 \001(\01322.gitpod.v1.ListO" + + "rganizationPrebuildsRequest.FilterR\006filt" + + "er\022#\n\004sort\030\004 \003(\0132\017.gitpod.v1.SortR\004sort\032" + + "\367\002\n\006Filter\022N\n\005state\030\001 \001(\01628.gitpod.v1.Li" + + "stOrganizationPrebuildsRequest.Filter.St" + + "ateR\005state\022f\n\rconfiguration\030\002 \001(\0132@.gitp" + + "od.v1.ListOrganizationPrebuildsRequest.F" + + "ilter.ConfigurationR\rconfiguration\022\037\n\013se" + + "arch_term\030\003 \001(\tR\nsearchTerm\0327\n\rConfigura" + + "tion\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006branch\030\002 \001(\tR\006br" + + "anch\"[\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\023\n\017" + + "STATE_SUCCEEDED\020\001\022\020\n\014STATE_FAILED\020\002\022\024\n\020S" + + "TATE_UNFINISHED\020\003\"\225\001\n!ListOrganizationPr" + + "ebuildsResponse\022=\n\npagination\030\001 \001(\0132\035.gi" + + "tpod.v1.PaginationResponseR\npagination\0221" + + "\n\tprebuilds\030\002 \003(\0132\023.gitpod.v1.PrebuildR\t" + + "prebuilds\"\335\002\n\010Prebuild\022\016\n\002id\030\001 \001(\tR\002id\022%" + + "\n\014workspace_id\030\002 \001(\tB\002\030\001R\013workspaceId\022/\n" + + "\024based_on_prebuild_id\030\003 \001(\tR\021basedOnPreb" + + "uildId\022)\n\020configuration_id\030\004 \001(\tR\017config" + + "urationId\022\020\n\003ref\030\005 \001(\tR\003ref\022)\n\006commit\030\006 " + + "\001(\0132\021.gitpod.v1.CommitR\006commit\022\037\n\013contex" + + "t_url\030\007 \001(\tR\ncontextUrl\0221\n\006status\030\010 \001(\0132" + + "\031.gitpod.v1.PrebuildStatusR\006status\022-\n\022co" + + "nfiguration_name\030\t \001(\tR\021configurationNam" + + "e\"\337\001\n\016PrebuildStatus\022.\n\005phase\030\001 \001(\0132\030.gi" + + "tpod.v1.PrebuildPhaseR\005phase\0229\n\nstart_ti" + + "me\030\002 \001(\0132\032.google.protobuf.TimestampR\tst" + + "artTime\022\030\n\007message\030\003 \001(\tR\007message\022\027\n\007log" + + "_url\030\004 \001(\tR\006logUrl\022/\n\ttask_logs\030\005 \003(\0132\022." + + "gitpod.v1.TaskLogR\010taskLogs\"w\n\007TaskLog\022\027" + + "\n\007task_id\030\001 \001(\tR\006taskId\022\035\n\ntask_label\030\002 " + + "\001(\tR\ttaskLabel\022\033\n\ttask_json\030\003 \001(\tR\010taskJ" + + "son\022\027\n\007log_url\030\004 \001(\tR\006logUrl\"\327\001\n\rPrebuil" + + "dPhase\0222\n\004name\030\001 \001(\0162\036.gitpod.v1.Prebuil" + + "dPhase.PhaseR\004name\"\221\001\n\005Phase\022\025\n\021PHASE_UN" + + "SPECIFIED\020\000\022\020\n\014PHASE_QUEUED\020\001\022\022\n\016PHASE_B" + + "UILDING\020\002\022\021\n\rPHASE_ABORTED\020\003\022\021\n\rPHASE_TI" + + "MEOUT\020\004\022\023\n\017PHASE_AVAILABLE\020\005\022\020\n\014PHASE_FA" + + "ILED\020\0062\270\004\n\017PrebuildService\022T\n\rStartPrebu" + + "ild\022\037.gitpod.v1.StartPrebuildRequest\032 .g" + + "itpod.v1.StartPrebuildResponse\"\000\022W\n\016Canc" + + "elPrebuild\022 .gitpod.v1.CancelPrebuildReq" + + "uest\032!.gitpod.v1.CancelPrebuildResponse\"" + + "\000\022N\n\013GetPrebuild\022\035.gitpod.v1.GetPrebuild" + + "Request\032\036.gitpod.v1.GetPrebuildResponse\"" + + "\000\022T\n\rListPrebuilds\022\037.gitpod.v1.ListPrebu" + + "ildsRequest\032 .gitpod.v1.ListPrebuildsRes" + + "ponse\"\000\022V\n\rWatchPrebuild\022\037.gitpod.v1.Wat" + + "chPrebuildRequest\032 .gitpod.v1.WatchPrebu" + + "ildResponse\"\0000\001\022x\n\031ListOrganizationPrebu" + + "ilds\022+.gitpod.v1.ListOrganizationPrebuil" + + "dsRequest\032,.gitpod.v1.ListOrganizationPr" + + "ebuildsResponse\"\000BQ\n\026io.gitpod.publicapi" + + ".v1Z7github.com/gitpod-io/gitpod/compone" + + "nts/public-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + io.gitpod.publicapi.v1.Scm.getDescriptor(), + io.gitpod.publicapi.v1.Sorting.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_v1_GetPrebuildRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_GetPrebuildRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetPrebuildRequest_descriptor, + new java.lang.String[] { "PrebuildId", }); + internal_static_gitpod_v1_GetPrebuildResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_GetPrebuildResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetPrebuildResponse_descriptor, + new java.lang.String[] { "Prebuild", }); + internal_static_gitpod_v1_ListPrebuildsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_ListPrebuildsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListPrebuildsRequest_descriptor, + new java.lang.String[] { "Pagination", "WorkspaceId", "ConfigurationId", "GitRef", }); + internal_static_gitpod_v1_ListPrebuildsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_ListPrebuildsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListPrebuildsResponse_descriptor, + new java.lang.String[] { "Pagination", "Prebuilds", }); + internal_static_gitpod_v1_StartPrebuildRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_StartPrebuildRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_StartPrebuildRequest_descriptor, + new java.lang.String[] { "ConfigurationId", "GitRef", }); + internal_static_gitpod_v1_StartPrebuildResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_StartPrebuildResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_StartPrebuildResponse_descriptor, + new java.lang.String[] { "PrebuildId", }); + internal_static_gitpod_v1_CancelPrebuildRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_CancelPrebuildRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CancelPrebuildRequest_descriptor, + new java.lang.String[] { "PrebuildId", }); + internal_static_gitpod_v1_CancelPrebuildResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_CancelPrebuildResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CancelPrebuildResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_WatchPrebuildRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_WatchPrebuildRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WatchPrebuildRequest_descriptor, + new java.lang.String[] { "PrebuildId", "ConfigurationId", "Scope", }); + internal_static_gitpod_v1_WatchPrebuildResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_WatchPrebuildResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WatchPrebuildResponse_descriptor, + new java.lang.String[] { "Prebuild", }); + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_descriptor, + new java.lang.String[] { "Pagination", "OrganizationId", "Filter", "Sort", }); + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_descriptor = + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_descriptor, + new java.lang.String[] { "State", "Configuration", "SearchTerm", }); + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_descriptor = + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationPrebuildsRequest_Filter_Configuration_descriptor, + new java.lang.String[] { "Id", "Branch", }); + internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListOrganizationPrebuildsResponse_descriptor, + new java.lang.String[] { "Pagination", "Prebuilds", }); + internal_static_gitpod_v1_Prebuild_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_v1_Prebuild_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_Prebuild_descriptor, + new java.lang.String[] { "Id", "WorkspaceId", "BasedOnPrebuildId", "ConfigurationId", "Ref", "Commit", "ContextUrl", "Status", "ConfigurationName", }); + internal_static_gitpod_v1_PrebuildStatus_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_v1_PrebuildStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_PrebuildStatus_descriptor, + new java.lang.String[] { "Phase", "StartTime", "Message", "LogUrl", "TaskLogs", }); + internal_static_gitpod_v1_TaskLog_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_v1_TaskLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_TaskLog_descriptor, + new java.lang.String[] { "TaskId", "TaskLabel", "TaskJson", "LogUrl", }); + internal_static_gitpod_v1_PrebuildPhase_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_v1_PrebuildPhase_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_PrebuildPhase_descriptor, + new java.lang.String[] { "Name", }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + io.gitpod.publicapi.v1.Scm.getDescriptor(); + io.gitpod.publicapi.v1.Sorting.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildServiceClient.kt new file mode 100644 index 00000000000000..a47520d30aeaf4 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildServiceClient.kt @@ -0,0 +1,103 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/prebuild.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.ServerOnlyStreamInterface +import com.connectrpc.StreamType + +public class PrebuildServiceClient( + private val client: ProtocolClientInterface, +) : PrebuildServiceClientInterface { + override suspend fun startPrebuild(request: PrebuildOuterClass.StartPrebuildRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.PrebuildService/StartPrebuild", + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildRequest::class, + io.gitpod.publicapi.v1.PrebuildOuterClass.StartPrebuildResponse::class, + StreamType.UNARY, + ), + ) + + + override suspend fun cancelPrebuild(request: PrebuildOuterClass.CancelPrebuildRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.PrebuildService/CancelPrebuild", + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildRequest::class, + io.gitpod.publicapi.v1.PrebuildOuterClass.CancelPrebuildResponse::class, + StreamType.UNARY, + ), + ) + + + override suspend fun getPrebuild(request: PrebuildOuterClass.GetPrebuildRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.PrebuildService/GetPrebuild", + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildRequest::class, + io.gitpod.publicapi.v1.PrebuildOuterClass.GetPrebuildResponse::class, + StreamType.UNARY, + ), + ) + + + override suspend fun listPrebuilds(request: PrebuildOuterClass.ListPrebuildsRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.PrebuildService/ListPrebuilds", + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsRequest::class, + io.gitpod.publicapi.v1.PrebuildOuterClass.ListPrebuildsResponse::class, + StreamType.UNARY, + ), + ) + + + override suspend fun watchPrebuild(headers: Headers): + ServerOnlyStreamInterface + = client.serverStream( + headers, + MethodSpec( + "gitpod.v1.PrebuildService/WatchPrebuild", + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildRequest::class, + io.gitpod.publicapi.v1.PrebuildOuterClass.WatchPrebuildResponse::class, + StreamType.SERVER, + ), + ) + + + /** + * ListOrganizationPrebuilds lists all prebuilds of an organization + */ + override suspend + fun listOrganizationPrebuilds(request: PrebuildOuterClass.ListOrganizationPrebuildsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.PrebuildService/ListOrganizationPrebuilds", + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsRequest::class, + io.gitpod.publicapi.v1.PrebuildOuterClass.ListOrganizationPrebuildsResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildServiceClientInterface.kt new file mode 100644 index 00000000000000..7d19dde2ab3957 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/PrebuildServiceClientInterface.kt @@ -0,0 +1,38 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/prebuild.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage +import com.connectrpc.ServerOnlyStreamInterface + +public interface PrebuildServiceClientInterface { + public suspend fun startPrebuild(request: PrebuildOuterClass.StartPrebuildRequest, + headers: Headers = emptyMap()): ResponseMessage + + public suspend fun cancelPrebuild(request: PrebuildOuterClass.CancelPrebuildRequest, + headers: Headers = emptyMap()): ResponseMessage + + public suspend fun getPrebuild(request: PrebuildOuterClass.GetPrebuildRequest, headers: Headers = + emptyMap()): ResponseMessage + + public suspend fun listPrebuilds(request: PrebuildOuterClass.ListPrebuildsRequest, + headers: Headers = emptyMap()): ResponseMessage + + public suspend fun watchPrebuild(headers: Headers = emptyMap()): + ServerOnlyStreamInterface + + /** + * ListOrganizationPrebuilds lists all prebuilds of an organization + */ + public suspend + fun listOrganizationPrebuilds(request: PrebuildOuterClass.ListOrganizationPrebuildsRequest, + headers: Headers = emptyMap()): + ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SCMServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SCMServiceClient.kt new file mode 100644 index 00000000000000..dbb089741df1ac --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SCMServiceClient.kt @@ -0,0 +1,87 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/scm.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class SCMServiceClient( + private val client: ProtocolClientInterface, +) : SCMServiceClientInterface { + /** + * SearchSCMTokens allows clients to retrieve SCM tokens based on the + * specified host. + */ + override suspend fun searchSCMTokens(request: Scm.SearchSCMTokensRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.SCMService/SearchSCMTokens", + io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest::class, + io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GuessTokenScopes allows clients to retrieve scopes their SCM token would + * require for the specified git command. + */ + override suspend fun guessTokenScopes(request: Scm.GuessTokenScopesRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.SCMService/GuessTokenScopes", + io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest::class, + io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * SearchRepositories allows clients to search for suggested repositories of + * SCM providers they are connected with. + */ + override suspend fun searchRepositories(request: Scm.SearchRepositoriesRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.SCMService/SearchRepositories", + io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest::class, + io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListSuggestedRepositories allows clients to list suggested repositories + * based on recent workspaces and accessible repo configurations. + */ + override suspend fun listSuggestedRepositories(request: Scm.ListSuggestedRepositoriesRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.SCMService/ListSuggestedRepositories", + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest::class, + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SCMServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SCMServiceClientInterface.kt new file mode 100644 index 00000000000000..beb5b7dda0aa08 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SCMServiceClientInterface.kt @@ -0,0 +1,42 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/scm.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface SCMServiceClientInterface { + /** + * SearchSCMTokens allows clients to retrieve SCM tokens based on the + * specified host. + */ + public suspend fun searchSCMTokens(request: Scm.SearchSCMTokensRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * GuessTokenScopes allows clients to retrieve scopes their SCM token would + * require for the specified git command. + */ + public suspend fun guessTokenScopes(request: Scm.GuessTokenScopesRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * SearchRepositories allows clients to search for suggested repositories of + * SCM providers they are connected with. + */ + public suspend fun searchRepositories(request: Scm.SearchRepositoriesRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * ListSuggestedRepositories allows clients to list suggested repositories + * based on recent workspaces and accessible repo configurations. + */ + public suspend fun listSuggestedRepositories(request: Scm.ListSuggestedRepositoriesRequest, + headers: Headers = emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SSHServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SSHServiceClient.kt new file mode 100644 index 00000000000000..372fa54204a3f3 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SSHServiceClient.kt @@ -0,0 +1,70 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/ssh.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class SSHServiceClient( + private val client: ProtocolClientInterface, +) : SSHServiceClientInterface { + /** + * ListSSHPublicKeys returns all the ssh public keys for the + * authenticated user. + */ + override suspend fun listSSHPublicKeys(request: Ssh.ListSSHPublicKeysRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.SSHService/ListSSHPublicKeys", + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest::class, + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * CreateSSHPublicKeys creates an ssh public key for the + * authenticated user. + */ + override suspend fun createSSHPublicKey(request: Ssh.CreateSSHPublicKeyRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.SSHService/CreateSSHPublicKey", + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest::class, + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteSSHPublicKeys deletes an ssh public key for the + * authenticated user. + */ + override suspend fun deleteSSHPublicKey(request: Ssh.DeleteSSHPublicKeyRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.SSHService/DeleteSSHPublicKey", + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest::class, + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SSHServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SSHServiceClientInterface.kt new file mode 100644 index 00000000000000..7ef537ec71848a --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/SSHServiceClientInterface.kt @@ -0,0 +1,35 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/ssh.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface SSHServiceClientInterface { + /** + * ListSSHPublicKeys returns all the ssh public keys for the + * authenticated user. + */ + public suspend fun listSSHPublicKeys(request: Ssh.ListSSHPublicKeysRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * CreateSSHPublicKeys creates an ssh public key for the + * authenticated user. + */ + public suspend fun createSSHPublicKey(request: Ssh.CreateSSHPublicKeyRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * DeleteSSHPublicKeys deletes an ssh public key for the + * authenticated user. + */ + public suspend fun deleteSSHPublicKey(request: Ssh.DeleteSSHPublicKeyRequest, headers: Headers = + emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Scm.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Scm.java new file mode 100644 index 00000000000000..e960c5bd123055 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Scm.java @@ -0,0 +1,10335 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/scm.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Scm { + private Scm() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Scm.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SearchSCMTokensRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SearchSCMTokensRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + } + /** + * Protobuf type {@code gitpod.v1.SearchSCMTokensRequest} + */ + public static final class SearchSCMTokensRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SearchSCMTokensRequest) + SearchSCMTokensRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SearchSCMTokensRequest.class.getName()); + } + // Use SearchSCMTokensRequest.newBuilder() to construct. + private SearchSCMTokensRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SearchSCMTokensRequest() { + host_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest.class, io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest.Builder.class); + } + + public static final int HOST_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, host_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, host_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest other = (io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest) obj; + + if (!getHost() + .equals(other.getHost())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SearchSCMTokensRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SearchSCMTokensRequest) + io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest.class, io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + host_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest build() { + io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest buildPartial() { + io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest result = new io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.host_ = host_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest other) { + if (other == io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest.getDefaultInstance()) return this; + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SearchSCMTokensRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SearchSCMTokensRequest) + private static final io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest(); + } + + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchSCMTokensRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchSCMTokensRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SearchSCMTokensResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SearchSCMTokensResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + java.util.List + getTokensList(); + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + io.gitpod.publicapi.v1.Scm.SCMToken getTokens(int index); + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + int getTokensCount(); + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + java.util.List + getTokensOrBuilderList(); + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + io.gitpod.publicapi.v1.Scm.SCMTokenOrBuilder getTokensOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.SearchSCMTokensResponse} + */ + public static final class SearchSCMTokensResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SearchSCMTokensResponse) + SearchSCMTokensResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SearchSCMTokensResponse.class.getName()); + } + // Use SearchSCMTokensResponse.newBuilder() to construct. + private SearchSCMTokensResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SearchSCMTokensResponse() { + tokens_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse.class, io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse.Builder.class); + } + + public static final int TOKENS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List tokens_; + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public java.util.List getTokensList() { + return tokens_; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public java.util.List + getTokensOrBuilderList() { + return tokens_; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public int getTokensCount() { + return tokens_.size(); + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SCMToken getTokens(int index) { + return tokens_.get(index); + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SCMTokenOrBuilder getTokensOrBuilder( + int index) { + return tokens_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tokens_.size(); i++) { + output.writeMessage(1, tokens_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tokens_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tokens_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse other = (io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse) obj; + + if (!getTokensList() + .equals(other.getTokensList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTokensCount() > 0) { + hash = (37 * hash) + TOKENS_FIELD_NUMBER; + hash = (53 * hash) + getTokensList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SearchSCMTokensResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SearchSCMTokensResponse) + io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse.class, io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tokensBuilder_ == null) { + tokens_ = java.util.Collections.emptyList(); + } else { + tokens_ = null; + tokensBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchSCMTokensResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse build() { + io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse buildPartial() { + io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse result = new io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse result) { + if (tokensBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tokens_ = java.util.Collections.unmodifiableList(tokens_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tokens_ = tokens_; + } else { + result.tokens_ = tokensBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse other) { + if (other == io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse.getDefaultInstance()) return this; + if (tokensBuilder_ == null) { + if (!other.tokens_.isEmpty()) { + if (tokens_.isEmpty()) { + tokens_ = other.tokens_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTokensIsMutable(); + tokens_.addAll(other.tokens_); + } + onChanged(); + } + } else { + if (!other.tokens_.isEmpty()) { + if (tokensBuilder_.isEmpty()) { + tokensBuilder_.dispose(); + tokensBuilder_ = null; + tokens_ = other.tokens_; + bitField0_ = (bitField0_ & ~0x00000001); + tokensBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getTokensFieldBuilder() : null; + } else { + tokensBuilder_.addAllMessages(other.tokens_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.Scm.SCMToken m = + input.readMessage( + io.gitpod.publicapi.v1.Scm.SCMToken.parser(), + extensionRegistry); + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.add(m); + } else { + tokensBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List tokens_ = + java.util.Collections.emptyList(); + private void ensureTokensIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tokens_ = new java.util.ArrayList(tokens_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Scm.SCMToken, io.gitpod.publicapi.v1.Scm.SCMToken.Builder, io.gitpod.publicapi.v1.Scm.SCMTokenOrBuilder> tokensBuilder_; + + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public java.util.List getTokensList() { + if (tokensBuilder_ == null) { + return java.util.Collections.unmodifiableList(tokens_); + } else { + return tokensBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public int getTokensCount() { + if (tokensBuilder_ == null) { + return tokens_.size(); + } else { + return tokensBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.v1.Scm.SCMToken getTokens(int index) { + if (tokensBuilder_ == null) { + return tokens_.get(index); + } else { + return tokensBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public Builder setTokens( + int index, io.gitpod.publicapi.v1.Scm.SCMToken value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokensIsMutable(); + tokens_.set(index, value); + onChanged(); + } else { + tokensBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public Builder setTokens( + int index, io.gitpod.publicapi.v1.Scm.SCMToken.Builder builderForValue) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.set(index, builderForValue.build()); + onChanged(); + } else { + tokensBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addTokens(io.gitpod.publicapi.v1.Scm.SCMToken value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokensIsMutable(); + tokens_.add(value); + onChanged(); + } else { + tokensBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addTokens( + int index, io.gitpod.publicapi.v1.Scm.SCMToken value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokensIsMutable(); + tokens_.add(index, value); + onChanged(); + } else { + tokensBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addTokens( + io.gitpod.publicapi.v1.Scm.SCMToken.Builder builderForValue) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.add(builderForValue.build()); + onChanged(); + } else { + tokensBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addTokens( + int index, io.gitpod.publicapi.v1.Scm.SCMToken.Builder builderForValue) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.add(index, builderForValue.build()); + onChanged(); + } else { + tokensBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public Builder addAllTokens( + java.lang.Iterable values) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tokens_); + onChanged(); + } else { + tokensBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public Builder clearTokens() { + if (tokensBuilder_ == null) { + tokens_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tokensBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public Builder removeTokens(int index) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.remove(index); + onChanged(); + } else { + tokensBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.v1.Scm.SCMToken.Builder getTokensBuilder( + int index) { + return getTokensFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.v1.Scm.SCMTokenOrBuilder getTokensOrBuilder( + int index) { + if (tokensBuilder_ == null) { + return tokens_.get(index); } else { + return tokensBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public java.util.List + getTokensOrBuilderList() { + if (tokensBuilder_ != null) { + return tokensBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tokens_); + } + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.v1.Scm.SCMToken.Builder addTokensBuilder() { + return getTokensFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Scm.SCMToken.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public io.gitpod.publicapi.v1.Scm.SCMToken.Builder addTokensBuilder( + int index) { + return getTokensFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Scm.SCMToken.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SCMToken tokens = 1 [json_name = "tokens"]; + */ + public java.util.List + getTokensBuilderList() { + return getTokensFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Scm.SCMToken, io.gitpod.publicapi.v1.Scm.SCMToken.Builder, io.gitpod.publicapi.v1.Scm.SCMTokenOrBuilder> + getTokensFieldBuilder() { + if (tokensBuilder_ == null) { + tokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Scm.SCMToken, io.gitpod.publicapi.v1.Scm.SCMToken.Builder, io.gitpod.publicapi.v1.Scm.SCMTokenOrBuilder>( + tokens_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tokens_ = null; + } + return tokensBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SearchSCMTokensResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SearchSCMTokensResponse) + private static final io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse(); + } + + public static io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchSCMTokensResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchSCMTokensResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GuessTokenScopesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GuessTokenScopesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + * string repo_url = 2 [json_name = "repoUrl"]; + * @return The repoUrl. + */ + java.lang.String getRepoUrl(); + /** + * string repo_url = 2 [json_name = "repoUrl"]; + * @return The bytes for repoUrl. + */ + com.google.protobuf.ByteString + getRepoUrlBytes(); + + /** + * string git_command = 3 [json_name = "gitCommand"]; + * @return The gitCommand. + */ + java.lang.String getGitCommand(); + /** + * string git_command = 3 [json_name = "gitCommand"]; + * @return The bytes for gitCommand. + */ + com.google.protobuf.ByteString + getGitCommandBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GuessTokenScopesRequest} + */ + public static final class GuessTokenScopesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GuessTokenScopesRequest) + GuessTokenScopesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GuessTokenScopesRequest.class.getName()); + } + // Use GuessTokenScopesRequest.newBuilder() to construct. + private GuessTokenScopesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GuessTokenScopesRequest() { + host_ = ""; + repoUrl_ = ""; + gitCommand_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest.class, io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest.Builder.class); + } + + public static final int HOST_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPO_URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object repoUrl_ = ""; + /** + * string repo_url = 2 [json_name = "repoUrl"]; + * @return The repoUrl. + */ + @java.lang.Override + public java.lang.String getRepoUrl() { + java.lang.Object ref = repoUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repoUrl_ = s; + return s; + } + } + /** + * string repo_url = 2 [json_name = "repoUrl"]; + * @return The bytes for repoUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRepoUrlBytes() { + java.lang.Object ref = repoUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIT_COMMAND_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object gitCommand_ = ""; + /** + * string git_command = 3 [json_name = "gitCommand"]; + * @return The gitCommand. + */ + @java.lang.Override + public java.lang.String getGitCommand() { + java.lang.Object ref = gitCommand_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitCommand_ = s; + return s; + } + } + /** + * string git_command = 3 [json_name = "gitCommand"]; + * @return The bytes for gitCommand. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGitCommandBytes() { + java.lang.Object ref = gitCommand_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gitCommand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repoUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, repoUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitCommand_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, gitCommand_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, host_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repoUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, repoUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitCommand_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gitCommand_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest other = (io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest) obj; + + if (!getHost() + .equals(other.getHost())) return false; + if (!getRepoUrl() + .equals(other.getRepoUrl())) return false; + if (!getGitCommand() + .equals(other.getGitCommand())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (37 * hash) + REPO_URL_FIELD_NUMBER; + hash = (53 * hash) + getRepoUrl().hashCode(); + hash = (37 * hash) + GIT_COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getGitCommand().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GuessTokenScopesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GuessTokenScopesRequest) + io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest.class, io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + host_ = ""; + repoUrl_ = ""; + gitCommand_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest build() { + io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest buildPartial() { + io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest result = new io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.repoUrl_ = repoUrl_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gitCommand_ = gitCommand_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest other) { + if (other == io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest.getDefaultInstance()) return this; + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRepoUrl().isEmpty()) { + repoUrl_ = other.repoUrl_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGitCommand().isEmpty()) { + gitCommand_ = other.gitCommand_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + repoUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + gitCommand_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object host_ = ""; + /** + * string host = 1 [json_name = "host"]; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string host = 1 [json_name = "host"]; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string host = 1 [json_name = "host"]; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object repoUrl_ = ""; + /** + * string repo_url = 2 [json_name = "repoUrl"]; + * @return The repoUrl. + */ + public java.lang.String getRepoUrl() { + java.lang.Object ref = repoUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repoUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string repo_url = 2 [json_name = "repoUrl"]; + * @return The bytes for repoUrl. + */ + public com.google.protobuf.ByteString + getRepoUrlBytes() { + java.lang.Object ref = repoUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string repo_url = 2 [json_name = "repoUrl"]; + * @param value The repoUrl to set. + * @return This builder for chaining. + */ + public Builder setRepoUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + repoUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string repo_url = 2 [json_name = "repoUrl"]; + * @return This builder for chaining. + */ + public Builder clearRepoUrl() { + repoUrl_ = getDefaultInstance().getRepoUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string repo_url = 2 [json_name = "repoUrl"]; + * @param value The bytes for repoUrl to set. + * @return This builder for chaining. + */ + public Builder setRepoUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + repoUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object gitCommand_ = ""; + /** + * string git_command = 3 [json_name = "gitCommand"]; + * @return The gitCommand. + */ + public java.lang.String getGitCommand() { + java.lang.Object ref = gitCommand_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitCommand_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string git_command = 3 [json_name = "gitCommand"]; + * @return The bytes for gitCommand. + */ + public com.google.protobuf.ByteString + getGitCommandBytes() { + java.lang.Object ref = gitCommand_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gitCommand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string git_command = 3 [json_name = "gitCommand"]; + * @param value The gitCommand to set. + * @return This builder for chaining. + */ + public Builder setGitCommand( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + gitCommand_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string git_command = 3 [json_name = "gitCommand"]; + * @return This builder for chaining. + */ + public Builder clearGitCommand() { + gitCommand_ = getDefaultInstance().getGitCommand(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string git_command = 3 [json_name = "gitCommand"]; + * @param value The bytes for gitCommand to set. + * @return This builder for chaining. + */ + public Builder setGitCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + gitCommand_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GuessTokenScopesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GuessTokenScopesRequest) + private static final io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest(); + } + + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuessTokenScopesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.GuessTokenScopesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GuessTokenScopesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GuessTokenScopesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + java.util.List + getScopesList(); + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @return The count of scopes. + */ + int getScopesCount(); + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString + getScopesBytes(int index); + + /** + * string message = 2 [json_name = "message"]; + * @return The message. + */ + java.lang.String getMessage(); + /** + * string message = 2 [json_name = "message"]; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GuessTokenScopesResponse} + */ + public static final class GuessTokenScopesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GuessTokenScopesResponse) + GuessTokenScopesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GuessTokenScopesResponse.class.getName()); + } + // Use GuessTokenScopesResponse.newBuilder() to construct. + private GuessTokenScopesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GuessTokenScopesResponse() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + message_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse.class, io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse.Builder.class); + } + + public static final int SCOPES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * string message = 2 [json_name = "message"]; + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * string message = 2 [json_name = "message"]; + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, scopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse other = (io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse) obj; + + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GuessTokenScopesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GuessTokenScopesResponse) + io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse.class, io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_GuessTokenScopesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse build() { + io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse buildPartial() { + io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse result = new io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = message_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse other) { + if (other == io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse.getDefaultInstance()) return this; + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000001; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 10 + case 18: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes( + java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scopes_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string scopes = 1 [json_name = "scopes"]; + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * string message = 2 [json_name = "message"]; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string message = 2 [json_name = "message"]; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string message = 2 [json_name = "message"]; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string message = 2 [json_name = "message"]; + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string message = 2 [json_name = "message"]; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GuessTokenScopesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GuessTokenScopesResponse) + private static final io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse(); + } + + public static io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuessTokenScopesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.GuessTokenScopesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SearchRepositoriesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SearchRepositoriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string search_string = 1 [json_name = "searchString"]; + * @return The searchString. + */ + java.lang.String getSearchString(); + /** + * string search_string = 1 [json_name = "searchString"]; + * @return The bytes for searchString. + */ + com.google.protobuf.ByteString + getSearchStringBytes(); + + /** + * int32 limit = 2 [json_name = "limit"]; + * @return The limit. + */ + int getLimit(); + } + /** + * Protobuf type {@code gitpod.v1.SearchRepositoriesRequest} + */ + public static final class SearchRepositoriesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SearchRepositoriesRequest) + SearchRepositoriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SearchRepositoriesRequest.class.getName()); + } + // Use SearchRepositoriesRequest.newBuilder() to construct. + private SearchRepositoriesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SearchRepositoriesRequest() { + searchString_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest.class, io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest.Builder.class); + } + + public static final int SEARCH_STRING_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object searchString_ = ""; + /** + * string search_string = 1 [json_name = "searchString"]; + * @return The searchString. + */ + @java.lang.Override + public java.lang.String getSearchString() { + java.lang.Object ref = searchString_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchString_ = s; + return s; + } + } + /** + * string search_string = 1 [json_name = "searchString"]; + * @return The bytes for searchString. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSearchStringBytes() { + java.lang.Object ref = searchString_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_ = 0; + /** + * int32 limit = 2 [json_name = "limit"]; + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchString_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, searchString_); + } + if (limit_ != 0) { + output.writeInt32(2, limit_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchString_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, searchString_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, limit_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest other = (io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest) obj; + + if (!getSearchString() + .equals(other.getSearchString())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEARCH_STRING_FIELD_NUMBER; + hash = (53 * hash) + getSearchString().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SearchRepositoriesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SearchRepositoriesRequest) + io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest.class, io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + searchString_ = ""; + limit_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest build() { + io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest buildPartial() { + io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest result = new io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.searchString_ = searchString_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.limit_ = limit_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest other) { + if (other == io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest.getDefaultInstance()) return this; + if (!other.getSearchString().isEmpty()) { + searchString_ = other.searchString_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + searchString_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + limit_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object searchString_ = ""; + /** + * string search_string = 1 [json_name = "searchString"]; + * @return The searchString. + */ + public java.lang.String getSearchString() { + java.lang.Object ref = searchString_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchString_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string search_string = 1 [json_name = "searchString"]; + * @return The bytes for searchString. + */ + public com.google.protobuf.ByteString + getSearchStringBytes() { + java.lang.Object ref = searchString_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string search_string = 1 [json_name = "searchString"]; + * @param value The searchString to set. + * @return This builder for chaining. + */ + public Builder setSearchString( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + searchString_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string search_string = 1 [json_name = "searchString"]; + * @return This builder for chaining. + */ + public Builder clearSearchString() { + searchString_ = getDefaultInstance().getSearchString(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string search_string = 1 [json_name = "searchString"]; + * @param value The bytes for searchString to set. + * @return This builder for chaining. + */ + public Builder setSearchStringBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + searchString_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int limit_ ; + /** + * int32 limit = 2 [json_name = "limit"]; + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + /** + * int32 limit = 2 [json_name = "limit"]; + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(int value) { + + limit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 limit = 2 [json_name = "limit"]; + * @return This builder for chaining. + */ + public Builder clearLimit() { + bitField0_ = (bitField0_ & ~0x00000002); + limit_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SearchRepositoriesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SearchRepositoriesRequest) + private static final io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest(); + } + + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRepositoriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchRepositoriesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SearchRepositoriesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SearchRepositoriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + java.util.List + getRepositoriesList(); + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + io.gitpod.publicapi.v1.Scm.SuggestedRepository getRepositories(int index); + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + int getRepositoriesCount(); + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + java.util.List + getRepositoriesOrBuilderList(); + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder getRepositoriesOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.SearchRepositoriesResponse} + */ + public static final class SearchRepositoriesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SearchRepositoriesResponse) + SearchRepositoriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SearchRepositoriesResponse.class.getName()); + } + // Use SearchRepositoriesResponse.newBuilder() to construct. + private SearchRepositoriesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SearchRepositoriesResponse() { + repositories_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse.class, io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse.Builder.class); + } + + public static final int REPOSITORIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List repositories_; + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + @java.lang.Override + public java.util.List getRepositoriesList() { + return repositories_; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + @java.lang.Override + public java.util.List + getRepositoriesOrBuilderList() { + return repositories_; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + @java.lang.Override + public int getRepositoriesCount() { + return repositories_.size(); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SuggestedRepository getRepositories(int index) { + return repositories_.get(index); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder getRepositoriesOrBuilder( + int index) { + return repositories_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < repositories_.size(); i++) { + output.writeMessage(1, repositories_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < repositories_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, repositories_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse other = (io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse) obj; + + if (!getRepositoriesList() + .equals(other.getRepositoriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRepositoriesCount() > 0) { + hash = (37 * hash) + REPOSITORIES_FIELD_NUMBER; + hash = (53 * hash) + getRepositoriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SearchRepositoriesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SearchRepositoriesResponse) + io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse.class, io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (repositoriesBuilder_ == null) { + repositories_ = java.util.Collections.emptyList(); + } else { + repositories_ = null; + repositoriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SearchRepositoriesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse build() { + io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse buildPartial() { + io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse result = new io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse result) { + if (repositoriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + repositories_ = java.util.Collections.unmodifiableList(repositories_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.repositories_ = repositories_; + } else { + result.repositories_ = repositoriesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse other) { + if (other == io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse.getDefaultInstance()) return this; + if (repositoriesBuilder_ == null) { + if (!other.repositories_.isEmpty()) { + if (repositories_.isEmpty()) { + repositories_ = other.repositories_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRepositoriesIsMutable(); + repositories_.addAll(other.repositories_); + } + onChanged(); + } + } else { + if (!other.repositories_.isEmpty()) { + if (repositoriesBuilder_.isEmpty()) { + repositoriesBuilder_.dispose(); + repositoriesBuilder_ = null; + repositories_ = other.repositories_; + bitField0_ = (bitField0_ & ~0x00000001); + repositoriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRepositoriesFieldBuilder() : null; + } else { + repositoriesBuilder_.addAllMessages(other.repositories_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.Scm.SuggestedRepository m = + input.readMessage( + io.gitpod.publicapi.v1.Scm.SuggestedRepository.parser(), + extensionRegistry); + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.add(m); + } else { + repositoriesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List repositories_ = + java.util.Collections.emptyList(); + private void ensureRepositoriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + repositories_ = new java.util.ArrayList(repositories_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Scm.SuggestedRepository, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder, io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder> repositoriesBuilder_; + + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public java.util.List getRepositoriesList() { + if (repositoriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(repositories_); + } else { + return repositoriesBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public int getRepositoriesCount() { + if (repositoriesBuilder_ == null) { + return repositories_.size(); + } else { + return repositoriesBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepository getRepositories(int index) { + if (repositoriesBuilder_ == null) { + return repositories_.get(index); + } else { + return repositoriesBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public Builder setRepositories( + int index, io.gitpod.publicapi.v1.Scm.SuggestedRepository value) { + if (repositoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepositoriesIsMutable(); + repositories_.set(index, value); + onChanged(); + } else { + repositoriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public Builder setRepositories( + int index, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder builderForValue) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.set(index, builderForValue.build()); + onChanged(); + } else { + repositoriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public Builder addRepositories(io.gitpod.publicapi.v1.Scm.SuggestedRepository value) { + if (repositoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepositoriesIsMutable(); + repositories_.add(value); + onChanged(); + } else { + repositoriesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public Builder addRepositories( + int index, io.gitpod.publicapi.v1.Scm.SuggestedRepository value) { + if (repositoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepositoriesIsMutable(); + repositories_.add(index, value); + onChanged(); + } else { + repositoriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public Builder addRepositories( + io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder builderForValue) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.add(builderForValue.build()); + onChanged(); + } else { + repositoriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public Builder addRepositories( + int index, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder builderForValue) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.add(index, builderForValue.build()); + onChanged(); + } else { + repositoriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public Builder addAllRepositories( + java.lang.Iterable values) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, repositories_); + onChanged(); + } else { + repositoriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public Builder clearRepositories() { + if (repositoriesBuilder_ == null) { + repositories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + repositoriesBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public Builder removeRepositories(int index) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.remove(index); + onChanged(); + } else { + repositoriesBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder getRepositoriesBuilder( + int index) { + return getRepositoriesFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder getRepositoriesOrBuilder( + int index) { + if (repositoriesBuilder_ == null) { + return repositories_.get(index); } else { + return repositoriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public java.util.List + getRepositoriesOrBuilderList() { + if (repositoriesBuilder_ != null) { + return repositoriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(repositories_); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder addRepositoriesBuilder() { + return getRepositoriesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Scm.SuggestedRepository.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder addRepositoriesBuilder( + int index) { + return getRepositoriesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Scm.SuggestedRepository.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 1 [json_name = "repositories"]; + */ + public java.util.List + getRepositoriesBuilderList() { + return getRepositoriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Scm.SuggestedRepository, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder, io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder> + getRepositoriesFieldBuilder() { + if (repositoriesBuilder_ == null) { + repositoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Scm.SuggestedRepository, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder, io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder>( + repositories_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + repositories_ = null; + } + return repositoriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SearchRepositoriesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SearchRepositoriesResponse) + private static final io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse(); + } + + public static io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRepositoriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SearchRepositoriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListSuggestedRepositoriesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListSuggestedRepositoriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * bool exclude_configurations = 3 [json_name = "excludeConfigurations"]; + * @return The excludeConfigurations. + */ + boolean getExcludeConfigurations(); + } + /** + * Protobuf type {@code gitpod.v1.ListSuggestedRepositoriesRequest} + */ + public static final class ListSuggestedRepositoriesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListSuggestedRepositoriesRequest) + ListSuggestedRepositoriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListSuggestedRepositoriesRequest.class.getName()); + } + // Use ListSuggestedRepositoriesRequest.newBuilder() to construct. + private ListSuggestedRepositoriesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListSuggestedRepositoriesRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest.class, io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXCLUDE_CONFIGURATIONS_FIELD_NUMBER = 3; + private boolean excludeConfigurations_ = false; + /** + * bool exclude_configurations = 3 [json_name = "excludeConfigurations"]; + * @return The excludeConfigurations. + */ + @java.lang.Override + public boolean getExcludeConfigurations() { + return excludeConfigurations_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (excludeConfigurations_ != false) { + output.writeBool(3, excludeConfigurations_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (excludeConfigurations_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, excludeConfigurations_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest other = (io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (getExcludeConfigurations() + != other.getExcludeConfigurations()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + EXCLUDE_CONFIGURATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExcludeConfigurations()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListSuggestedRepositoriesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListSuggestedRepositoriesRequest) + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest.class, io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + organizationId_ = ""; + excludeConfigurations_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest build() { + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest buildPartial() { + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest result = new io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.excludeConfigurations_ = excludeConfigurations_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest other) { + if (other == io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getExcludeConfigurations() != false) { + setExcludeConfigurations(other.getExcludeConfigurations()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + excludeConfigurations_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean excludeConfigurations_ ; + /** + * bool exclude_configurations = 3 [json_name = "excludeConfigurations"]; + * @return The excludeConfigurations. + */ + @java.lang.Override + public boolean getExcludeConfigurations() { + return excludeConfigurations_; + } + /** + * bool exclude_configurations = 3 [json_name = "excludeConfigurations"]; + * @param value The excludeConfigurations to set. + * @return This builder for chaining. + */ + public Builder setExcludeConfigurations(boolean value) { + + excludeConfigurations_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * bool exclude_configurations = 3 [json_name = "excludeConfigurations"]; + * @return This builder for chaining. + */ + public Builder clearExcludeConfigurations() { + bitField0_ = (bitField0_ & ~0x00000004); + excludeConfigurations_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListSuggestedRepositoriesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListSuggestedRepositoriesRequest) + private static final io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest(); + } + + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSuggestedRepositoriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListSuggestedRepositoriesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListSuggestedRepositoriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + java.util.List + getRepositoriesList(); + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + io.gitpod.publicapi.v1.Scm.SuggestedRepository getRepositories(int index); + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + int getRepositoriesCount(); + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + java.util.List + getRepositoriesOrBuilderList(); + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder getRepositoriesOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListSuggestedRepositoriesResponse} + */ + public static final class ListSuggestedRepositoriesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListSuggestedRepositoriesResponse) + ListSuggestedRepositoriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListSuggestedRepositoriesResponse.class.getName()); + } + // Use ListSuggestedRepositoriesResponse.newBuilder() to construct. + private ListSuggestedRepositoriesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListSuggestedRepositoriesResponse() { + repositories_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse.class, io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + public static final int REPOSITORIES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List repositories_; + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + @java.lang.Override + public java.util.List getRepositoriesList() { + return repositories_; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + @java.lang.Override + public java.util.List + getRepositoriesOrBuilderList() { + return repositories_; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + @java.lang.Override + public int getRepositoriesCount() { + return repositories_.size(); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SuggestedRepository getRepositories(int index) { + return repositories_.get(index); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder getRepositoriesOrBuilder( + int index) { + return repositories_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < repositories_.size(); i++) { + output.writeMessage(2, repositories_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < repositories_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, repositories_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse other = (io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getRepositoriesList() + .equals(other.getRepositoriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getRepositoriesCount() > 0) { + hash = (37 * hash) + REPOSITORIES_FIELD_NUMBER; + hash = (53 * hash) + getRepositoriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListSuggestedRepositoriesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListSuggestedRepositoriesResponse) + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse.class, io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getRepositoriesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (repositoriesBuilder_ == null) { + repositories_ = java.util.Collections.emptyList(); + } else { + repositories_ = null; + repositoriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse build() { + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse buildPartial() { + io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse result = new io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse result) { + if (repositoriesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + repositories_ = java.util.Collections.unmodifiableList(repositories_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.repositories_ = repositories_; + } else { + result.repositories_ = repositoriesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse other) { + if (other == io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (repositoriesBuilder_ == null) { + if (!other.repositories_.isEmpty()) { + if (repositories_.isEmpty()) { + repositories_ = other.repositories_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRepositoriesIsMutable(); + repositories_.addAll(other.repositories_); + } + onChanged(); + } + } else { + if (!other.repositories_.isEmpty()) { + if (repositoriesBuilder_.isEmpty()) { + repositoriesBuilder_.dispose(); + repositoriesBuilder_ = null; + repositories_ = other.repositories_; + bitField0_ = (bitField0_ & ~0x00000002); + repositoriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRepositoriesFieldBuilder() : null; + } else { + repositoriesBuilder_.addAllMessages(other.repositories_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.Scm.SuggestedRepository m = + input.readMessage( + io.gitpod.publicapi.v1.Scm.SuggestedRepository.parser(), + extensionRegistry); + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.add(m); + } else { + repositoriesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List repositories_ = + java.util.Collections.emptyList(); + private void ensureRepositoriesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + repositories_ = new java.util.ArrayList(repositories_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Scm.SuggestedRepository, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder, io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder> repositoriesBuilder_; + + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public java.util.List getRepositoriesList() { + if (repositoriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(repositories_); + } else { + return repositoriesBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public int getRepositoriesCount() { + if (repositoriesBuilder_ == null) { + return repositories_.size(); + } else { + return repositoriesBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepository getRepositories(int index) { + if (repositoriesBuilder_ == null) { + return repositories_.get(index); + } else { + return repositoriesBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public Builder setRepositories( + int index, io.gitpod.publicapi.v1.Scm.SuggestedRepository value) { + if (repositoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepositoriesIsMutable(); + repositories_.set(index, value); + onChanged(); + } else { + repositoriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public Builder setRepositories( + int index, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder builderForValue) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.set(index, builderForValue.build()); + onChanged(); + } else { + repositoriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public Builder addRepositories(io.gitpod.publicapi.v1.Scm.SuggestedRepository value) { + if (repositoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepositoriesIsMutable(); + repositories_.add(value); + onChanged(); + } else { + repositoriesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public Builder addRepositories( + int index, io.gitpod.publicapi.v1.Scm.SuggestedRepository value) { + if (repositoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepositoriesIsMutable(); + repositories_.add(index, value); + onChanged(); + } else { + repositoriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public Builder addRepositories( + io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder builderForValue) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.add(builderForValue.build()); + onChanged(); + } else { + repositoriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public Builder addRepositories( + int index, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder builderForValue) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.add(index, builderForValue.build()); + onChanged(); + } else { + repositoriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public Builder addAllRepositories( + java.lang.Iterable values) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, repositories_); + onChanged(); + } else { + repositoriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public Builder clearRepositories() { + if (repositoriesBuilder_ == null) { + repositories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + repositoriesBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public Builder removeRepositories(int index) { + if (repositoriesBuilder_ == null) { + ensureRepositoriesIsMutable(); + repositories_.remove(index); + onChanged(); + } else { + repositoriesBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder getRepositoriesBuilder( + int index) { + return getRepositoriesFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder getRepositoriesOrBuilder( + int index) { + if (repositoriesBuilder_ == null) { + return repositories_.get(index); } else { + return repositoriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public java.util.List + getRepositoriesOrBuilderList() { + if (repositoriesBuilder_ != null) { + return repositoriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(repositories_); + } + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder addRepositoriesBuilder() { + return getRepositoriesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Scm.SuggestedRepository.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder addRepositoriesBuilder( + int index) { + return getRepositoriesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Scm.SuggestedRepository.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SuggestedRepository repositories = 2 [json_name = "repositories"]; + */ + public java.util.List + getRepositoriesBuilderList() { + return getRepositoriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Scm.SuggestedRepository, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder, io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder> + getRepositoriesFieldBuilder() { + if (repositoriesBuilder_ == null) { + repositoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Scm.SuggestedRepository, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder, io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder>( + repositories_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + repositories_ = null; + } + return repositoriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListSuggestedRepositoriesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListSuggestedRepositoriesResponse) + private static final io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse(); + } + + public static io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSuggestedRepositoriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.ListSuggestedRepositoriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SCMTokenOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SCMToken) + com.google.protobuf.MessageOrBuilder { + + /** + * string username = 1 [json_name = "username"]; + * @return The username. + */ + java.lang.String getUsername(); + /** + * string username = 1 [json_name = "username"]; + * @return The bytes for username. + */ + com.google.protobuf.ByteString + getUsernameBytes(); + + /** + * string value = 2 [json_name = "value"]; + * @return The value. + */ + java.lang.String getValue(); + /** + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + * string id_token = 3 [json_name = "idToken"]; + * @return The idToken. + */ + java.lang.String getIdToken(); + /** + * string id_token = 3 [json_name = "idToken"]; + * @return The bytes for idToken. + */ + com.google.protobuf.ByteString + getIdTokenBytes(); + + /** + * string refresh_token = 4 [json_name = "refreshToken"]; + * @return The refreshToken. + */ + java.lang.String getRefreshToken(); + /** + * string refresh_token = 4 [json_name = "refreshToken"]; + * @return The bytes for refreshToken. + */ + com.google.protobuf.ByteString + getRefreshTokenBytes(); + + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + java.util.List + getScopesList(); + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @return The count of scopes. + */ + int getScopesCount(); + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString + getScopesBytes(int index); + + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + * @return Whether the updateDate field is set. + */ + boolean hasUpdateDate(); + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + * @return The updateDate. + */ + com.google.protobuf.Timestamp getUpdateDate(); + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateDateOrBuilder(); + + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + * @return Whether the expiryDate field is set. + */ + boolean hasExpiryDate(); + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + * @return The expiryDate. + */ + com.google.protobuf.Timestamp getExpiryDate(); + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + */ + com.google.protobuf.TimestampOrBuilder getExpiryDateOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.SCMToken} + */ + public static final class SCMToken extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SCMToken) + SCMTokenOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SCMToken.class.getName()); + } + // Use SCMToken.newBuilder() to construct. + private SCMToken(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SCMToken() { + username_ = ""; + value_ = ""; + idToken_ = ""; + refreshToken_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SCMToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SCMToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SCMToken.class, io.gitpod.publicapi.v1.Scm.SCMToken.Builder.class); + } + + private int bitField0_; + public static final int USERNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + * string username = 1 [json_name = "username"]; + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** + * string username = 1 [json_name = "username"]; + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * string value = 2 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object idToken_ = ""; + /** + * string id_token = 3 [json_name = "idToken"]; + * @return The idToken. + */ + @java.lang.Override + public java.lang.String getIdToken() { + java.lang.Object ref = idToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + idToken_ = s; + return s; + } + } + /** + * string id_token = 3 [json_name = "idToken"]; + * @return The bytes for idToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdTokenBytes() { + java.lang.Object ref = idToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFRESH_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object refreshToken_ = ""; + /** + * string refresh_token = 4 [json_name = "refreshToken"]; + * @return The refreshToken. + */ + @java.lang.Override + public java.lang.String getRefreshToken() { + java.lang.Object ref = refreshToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + refreshToken_ = s; + return s; + } + } + /** + * string refresh_token = 4 [json_name = "refreshToken"]; + * @return The bytes for refreshToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRefreshTokenBytes() { + java.lang.Object ref = refreshToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + refreshToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int UPDATE_DATE_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateDate_; + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + * @return Whether the updateDate field is set. + */ + @java.lang.Override + public boolean hasUpdateDate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + * @return The updateDate. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateDate() { + return updateDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateDate_; + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateDateOrBuilder() { + return updateDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateDate_; + } + + public static final int EXPIRY_DATE_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp expiryDate_; + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + * @return Whether the expiryDate field is set. + */ + @java.lang.Override + public boolean hasExpiryDate() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + * @return The expiryDate. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpiryDate() { + return expiryDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiryDate_; + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpiryDateOrBuilder() { + return expiryDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiryDate_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(idToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, idToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, refreshToken_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, scopes_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getUpdateDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getExpiryDate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(idToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, idToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, refreshToken_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getExpiryDate()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.SCMToken)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.SCMToken other = (io.gitpod.publicapi.v1.Scm.SCMToken) obj; + + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getIdToken() + .equals(other.getIdToken())) return false; + if (!getRefreshToken() + .equals(other.getRefreshToken())) return false; + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (hasUpdateDate() != other.hasUpdateDate()) return false; + if (hasUpdateDate()) { + if (!getUpdateDate() + .equals(other.getUpdateDate())) return false; + } + if (hasExpiryDate() != other.hasExpiryDate()) return false; + if (hasExpiryDate()) { + if (!getExpiryDate() + .equals(other.getExpiryDate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + ID_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getIdToken().hashCode(); + hash = (37 * hash) + REFRESH_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getRefreshToken().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + if (hasUpdateDate()) { + hash = (37 * hash) + UPDATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdateDate().hashCode(); + } + if (hasExpiryDate()) { + hash = (37 * hash) + EXPIRY_DATE_FIELD_NUMBER; + hash = (53 * hash) + getExpiryDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.SCMToken parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.SCMToken parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SCMToken parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.SCMToken prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SCMToken} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SCMToken) + io.gitpod.publicapi.v1.Scm.SCMTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SCMToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SCMToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SCMToken.class, io.gitpod.publicapi.v1.Scm.SCMToken.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.SCMToken.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUpdateDateFieldBuilder(); + getExpiryDateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + username_ = ""; + value_ = ""; + idToken_ = ""; + refreshToken_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + updateDate_ = null; + if (updateDateBuilder_ != null) { + updateDateBuilder_.dispose(); + updateDateBuilder_ = null; + } + expiryDate_ = null; + if (expiryDateBuilder_ != null) { + expiryDateBuilder_.dispose(); + expiryDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SCMToken_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SCMToken getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.SCMToken.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SCMToken build() { + io.gitpod.publicapi.v1.Scm.SCMToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SCMToken buildPartial() { + io.gitpod.publicapi.v1.Scm.SCMToken result = new io.gitpod.publicapi.v1.Scm.SCMToken(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.SCMToken result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.idToken_ = idToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.refreshToken_ = refreshToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateDate_ = updateDateBuilder_ == null + ? updateDate_ + : updateDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.expiryDate_ = expiryDateBuilder_ == null + ? expiryDate_ + : expiryDateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.SCMToken) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.SCMToken)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.SCMToken other) { + if (other == io.gitpod.publicapi.v1.Scm.SCMToken.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getIdToken().isEmpty()) { + idToken_ = other.idToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRefreshToken().isEmpty()) { + refreshToken_ = other.refreshToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000010; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (other.hasUpdateDate()) { + mergeUpdateDate(other.getUpdateDate()); + } + if (other.hasExpiryDate()) { + mergeExpiryDate(other.getExpiryDate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + idToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + refreshToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 42 + case 50: { + input.readMessage( + getUpdateDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getExpiryDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object username_ = ""; + /** + * string username = 1 [json_name = "username"]; + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string username = 1 [json_name = "username"]; + * @return The bytes for username. + */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string username = 1 [json_name = "username"]; + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string username = 1 [json_name = "username"]; + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string username = 1 [json_name = "username"]; + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 2 [json_name = "value"]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 2 [json_name = "value"]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 2 [json_name = "value"]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string value = 2 [json_name = "value"]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string value = 2 [json_name = "value"]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object idToken_ = ""; + /** + * string id_token = 3 [json_name = "idToken"]; + * @return The idToken. + */ + public java.lang.String getIdToken() { + java.lang.Object ref = idToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + idToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id_token = 3 [json_name = "idToken"]; + * @return The bytes for idToken. + */ + public com.google.protobuf.ByteString + getIdTokenBytes() { + java.lang.Object ref = idToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id_token = 3 [json_name = "idToken"]; + * @param value The idToken to set. + * @return This builder for chaining. + */ + public Builder setIdToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + idToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string id_token = 3 [json_name = "idToken"]; + * @return This builder for chaining. + */ + public Builder clearIdToken() { + idToken_ = getDefaultInstance().getIdToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string id_token = 3 [json_name = "idToken"]; + * @param value The bytes for idToken to set. + * @return This builder for chaining. + */ + public Builder setIdTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + idToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object refreshToken_ = ""; + /** + * string refresh_token = 4 [json_name = "refreshToken"]; + * @return The refreshToken. + */ + public java.lang.String getRefreshToken() { + java.lang.Object ref = refreshToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + refreshToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string refresh_token = 4 [json_name = "refreshToken"]; + * @return The bytes for refreshToken. + */ + public com.google.protobuf.ByteString + getRefreshTokenBytes() { + java.lang.Object ref = refreshToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + refreshToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string refresh_token = 4 [json_name = "refreshToken"]; + * @param value The refreshToken to set. + * @return This builder for chaining. + */ + public Builder setRefreshToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + refreshToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string refresh_token = 4 [json_name = "refreshToken"]; + * @return This builder for chaining. + */ + public Builder clearRefreshToken() { + refreshToken_ = getDefaultInstance().getRefreshToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string refresh_token = 4 [json_name = "refreshToken"]; + * @param value The bytes for refreshToken to set. + * @return This builder for chaining. + */ + public Builder setRefreshTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + refreshToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000010; + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes( + java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scopes_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + * repeated string scopes = 5 [json_name = "scopes"]; + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateDateBuilder_; + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + * @return Whether the updateDate field is set. + */ + public boolean hasUpdateDate() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + * @return The updateDate. + */ + public com.google.protobuf.Timestamp getUpdateDate() { + if (updateDateBuilder_ == null) { + return updateDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateDate_; + } else { + return updateDateBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + */ + public Builder setUpdateDate(com.google.protobuf.Timestamp value) { + if (updateDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateDate_ = value; + } else { + updateDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + */ + public Builder setUpdateDate( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateDateBuilder_ == null) { + updateDate_ = builderForValue.build(); + } else { + updateDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + */ + public Builder mergeUpdateDate(com.google.protobuf.Timestamp value) { + if (updateDateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + updateDate_ != null && + updateDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateDateBuilder().mergeFrom(value); + } else { + updateDate_ = value; + } + } else { + updateDateBuilder_.mergeFrom(value); + } + if (updateDate_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + */ + public Builder clearUpdateDate() { + bitField0_ = (bitField0_ & ~0x00000020); + updateDate_ = null; + if (updateDateBuilder_ != null) { + updateDateBuilder_.dispose(); + updateDateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateDateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUpdateDateFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateDateOrBuilder() { + if (updateDateBuilder_ != null) { + return updateDateBuilder_.getMessageOrBuilder(); + } else { + return updateDate_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateDate_; + } + } + /** + * .google.protobuf.Timestamp update_date = 6 [json_name = "updateDate"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateDateFieldBuilder() { + if (updateDateBuilder_ == null) { + updateDateBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateDate(), + getParentForChildren(), + isClean()); + updateDate_ = null; + } + return updateDateBuilder_; + } + + private com.google.protobuf.Timestamp expiryDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiryDateBuilder_; + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + * @return Whether the expiryDate field is set. + */ + public boolean hasExpiryDate() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + * @return The expiryDate. + */ + public com.google.protobuf.Timestamp getExpiryDate() { + if (expiryDateBuilder_ == null) { + return expiryDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiryDate_; + } else { + return expiryDateBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + */ + public Builder setExpiryDate(com.google.protobuf.Timestamp value) { + if (expiryDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiryDate_ = value; + } else { + expiryDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + */ + public Builder setExpiryDate( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expiryDateBuilder_ == null) { + expiryDate_ = builderForValue.build(); + } else { + expiryDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + */ + public Builder mergeExpiryDate(com.google.protobuf.Timestamp value) { + if (expiryDateBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + expiryDate_ != null && + expiryDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpiryDateBuilder().mergeFrom(value); + } else { + expiryDate_ = value; + } + } else { + expiryDateBuilder_.mergeFrom(value); + } + if (expiryDate_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + */ + public Builder clearExpiryDate() { + bitField0_ = (bitField0_ & ~0x00000040); + expiryDate_ = null; + if (expiryDateBuilder_ != null) { + expiryDateBuilder_.dispose(); + expiryDateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + */ + public com.google.protobuf.Timestamp.Builder getExpiryDateBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getExpiryDateFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + */ + public com.google.protobuf.TimestampOrBuilder getExpiryDateOrBuilder() { + if (expiryDateBuilder_ != null) { + return expiryDateBuilder_.getMessageOrBuilder(); + } else { + return expiryDate_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expiryDate_; + } + } + /** + * .google.protobuf.Timestamp expiry_date = 7 [json_name = "expiryDate"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpiryDateFieldBuilder() { + if (expiryDateBuilder_ == null) { + expiryDateBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpiryDate(), + getParentForChildren(), + isClean()); + expiryDate_ = null; + } + return expiryDateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SCMToken) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SCMToken) + private static final io.gitpod.publicapi.v1.Scm.SCMToken DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.SCMToken(); + } + + public static io.gitpod.publicapi.v1.Scm.SCMToken getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SCMToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SCMToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SuggestedRepositoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SuggestedRepository) + com.google.protobuf.MessageOrBuilder { + + /** + * string url = 1 [json_name = "url"]; + * @return The url. + */ + java.lang.String getUrl(); + /** + * string url = 1 [json_name = "url"]; + * @return The bytes for url. + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + * string repo_name = 2 [json_name = "repoName"]; + * @return The repoName. + */ + java.lang.String getRepoName(); + /** + * string repo_name = 2 [json_name = "repoName"]; + * @return The bytes for repoName. + */ + com.google.protobuf.ByteString + getRepoNameBytes(); + + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + * string configuration_name = 4 [json_name = "configurationName"]; + * @return The configurationName. + */ + java.lang.String getConfigurationName(); + /** + * string configuration_name = 4 [json_name = "configurationName"]; + * @return The bytes for configurationName. + */ + com.google.protobuf.ByteString + getConfigurationNameBytes(); + } + /** + * Protobuf type {@code gitpod.v1.SuggestedRepository} + */ + public static final class SuggestedRepository extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SuggestedRepository) + SuggestedRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SuggestedRepository.class.getName()); + } + // Use SuggestedRepository.newBuilder() to construct. + private SuggestedRepository(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SuggestedRepository() { + url_ = ""; + repoName_ = ""; + configurationId_ = ""; + configurationName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SuggestedRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SuggestedRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SuggestedRepository.class, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + * string url = 1 [json_name = "url"]; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + * string url = 1 [json_name = "url"]; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPO_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object repoName_ = ""; + /** + * string repo_name = 2 [json_name = "repoName"]; + * @return The repoName. + */ + @java.lang.Override + public java.lang.String getRepoName() { + java.lang.Object ref = repoName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repoName_ = s; + return s; + } + } + /** + * string repo_name = 2 [json_name = "repoName"]; + * @return The bytes for repoName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRepoNameBytes() { + java.lang.Object ref = repoName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIGURATION_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationName_ = ""; + /** + * string configuration_name = 4 [json_name = "configurationName"]; + * @return The configurationName. + */ + @java.lang.Override + public java.lang.String getConfigurationName() { + java.lang.Object ref = configurationName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationName_ = s; + return s; + } + } + /** + * string configuration_name = 4 [json_name = "configurationName"]; + * @return The bytes for configurationName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationNameBytes() { + java.lang.Object ref = configurationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repoName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, repoName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, configurationName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repoName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, repoName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, configurationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, configurationName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.SuggestedRepository)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.SuggestedRepository other = (io.gitpod.publicapi.v1.Scm.SuggestedRepository) obj; + + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getRepoName() + .equals(other.getRepoName())) return false; + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!getConfigurationName() + .equals(other.getConfigurationName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + REPO_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRepoName().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (37 * hash) + CONFIGURATION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.SuggestedRepository prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SuggestedRepository} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SuggestedRepository) + io.gitpod.publicapi.v1.Scm.SuggestedRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SuggestedRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SuggestedRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.SuggestedRepository.class, io.gitpod.publicapi.v1.Scm.SuggestedRepository.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.SuggestedRepository.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + url_ = ""; + repoName_ = ""; + configurationId_ = ""; + configurationName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_SuggestedRepository_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SuggestedRepository getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.SuggestedRepository.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SuggestedRepository build() { + io.gitpod.publicapi.v1.Scm.SuggestedRepository result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SuggestedRepository buildPartial() { + io.gitpod.publicapi.v1.Scm.SuggestedRepository result = new io.gitpod.publicapi.v1.Scm.SuggestedRepository(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.SuggestedRepository result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.repoName_ = repoName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.configurationId_ = configurationId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.configurationName_ = configurationName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.SuggestedRepository) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.SuggestedRepository)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.SuggestedRepository other) { + if (other == io.gitpod.publicapi.v1.Scm.SuggestedRepository.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRepoName().isEmpty()) { + repoName_ = other.repoName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getConfigurationName().isEmpty()) { + configurationName_ = other.configurationName_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + repoName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + configurationName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object url_ = ""; + /** + * string url = 1 [json_name = "url"]; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string url = 1 [json_name = "url"]; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string url = 1 [json_name = "url"]; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string url = 1 [json_name = "url"]; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string url = 1 [json_name = "url"]; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object repoName_ = ""; + /** + * string repo_name = 2 [json_name = "repoName"]; + * @return The repoName. + */ + public java.lang.String getRepoName() { + java.lang.Object ref = repoName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repoName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string repo_name = 2 [json_name = "repoName"]; + * @return The bytes for repoName. + */ + public com.google.protobuf.ByteString + getRepoNameBytes() { + java.lang.Object ref = repoName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string repo_name = 2 [json_name = "repoName"]; + * @param value The repoName to set. + * @return This builder for chaining. + */ + public Builder setRepoName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + repoName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string repo_name = 2 [json_name = "repoName"]; + * @return This builder for chaining. + */ + public Builder clearRepoName() { + repoName_ = getDefaultInstance().getRepoName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string repo_name = 2 [json_name = "repoName"]; + * @param value The bytes for repoName to set. + * @return This builder for chaining. + */ + public Builder setRepoNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + repoName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object configurationId_ = ""; + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string configuration_id = 3 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object configurationName_ = ""; + /** + * string configuration_name = 4 [json_name = "configurationName"]; + * @return The configurationName. + */ + public java.lang.String getConfigurationName() { + java.lang.Object ref = configurationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string configuration_name = 4 [json_name = "configurationName"]; + * @return The bytes for configurationName. + */ + public com.google.protobuf.ByteString + getConfigurationNameBytes() { + java.lang.Object ref = configurationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string configuration_name = 4 [json_name = "configurationName"]; + * @param value The configurationName to set. + * @return This builder for chaining. + */ + public Builder setConfigurationName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string configuration_name = 4 [json_name = "configurationName"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationName() { + configurationName_ = getDefaultInstance().getConfigurationName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string configuration_name = 4 [json_name = "configurationName"]; + * @param value The bytes for configurationName to set. + * @return This builder for chaining. + */ + public Builder setConfigurationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SuggestedRepository) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SuggestedRepository) + private static final io.gitpod.publicapi.v1.Scm.SuggestedRepository DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.SuggestedRepository(); + } + + public static io.gitpod.publicapi.v1.Scm.SuggestedRepository getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestedRepository parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.SuggestedRepository getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthorOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.Author) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string avatar_url = 2 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + java.lang.String getAvatarUrl(); + /** + * string avatar_url = 2 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + com.google.protobuf.ByteString + getAvatarUrlBytes(); + } + /** + * Protobuf type {@code gitpod.v1.Author} + */ + public static final class Author extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.Author) + AuthorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Author.class.getName()); + } + // Use Author.newBuilder() to construct. + private Author(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Author() { + name_ = ""; + avatarUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Author_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Author_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.Author.class, io.gitpod.publicapi.v1.Scm.Author.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVATAR_URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object avatarUrl_ = ""; + /** + * string avatar_url = 2 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + @java.lang.Override + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } + } + /** + * string avatar_url = 2 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, avatarUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, avatarUrl_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.Author)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.Author other = (io.gitpod.publicapi.v1.Scm.Author) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getAvatarUrl() + .equals(other.getAvatarUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AVATAR_URL_FIELD_NUMBER; + hash = (53 * hash) + getAvatarUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.Author parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.Author parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.Author parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.Author parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.Author parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.Author parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.Author parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.Author parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.Author parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.Author parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.Author parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.Author parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.Author prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.Author} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.Author) + io.gitpod.publicapi.v1.Scm.AuthorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Author_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Author_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.Author.class, io.gitpod.publicapi.v1.Scm.Author.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.Author.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + avatarUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Author_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Author getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.Author.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Author build() { + io.gitpod.publicapi.v1.Scm.Author result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Author buildPartial() { + io.gitpod.publicapi.v1.Scm.Author result = new io.gitpod.publicapi.v1.Scm.Author(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.Author result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.avatarUrl_ = avatarUrl_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.Author) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.Author)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.Author other) { + if (other == io.gitpod.publicapi.v1.Scm.Author.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAvatarUrl().isEmpty()) { + avatarUrl_ = other.avatarUrl_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + avatarUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object avatarUrl_ = ""; + /** + * string avatar_url = 2 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string avatar_url = 2 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string avatar_url = 2 [json_name = "avatarUrl"]; + * @param value The avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + avatarUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string avatar_url = 2 [json_name = "avatarUrl"]; + * @return This builder for chaining. + */ + public Builder clearAvatarUrl() { + avatarUrl_ = getDefaultInstance().getAvatarUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string avatar_url = 2 [json_name = "avatarUrl"]; + * @param value The bytes for avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + avatarUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.Author) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.Author) + private static final io.gitpod.publicapi.v1.Scm.Author DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.Author(); + } + + public static io.gitpod.publicapi.v1.Scm.Author getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Author parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Author getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CommitOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.Commit) + com.google.protobuf.MessageOrBuilder { + + /** + * string message = 1 [json_name = "message"]; + * @return The message. + */ + java.lang.String getMessage(); + /** + * string message = 1 [json_name = "message"]; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + * @return Whether the author field is set. + */ + boolean hasAuthor(); + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + * @return The author. + */ + io.gitpod.publicapi.v1.Scm.Author getAuthor(); + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + */ + io.gitpod.publicapi.v1.Scm.AuthorOrBuilder getAuthorOrBuilder(); + + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + * @return Whether the authorDate field is set. + */ + boolean hasAuthorDate(); + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + * @return The authorDate. + */ + com.google.protobuf.Timestamp getAuthorDate(); + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + */ + com.google.protobuf.TimestampOrBuilder getAuthorDateOrBuilder(); + + /** + * string sha = 4 [json_name = "sha"]; + * @return The sha. + */ + java.lang.String getSha(); + /** + * string sha = 4 [json_name = "sha"]; + * @return The bytes for sha. + */ + com.google.protobuf.ByteString + getShaBytes(); + } + /** + * Protobuf type {@code gitpod.v1.Commit} + */ + public static final class Commit extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.Commit) + CommitOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Commit.class.getName()); + } + // Use Commit.newBuilder() to construct. + private Commit(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Commit() { + message_ = ""; + sha_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Commit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Commit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.Commit.class, io.gitpod.publicapi.v1.Scm.Commit.Builder.class); + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * string message = 1 [json_name = "message"]; + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * string message = 1 [json_name = "message"]; + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Scm.Author author_; + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + * @return Whether the author field is set. + */ + @java.lang.Override + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + * @return The author. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Author getAuthor() { + return author_ == null ? io.gitpod.publicapi.v1.Scm.Author.getDefaultInstance() : author_; + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.AuthorOrBuilder getAuthorOrBuilder() { + return author_ == null ? io.gitpod.publicapi.v1.Scm.Author.getDefaultInstance() : author_; + } + + public static final int AUTHOR_DATE_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp authorDate_; + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + * @return Whether the authorDate field is set. + */ + @java.lang.Override + public boolean hasAuthorDate() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + * @return The authorDate. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getAuthorDate() { + return authorDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : authorDate_; + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getAuthorDateOrBuilder() { + return authorDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : authorDate_; + } + + public static final int SHA_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object sha_ = ""; + /** + * string sha = 4 [json_name = "sha"]; + * @return The sha. + */ + @java.lang.Override + public java.lang.String getSha() { + java.lang.Object ref = sha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sha_ = s; + return s; + } + } + /** + * string sha = 4 [json_name = "sha"]; + * @return The bytes for sha. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getShaBytes() { + java.lang.Object ref = sha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, message_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAuthor()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getAuthorDate()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sha_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, sha_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, message_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAuthor()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAuthorDate()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sha_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, sha_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Scm.Commit)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Scm.Commit other = (io.gitpod.publicapi.v1.Scm.Commit) obj; + + if (!getMessage() + .equals(other.getMessage())) return false; + if (hasAuthor() != other.hasAuthor()) return false; + if (hasAuthor()) { + if (!getAuthor() + .equals(other.getAuthor())) return false; + } + if (hasAuthorDate() != other.hasAuthorDate()) return false; + if (hasAuthorDate()) { + if (!getAuthorDate() + .equals(other.getAuthorDate())) return false; + } + if (!getSha() + .equals(other.getSha())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + if (hasAuthorDate()) { + hash = (37 * hash) + AUTHOR_DATE_FIELD_NUMBER; + hash = (53 * hash) + getAuthorDate().hashCode(); + } + hash = (37 * hash) + SHA_FIELD_NUMBER; + hash = (53 * hash) + getSha().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Scm.Commit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Scm.Commit parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Scm.Commit parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Scm.Commit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.Commit} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.Commit) + io.gitpod.publicapi.v1.Scm.CommitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Commit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Commit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Scm.Commit.class, io.gitpod.publicapi.v1.Scm.Commit.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Scm.Commit.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getAuthorFieldBuilder(); + getAuthorDateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + author_ = null; + if (authorBuilder_ != null) { + authorBuilder_.dispose(); + authorBuilder_ = null; + } + authorDate_ = null; + if (authorDateBuilder_ != null) { + authorDateBuilder_.dispose(); + authorDateBuilder_ = null; + } + sha_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Scm.internal_static_gitpod_v1_Commit_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Commit getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Scm.Commit.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Commit build() { + io.gitpod.publicapi.v1.Scm.Commit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Commit buildPartial() { + io.gitpod.publicapi.v1.Scm.Commit result = new io.gitpod.publicapi.v1.Scm.Commit(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Scm.Commit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.author_ = authorBuilder_ == null + ? author_ + : authorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorDate_ = authorDateBuilder_ == null + ? authorDate_ + : authorDateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sha_ = sha_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Scm.Commit) { + return mergeFrom((io.gitpod.publicapi.v1.Scm.Commit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Scm.Commit other) { + if (other == io.gitpod.publicapi.v1.Scm.Commit.getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAuthor()) { + mergeAuthor(other.getAuthor()); + } + if (other.hasAuthorDate()) { + mergeAuthorDate(other.getAuthorDate()); + } + if (!other.getSha().isEmpty()) { + sha_ = other.sha_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAuthorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getAuthorDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + sha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object message_ = ""; + /** + * string message = 1 [json_name = "message"]; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string message = 1 [json_name = "message"]; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string message = 1 [json_name = "message"]; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string message = 1 [json_name = "message"]; + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string message = 1 [json_name = "message"]; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Scm.Author author_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Scm.Author, io.gitpod.publicapi.v1.Scm.Author.Builder, io.gitpod.publicapi.v1.Scm.AuthorOrBuilder> authorBuilder_; + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + * @return Whether the author field is set. + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + * @return The author. + */ + public io.gitpod.publicapi.v1.Scm.Author getAuthor() { + if (authorBuilder_ == null) { + return author_ == null ? io.gitpod.publicapi.v1.Scm.Author.getDefaultInstance() : author_; + } else { + return authorBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + */ + public Builder setAuthor(io.gitpod.publicapi.v1.Scm.Author value) { + if (authorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + } else { + authorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + */ + public Builder setAuthor( + io.gitpod.publicapi.v1.Scm.Author.Builder builderForValue) { + if (authorBuilder_ == null) { + author_ = builderForValue.build(); + } else { + authorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + */ + public Builder mergeAuthor(io.gitpod.publicapi.v1.Scm.Author value) { + if (authorBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + author_ != null && + author_ != io.gitpod.publicapi.v1.Scm.Author.getDefaultInstance()) { + getAuthorBuilder().mergeFrom(value); + } else { + author_ = value; + } + } else { + authorBuilder_.mergeFrom(value); + } + if (author_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + */ + public Builder clearAuthor() { + bitField0_ = (bitField0_ & ~0x00000002); + author_ = null; + if (authorBuilder_ != null) { + authorBuilder_.dispose(); + authorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + */ + public io.gitpod.publicapi.v1.Scm.Author.Builder getAuthorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAuthorFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + */ + public io.gitpod.publicapi.v1.Scm.AuthorOrBuilder getAuthorOrBuilder() { + if (authorBuilder_ != null) { + return authorBuilder_.getMessageOrBuilder(); + } else { + return author_ == null ? + io.gitpod.publicapi.v1.Scm.Author.getDefaultInstance() : author_; + } + } + /** + * .gitpod.v1.Author author = 2 [json_name = "author"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Scm.Author, io.gitpod.publicapi.v1.Scm.Author.Builder, io.gitpod.publicapi.v1.Scm.AuthorOrBuilder> + getAuthorFieldBuilder() { + if (authorBuilder_ == null) { + authorBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Scm.Author, io.gitpod.publicapi.v1.Scm.Author.Builder, io.gitpod.publicapi.v1.Scm.AuthorOrBuilder>( + getAuthor(), + getParentForChildren(), + isClean()); + author_ = null; + } + return authorBuilder_; + } + + private com.google.protobuf.Timestamp authorDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> authorDateBuilder_; + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + * @return Whether the authorDate field is set. + */ + public boolean hasAuthorDate() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + * @return The authorDate. + */ + public com.google.protobuf.Timestamp getAuthorDate() { + if (authorDateBuilder_ == null) { + return authorDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : authorDate_; + } else { + return authorDateBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + */ + public Builder setAuthorDate(com.google.protobuf.Timestamp value) { + if (authorDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authorDate_ = value; + } else { + authorDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + */ + public Builder setAuthorDate( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (authorDateBuilder_ == null) { + authorDate_ = builderForValue.build(); + } else { + authorDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + */ + public Builder mergeAuthorDate(com.google.protobuf.Timestamp value) { + if (authorDateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + authorDate_ != null && + authorDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getAuthorDateBuilder().mergeFrom(value); + } else { + authorDate_ = value; + } + } else { + authorDateBuilder_.mergeFrom(value); + } + if (authorDate_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + */ + public Builder clearAuthorDate() { + bitField0_ = (bitField0_ & ~0x00000004); + authorDate_ = null; + if (authorDateBuilder_ != null) { + authorDateBuilder_.dispose(); + authorDateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + */ + public com.google.protobuf.Timestamp.Builder getAuthorDateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAuthorDateFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + */ + public com.google.protobuf.TimestampOrBuilder getAuthorDateOrBuilder() { + if (authorDateBuilder_ != null) { + return authorDateBuilder_.getMessageOrBuilder(); + } else { + return authorDate_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : authorDate_; + } + } + /** + * .google.protobuf.Timestamp author_date = 3 [json_name = "authorDate"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getAuthorDateFieldBuilder() { + if (authorDateBuilder_ == null) { + authorDateBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getAuthorDate(), + getParentForChildren(), + isClean()); + authorDate_ = null; + } + return authorDateBuilder_; + } + + private java.lang.Object sha_ = ""; + /** + * string sha = 4 [json_name = "sha"]; + * @return The sha. + */ + public java.lang.String getSha() { + java.lang.Object ref = sha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string sha = 4 [json_name = "sha"]; + * @return The bytes for sha. + */ + public com.google.protobuf.ByteString + getShaBytes() { + java.lang.Object ref = sha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string sha = 4 [json_name = "sha"]; + * @param value The sha to set. + * @return This builder for chaining. + */ + public Builder setSha( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + sha_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string sha = 4 [json_name = "sha"]; + * @return This builder for chaining. + */ + public Builder clearSha() { + sha_ = getDefaultInstance().getSha(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string sha = 4 [json_name = "sha"]; + * @param value The bytes for sha to set. + * @return This builder for chaining. + */ + public Builder setShaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + sha_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.Commit) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.Commit) + private static final io.gitpod.publicapi.v1.Scm.Commit DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Scm.Commit(); + } + + public static io.gitpod.publicapi.v1.Scm.Commit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Commit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Scm.Commit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SearchSCMTokensRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SearchSCMTokensRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SearchSCMTokensResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SearchSCMTokensResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GuessTokenScopesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GuessTokenScopesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GuessTokenScopesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GuessTokenScopesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SearchRepositoriesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SearchRepositoriesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SearchRepositoriesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SearchRepositoriesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SCMToken_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SCMToken_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SuggestedRepository_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SuggestedRepository_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_Author_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_Author_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_Commit_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_Commit_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\023gitpod/v1/scm.proto\022\tgitpod.v1\032\032gitpod" + + "/v1/pagination.proto\032\037google/protobuf/ti" + + "mestamp.proto\",\n\026SearchSCMTokensRequest\022" + + "\022\n\004host\030\001 \001(\tR\004host\"F\n\027SearchSCMTokensRe" + + "sponse\022+\n\006tokens\030\001 \003(\0132\023.gitpod.v1.SCMTo" + + "kenR\006tokens\"i\n\027GuessTokenScopesRequest\022\022" + + "\n\004host\030\001 \001(\tR\004host\022\031\n\010repo_url\030\002 \001(\tR\007re" + + "poUrl\022\037\n\013git_command\030\003 \001(\tR\ngitCommand\"L" + + "\n\030GuessTokenScopesResponse\022\026\n\006scopes\030\001 \003" + + "(\tR\006scopes\022\030\n\007message\030\002 \001(\tR\007message\"V\n\031" + + "SearchRepositoriesRequest\022#\n\rsearch_stri" + + "ng\030\001 \001(\tR\014searchString\022\024\n\005limit\030\002 \001(\005R\005l" + + "imit\"`\n\032SearchRepositoriesResponse\022B\n\014re" + + "positories\030\001 \003(\0132\036.gitpod.v1.SuggestedRe" + + "positoryR\014repositories\"\300\001\n ListSuggested" + + "RepositoriesRequest\022<\n\npagination\030\001 \001(\0132" + + "\034.gitpod.v1.PaginationRequestR\npaginatio" + + "n\022\'\n\017organization_id\030\002 \001(\tR\016organization" + + "Id\0225\n\026exclude_configurations\030\003 \001(\010R\025excl" + + "udeConfigurations\"\246\001\n!ListSuggestedRepos" + + "itoriesResponse\022=\n\npagination\030\001 \001(\0132\035.gi" + + "tpod.v1.PaginationResponseR\npagination\022B" + + "\n\014repositories\030\002 \003(\0132\036.gitpod.v1.Suggest" + + "edRepositoryR\014repositories\"\216\002\n\010SCMToken\022" + + "\032\n\010username\030\001 \001(\tR\010username\022\024\n\005value\030\002 \001" + + "(\tR\005value\022\031\n\010id_token\030\003 \001(\tR\007idToken\022#\n\r" + + "refresh_token\030\004 \001(\tR\014refreshToken\022\026\n\006sco" + + "pes\030\005 \003(\tR\006scopes\022;\n\013update_date\030\006 \001(\0132\032" + + ".google.protobuf.TimestampR\nupdateDate\022;" + + "\n\013expiry_date\030\007 \001(\0132\032.google.protobuf.Ti" + + "mestampR\nexpiryDate\"\236\001\n\023SuggestedReposit" + + "ory\022\020\n\003url\030\001 \001(\tR\003url\022\033\n\trepo_name\030\002 \001(\t" + + "R\010repoName\022)\n\020configuration_id\030\003 \001(\tR\017co" + + "nfigurationId\022-\n\022configuration_name\030\004 \001(" + + "\tR\021configurationName\";\n\006Author\022\022\n\004name\030\001" + + " \001(\tR\004name\022\035\n\navatar_url\030\002 \001(\tR\tavatarUr" + + "l\"\234\001\n\006Commit\022\030\n\007message\030\001 \001(\tR\007message\022)" + + "\n\006author\030\002 \001(\0132\021.gitpod.v1.AuthorR\006autho" + + "r\022;\n\013author_date\030\003 \001(\0132\032.google.protobuf" + + ".TimestampR\nauthorDate\022\020\n\003sha\030\004 \001(\tR\003sha" + + "2\246\003\n\nSCMService\022Z\n\017SearchSCMTokens\022!.git" + + "pod.v1.SearchSCMTokensRequest\032\".gitpod.v" + + "1.SearchSCMTokensResponse\"\000\022]\n\020GuessToke" + + "nScopes\022\".gitpod.v1.GuessTokenScopesRequ" + + "est\032#.gitpod.v1.GuessTokenScopesResponse" + + "\"\000\022c\n\022SearchRepositories\022$.gitpod.v1.Sea" + + "rchRepositoriesRequest\032%.gitpod.v1.Searc" + + "hRepositoriesResponse\"\000\022x\n\031ListSuggested" + + "Repositories\022+.gitpod.v1.ListSuggestedRe" + + "positoriesRequest\032,.gitpod.v1.ListSugges" + + "tedRepositoriesResponse\"\000BQ\n\026io.gitpod.p" + + "ublicapi.v1Z7github.com/gitpod-io/gitpod" + + "/components/public-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_v1_SearchSCMTokensRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_SearchSCMTokensRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SearchSCMTokensRequest_descriptor, + new java.lang.String[] { "Host", }); + internal_static_gitpod_v1_SearchSCMTokensResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_SearchSCMTokensResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SearchSCMTokensResponse_descriptor, + new java.lang.String[] { "Tokens", }); + internal_static_gitpod_v1_GuessTokenScopesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_GuessTokenScopesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GuessTokenScopesRequest_descriptor, + new java.lang.String[] { "Host", "RepoUrl", "GitCommand", }); + internal_static_gitpod_v1_GuessTokenScopesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_GuessTokenScopesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GuessTokenScopesResponse_descriptor, + new java.lang.String[] { "Scopes", "Message", }); + internal_static_gitpod_v1_SearchRepositoriesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_SearchRepositoriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SearchRepositoriesRequest_descriptor, + new java.lang.String[] { "SearchString", "Limit", }); + internal_static_gitpod_v1_SearchRepositoriesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_SearchRepositoriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SearchRepositoriesResponse_descriptor, + new java.lang.String[] { "Repositories", }); + internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListSuggestedRepositoriesRequest_descriptor, + new java.lang.String[] { "Pagination", "OrganizationId", "ExcludeConfigurations", }); + internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListSuggestedRepositoriesResponse_descriptor, + new java.lang.String[] { "Pagination", "Repositories", }); + internal_static_gitpod_v1_SCMToken_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_SCMToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SCMToken_descriptor, + new java.lang.String[] { "Username", "Value", "IdToken", "RefreshToken", "Scopes", "UpdateDate", "ExpiryDate", }); + internal_static_gitpod_v1_SuggestedRepository_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_SuggestedRepository_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SuggestedRepository_descriptor, + new java.lang.String[] { "Url", "RepoName", "ConfigurationId", "ConfigurationName", }); + internal_static_gitpod_v1_Author_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_Author_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_Author_descriptor, + new java.lang.String[] { "Name", "AvatarUrl", }); + internal_static_gitpod_v1_Commit_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_v1_Commit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_Commit_descriptor, + new java.lang.String[] { "Message", "Author", "AuthorDate", "Sha", }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Sorting.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Sorting.java new file mode 100644 index 00000000000000..541696c4e0d4f0 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Sorting.java @@ -0,0 +1,846 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/sorting.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Sorting { + private Sorting() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Sorting.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code gitpod.v1.SortOrder} + */ + public enum SortOrder + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SORT_ORDER_UNSPECIFIED = 0; + */ + SORT_ORDER_UNSPECIFIED(0), + /** + * SORT_ORDER_ASC = 1; + */ + SORT_ORDER_ASC(1), + /** + * SORT_ORDER_DESC = 2; + */ + SORT_ORDER_DESC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SortOrder.class.getName()); + } + /** + * SORT_ORDER_UNSPECIFIED = 0; + */ + public static final int SORT_ORDER_UNSPECIFIED_VALUE = 0; + /** + * SORT_ORDER_ASC = 1; + */ + public static final int SORT_ORDER_ASC_VALUE = 1; + /** + * SORT_ORDER_DESC = 2; + */ + public static final int SORT_ORDER_DESC_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SortOrder valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SortOrder forNumber(int value) { + switch (value) { + case 0: return SORT_ORDER_UNSPECIFIED; + case 1: return SORT_ORDER_ASC; + case 2: return SORT_ORDER_DESC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SortOrder> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SortOrder findValueByNumber(int number) { + return SortOrder.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Sorting.getDescriptor().getEnumTypes().get(0); + } + + private static final SortOrder[] VALUES = values(); + + public static SortOrder valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SortOrder(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.SortOrder) + } + + public interface SortOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.Sort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Field name to sort by, in camelCase.
+     * 
+ * + * string field = 1 [json_name = "field"]; + * @return The field. + */ + java.lang.String getField(); + /** + *
+     * Field name to sort by, in camelCase.
+     * 
+ * + * string field = 1 [json_name = "field"]; + * @return The bytes for field. + */ + com.google.protobuf.ByteString + getFieldBytes(); + + /** + * .gitpod.v1.SortOrder order = 2 [json_name = "order"]; + * @return The enum numeric value on the wire for order. + */ + int getOrderValue(); + /** + * .gitpod.v1.SortOrder order = 2 [json_name = "order"]; + * @return The order. + */ + io.gitpod.publicapi.v1.Sorting.SortOrder getOrder(); + } + /** + * Protobuf type {@code gitpod.v1.Sort} + */ + public static final class Sort extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.Sort) + SortOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Sort.class.getName()); + } + // Use Sort.newBuilder() to construct. + private Sort(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Sort() { + field_ = ""; + order_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Sorting.internal_static_gitpod_v1_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Sorting.internal_static_gitpod_v1_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Sorting.Sort.class, io.gitpod.publicapi.v1.Sorting.Sort.Builder.class); + } + + public static final int FIELD_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object field_ = ""; + /** + *
+     * Field name to sort by, in camelCase.
+     * 
+ * + * string field = 1 [json_name = "field"]; + * @return The field. + */ + @java.lang.Override + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } + } + /** + *
+     * Field name to sort by, in camelCase.
+     * 
+ * + * string field = 1 [json_name = "field"]; + * @return The bytes for field. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_FIELD_NUMBER = 2; + private int order_ = 0; + /** + * .gitpod.v1.SortOrder order = 2 [json_name = "order"]; + * @return The enum numeric value on the wire for order. + */ + @java.lang.Override public int getOrderValue() { + return order_; + } + /** + * .gitpod.v1.SortOrder order = 2 [json_name = "order"]; + * @return The order. + */ + @java.lang.Override public io.gitpod.publicapi.v1.Sorting.SortOrder getOrder() { + io.gitpod.publicapi.v1.Sorting.SortOrder result = io.gitpod.publicapi.v1.Sorting.SortOrder.forNumber(order_); + return result == null ? io.gitpod.publicapi.v1.Sorting.SortOrder.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, field_); + } + if (order_ != io.gitpod.publicapi.v1.Sorting.SortOrder.SORT_ORDER_UNSPECIFIED.getNumber()) { + output.writeEnum(2, order_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, field_); + } + if (order_ != io.gitpod.publicapi.v1.Sorting.SortOrder.SORT_ORDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, order_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Sorting.Sort)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Sorting.Sort other = (io.gitpod.publicapi.v1.Sorting.Sort) obj; + + if (!getField() + .equals(other.getField())) return false; + if (order_ != other.order_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (37 * hash) + ORDER_FIELD_NUMBER; + hash = (53 * hash) + order_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Sorting.Sort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Sorting.Sort parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Sorting.Sort parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Sorting.Sort prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.Sort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.Sort) + io.gitpod.publicapi.v1.Sorting.SortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Sorting.internal_static_gitpod_v1_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Sorting.internal_static_gitpod_v1_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Sorting.Sort.class, io.gitpod.publicapi.v1.Sorting.Sort.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Sorting.Sort.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = ""; + order_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Sorting.internal_static_gitpod_v1_Sort_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.Sort getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.Sort build() { + io.gitpod.publicapi.v1.Sorting.Sort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.Sort buildPartial() { + io.gitpod.publicapi.v1.Sorting.Sort result = new io.gitpod.publicapi.v1.Sorting.Sort(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Sorting.Sort result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = field_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.order_ = order_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Sorting.Sort) { + return mergeFrom((io.gitpod.publicapi.v1.Sorting.Sort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Sorting.Sort other) { + if (other == io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance()) return this; + if (!other.getField().isEmpty()) { + field_ = other.field_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.order_ != 0) { + setOrderValue(other.getOrderValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + field_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + order_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object field_ = ""; + /** + *
+       * Field name to sort by, in camelCase.
+       * 
+ * + * string field = 1 [json_name = "field"]; + * @return The field. + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Field name to sort by, in camelCase.
+       * 
+ * + * string field = 1 [json_name = "field"]; + * @return The bytes for field. + */ + public com.google.protobuf.ByteString + getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Field name to sort by, in camelCase.
+       * 
+ * + * string field = 1 [json_name = "field"]; + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Field name to sort by, in camelCase.
+       * 
+ * + * string field = 1 [json_name = "field"]; + * @return This builder for chaining. + */ + public Builder clearField() { + field_ = getDefaultInstance().getField(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Field name to sort by, in camelCase.
+       * 
+ * + * string field = 1 [json_name = "field"]; + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int order_ = 0; + /** + * .gitpod.v1.SortOrder order = 2 [json_name = "order"]; + * @return The enum numeric value on the wire for order. + */ + @java.lang.Override public int getOrderValue() { + return order_; + } + /** + * .gitpod.v1.SortOrder order = 2 [json_name = "order"]; + * @param value The enum numeric value on the wire for order to set. + * @return This builder for chaining. + */ + public Builder setOrderValue(int value) { + order_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.SortOrder order = 2 [json_name = "order"]; + * @return The order. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.SortOrder getOrder() { + io.gitpod.publicapi.v1.Sorting.SortOrder result = io.gitpod.publicapi.v1.Sorting.SortOrder.forNumber(order_); + return result == null ? io.gitpod.publicapi.v1.Sorting.SortOrder.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.SortOrder order = 2 [json_name = "order"]; + * @param value The order to set. + * @return This builder for chaining. + */ + public Builder setOrder(io.gitpod.publicapi.v1.Sorting.SortOrder value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + order_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.SortOrder order = 2 [json_name = "order"]; + * @return This builder for chaining. + */ + public Builder clearOrder() { + bitField0_ = (bitField0_ & ~0x00000002); + order_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.Sort) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.Sort) + private static final io.gitpod.publicapi.v1.Sorting.Sort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Sorting.Sort(); + } + + public static io.gitpod.publicapi.v1.Sorting.Sort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.Sort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_Sort_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_Sort_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\027gitpod/v1/sorting.proto\022\tgitpod.v1\"H\n\004" + + "Sort\022\024\n\005field\030\001 \001(\tR\005field\022*\n\005order\030\002 \001(" + + "\0162\024.gitpod.v1.SortOrderR\005order*P\n\tSortOr" + + "der\022\032\n\026SORT_ORDER_UNSPECIFIED\020\000\022\022\n\016SORT_" + + "ORDER_ASC\020\001\022\023\n\017SORT_ORDER_DESC\020\002BQ\n\026io.g" + + "itpod.publicapi.v1Z7github.com/gitpod-io" + + "/gitpod/components/public-api/go/v1b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_v1_Sort_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_Sort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_Sort_descriptor, + new java.lang.String[] { "Field", "Order", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Ssh.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Ssh.java new file mode 100644 index 00000000000000..82f50cd244779f --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Ssh.java @@ -0,0 +1,5136 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/ssh.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Ssh { + private Ssh() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Ssh.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SSHPublicKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SSHPublicKey) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string key = 3 [json_name = "key"]; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 3 [json_name = "key"]; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * string fingerprint = 4 [json_name = "fingerprint"]; + * @return The fingerprint. + */ + java.lang.String getFingerprint(); + /** + * string fingerprint = 4 [json_name = "fingerprint"]; + * @return The bytes for fingerprint. + */ + com.google.protobuf.ByteString + getFingerprintBytes(); + + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + boolean hasCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return The creationTime. + */ + com.google.protobuf.Timestamp getCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder(); + + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + * @return Whether the lastUsedTime field is set. + */ + boolean hasLastUsedTime(); + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + * @return The lastUsedTime. + */ + com.google.protobuf.Timestamp getLastUsedTime(); + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + */ + com.google.protobuf.TimestampOrBuilder getLastUsedTimeOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.SSHPublicKey} + */ + public static final class SSHPublicKey extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SSHPublicKey) + SSHPublicKeyOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SSHPublicKey.class.getName()); + } + // Use SSHPublicKey.newBuilder() to construct. + private SSHPublicKey(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SSHPublicKey() { + id_ = ""; + name_ = ""; + key_ = ""; + fingerprint_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_SSHPublicKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_SSHPublicKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.SSHPublicKey.class, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + * string key = 3 [json_name = "key"]; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * string key = 3 [json_name = "key"]; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FINGERPRINT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object fingerprint_ = ""; + /** + * string fingerprint = 4 [json_name = "fingerprint"]; + * @return The fingerprint. + */ + @java.lang.Override + public java.lang.String getFingerprint() { + java.lang.Object ref = fingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fingerprint_ = s; + return s; + } + } + /** + * string fingerprint = 4 [json_name = "fingerprint"]; + * @return The bytes for fingerprint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFingerprintBytes() { + java.lang.Object ref = fingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATION_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp creationTime_; + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + @java.lang.Override + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return The creationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreationTime() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + + public static final int LAST_USED_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp lastUsedTime_; + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + * @return Whether the lastUsedTime field is set. + */ + @java.lang.Override + public boolean hasLastUsedTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + * @return The lastUsedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastUsedTime() { + return lastUsedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUsedTime_; + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastUsedTimeOrBuilder() { + return lastUsedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUsedTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fingerprint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, fingerprint_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getLastUsedTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fingerprint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, fingerprint_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLastUsedTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Ssh.SSHPublicKey)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Ssh.SSHPublicKey other = (io.gitpod.publicapi.v1.Ssh.SSHPublicKey) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getFingerprint() + .equals(other.getFingerprint())) return false; + if (hasCreationTime() != other.hasCreationTime()) return false; + if (hasCreationTime()) { + if (!getCreationTime() + .equals(other.getCreationTime())) return false; + } + if (hasLastUsedTime() != other.hasLastUsedTime()) return false; + if (hasLastUsedTime()) { + if (!getLastUsedTime() + .equals(other.getLastUsedTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; + hash = (53 * hash) + getFingerprint().hashCode(); + if (hasCreationTime()) { + hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreationTime().hashCode(); + } + if (hasLastUsedTime()) { + hash = (37 * hash) + LAST_USED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastUsedTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Ssh.SSHPublicKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SSHPublicKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SSHPublicKey) + io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_SSHPublicKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_SSHPublicKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.SSHPublicKey.class, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Ssh.SSHPublicKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreationTimeFieldBuilder(); + getLastUsedTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + name_ = ""; + key_ = ""; + fingerprint_ = ""; + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + lastUsedTime_ = null; + if (lastUsedTimeBuilder_ != null) { + lastUsedTimeBuilder_.dispose(); + lastUsedTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_SSHPublicKey_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Ssh.SSHPublicKey.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey build() { + io.gitpod.publicapi.v1.Ssh.SSHPublicKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey buildPartial() { + io.gitpod.publicapi.v1.Ssh.SSHPublicKey result = new io.gitpod.publicapi.v1.Ssh.SSHPublicKey(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Ssh.SSHPublicKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fingerprint_ = fingerprint_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.creationTime_ = creationTimeBuilder_ == null + ? creationTime_ + : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.lastUsedTime_ = lastUsedTimeBuilder_ == null + ? lastUsedTime_ + : lastUsedTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Ssh.SSHPublicKey) { + return mergeFrom((io.gitpod.publicapi.v1.Ssh.SSHPublicKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Ssh.SSHPublicKey other) { + if (other == io.gitpod.publicapi.v1.Ssh.SSHPublicKey.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFingerprint().isEmpty()) { + fingerprint_ = other.fingerprint_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); + } + if (other.hasLastUsedTime()) { + mergeLastUsedTime(other.getLastUsedTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + fingerprint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getCreationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getLastUsedTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * string key = 3 [json_name = "key"]; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 3 [json_name = "key"]; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 3 [json_name = "key"]; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + key_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string key = 3 [json_name = "key"]; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string key = 3 [json_name = "key"]; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object fingerprint_ = ""; + /** + * string fingerprint = 4 [json_name = "fingerprint"]; + * @return The fingerprint. + */ + public java.lang.String getFingerprint() { + java.lang.Object ref = fingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string fingerprint = 4 [json_name = "fingerprint"]; + * @return The bytes for fingerprint. + */ + public com.google.protobuf.ByteString + getFingerprintBytes() { + java.lang.Object ref = fingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string fingerprint = 4 [json_name = "fingerprint"]; + * @param value The fingerprint to set. + * @return This builder for chaining. + */ + public Builder setFingerprint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fingerprint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string fingerprint = 4 [json_name = "fingerprint"]; + * @return This builder for chaining. + */ + public Builder clearFingerprint() { + fingerprint_ = getDefaultInstance().getFingerprint(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string fingerprint = 4 [json_name = "fingerprint"]; + * @param value The bytes for fingerprint to set. + * @return This builder for chaining. + */ + public Builder setFingerprintBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fingerprint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_; + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + * @return The creationTime. + */ + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public Builder setCreationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + creationTime_ != null && + creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x00000010); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + } + /** + * .google.protobuf.Timestamp creation_time = 5 [json_name = "creationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), + getParentForChildren(), + isClean()); + creationTime_ = null; + } + return creationTimeBuilder_; + } + + private com.google.protobuf.Timestamp lastUsedTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUsedTimeBuilder_; + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + * @return Whether the lastUsedTime field is set. + */ + public boolean hasLastUsedTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + * @return The lastUsedTime. + */ + public com.google.protobuf.Timestamp getLastUsedTime() { + if (lastUsedTimeBuilder_ == null) { + return lastUsedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUsedTime_; + } else { + return lastUsedTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + */ + public Builder setLastUsedTime(com.google.protobuf.Timestamp value) { + if (lastUsedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastUsedTime_ = value; + } else { + lastUsedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + */ + public Builder setLastUsedTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastUsedTimeBuilder_ == null) { + lastUsedTime_ = builderForValue.build(); + } else { + lastUsedTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + */ + public Builder mergeLastUsedTime(com.google.protobuf.Timestamp value) { + if (lastUsedTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + lastUsedTime_ != null && + lastUsedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUsedTimeBuilder().mergeFrom(value); + } else { + lastUsedTime_ = value; + } + } else { + lastUsedTimeBuilder_.mergeFrom(value); + } + if (lastUsedTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + */ + public Builder clearLastUsedTime() { + bitField0_ = (bitField0_ & ~0x00000020); + lastUsedTime_ = null; + if (lastUsedTimeBuilder_ != null) { + lastUsedTimeBuilder_.dispose(); + lastUsedTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + */ + public com.google.protobuf.Timestamp.Builder getLastUsedTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getLastUsedTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getLastUsedTimeOrBuilder() { + if (lastUsedTimeBuilder_ != null) { + return lastUsedTimeBuilder_.getMessageOrBuilder(); + } else { + return lastUsedTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastUsedTime_; + } + } + /** + * .google.protobuf.Timestamp last_used_time = 6 [json_name = "lastUsedTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getLastUsedTimeFieldBuilder() { + if (lastUsedTimeBuilder_ == null) { + lastUsedTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastUsedTime(), + getParentForChildren(), + isClean()); + lastUsedTime_ = null; + } + return lastUsedTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SSHPublicKey) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SSHPublicKey) + private static final io.gitpod.publicapi.v1.Ssh.SSHPublicKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Ssh.SSHPublicKey(); + } + + public static io.gitpod.publicapi.v1.Ssh.SSHPublicKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SSHPublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListSSHPublicKeysRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListSSHPublicKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListSSHPublicKeysRequest} + */ + public static final class ListSSHPublicKeysRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListSSHPublicKeysRequest) + ListSSHPublicKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListSSHPublicKeysRequest.class.getName()); + } + // Use ListSSHPublicKeysRequest.newBuilder() to construct. + private ListSSHPublicKeysRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListSSHPublicKeysRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest.class, io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest other = (io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListSSHPublicKeysRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListSSHPublicKeysRequest) + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest.class, io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest build() { + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest buildPartial() { + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest result = new io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest other) { + if (other == io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListSSHPublicKeysRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListSSHPublicKeysRequest) + private static final io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest(); + } + + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSSHPublicKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListSSHPublicKeysResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListSSHPublicKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + java.util.List + getSshKeysList(); + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + io.gitpod.publicapi.v1.Ssh.SSHPublicKey getSshKeys(int index); + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + int getSshKeysCount(); + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + java.util.List + getSshKeysOrBuilderList(); + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder getSshKeysOrBuilder( + int index); + + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListSSHPublicKeysResponse} + */ + public static final class ListSSHPublicKeysResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListSSHPublicKeysResponse) + ListSSHPublicKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListSSHPublicKeysResponse.class.getName()); + } + // Use ListSSHPublicKeysResponse.newBuilder() to construct. + private ListSSHPublicKeysResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListSSHPublicKeysResponse() { + sshKeys_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse.class, io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse.Builder.class); + } + + private int bitField0_; + public static final int SSH_KEYS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List sshKeys_; + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + @java.lang.Override + public java.util.List getSshKeysList() { + return sshKeys_; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + @java.lang.Override + public java.util.List + getSshKeysOrBuilderList() { + return sshKeys_; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + @java.lang.Override + public int getSshKeysCount() { + return sshKeys_.size(); + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey getSshKeys(int index) { + return sshKeys_.get(index); + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder getSshKeysOrBuilder( + int index) { + return sshKeys_.get(index); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < sshKeys_.size(); i++) { + output.writeMessage(1, sshKeys_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sshKeys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sshKeys_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse other = (io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse) obj; + + if (!getSshKeysList() + .equals(other.getSshKeysList())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSshKeysCount() > 0) { + hash = (37 * hash) + SSH_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getSshKeysList().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListSSHPublicKeysResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListSSHPublicKeysResponse) + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse.class, io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getSshKeysFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sshKeysBuilder_ == null) { + sshKeys_ = java.util.Collections.emptyList(); + } else { + sshKeys_ = null; + sshKeysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_ListSSHPublicKeysResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse build() { + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse buildPartial() { + io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse result = new io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse result) { + if (sshKeysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sshKeys_ = java.util.Collections.unmodifiableList(sshKeys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sshKeys_ = sshKeys_; + } else { + result.sshKeys_ = sshKeysBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse other) { + if (other == io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse.getDefaultInstance()) return this; + if (sshKeysBuilder_ == null) { + if (!other.sshKeys_.isEmpty()) { + if (sshKeys_.isEmpty()) { + sshKeys_ = other.sshKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSshKeysIsMutable(); + sshKeys_.addAll(other.sshKeys_); + } + onChanged(); + } + } else { + if (!other.sshKeys_.isEmpty()) { + if (sshKeysBuilder_.isEmpty()) { + sshKeysBuilder_.dispose(); + sshKeysBuilder_ = null; + sshKeys_ = other.sshKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + sshKeysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSshKeysFieldBuilder() : null; + } else { + sshKeysBuilder_.addAllMessages(other.sshKeys_); + } + } + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.Ssh.SSHPublicKey m = + input.readMessage( + io.gitpod.publicapi.v1.Ssh.SSHPublicKey.parser(), + extensionRegistry); + if (sshKeysBuilder_ == null) { + ensureSshKeysIsMutable(); + sshKeys_.add(m); + } else { + sshKeysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List sshKeys_ = + java.util.Collections.emptyList(); + private void ensureSshKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sshKeys_ = new java.util.ArrayList(sshKeys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Ssh.SSHPublicKey, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder, io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder> sshKeysBuilder_; + + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public java.util.List getSshKeysList() { + if (sshKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(sshKeys_); + } else { + return sshKeysBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public int getSshKeysCount() { + if (sshKeysBuilder_ == null) { + return sshKeys_.size(); + } else { + return sshKeysBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey getSshKeys(int index) { + if (sshKeysBuilder_ == null) { + return sshKeys_.get(index); + } else { + return sshKeysBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public Builder setSshKeys( + int index, io.gitpod.publicapi.v1.Ssh.SSHPublicKey value) { + if (sshKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSshKeysIsMutable(); + sshKeys_.set(index, value); + onChanged(); + } else { + sshKeysBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public Builder setSshKeys( + int index, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder builderForValue) { + if (sshKeysBuilder_ == null) { + ensureSshKeysIsMutable(); + sshKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + sshKeysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public Builder addSshKeys(io.gitpod.publicapi.v1.Ssh.SSHPublicKey value) { + if (sshKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSshKeysIsMutable(); + sshKeys_.add(value); + onChanged(); + } else { + sshKeysBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public Builder addSshKeys( + int index, io.gitpod.publicapi.v1.Ssh.SSHPublicKey value) { + if (sshKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSshKeysIsMutable(); + sshKeys_.add(index, value); + onChanged(); + } else { + sshKeysBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public Builder addSshKeys( + io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder builderForValue) { + if (sshKeysBuilder_ == null) { + ensureSshKeysIsMutable(); + sshKeys_.add(builderForValue.build()); + onChanged(); + } else { + sshKeysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public Builder addSshKeys( + int index, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder builderForValue) { + if (sshKeysBuilder_ == null) { + ensureSshKeysIsMutable(); + sshKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + sshKeysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public Builder addAllSshKeys( + java.lang.Iterable values) { + if (sshKeysBuilder_ == null) { + ensureSshKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sshKeys_); + onChanged(); + } else { + sshKeysBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public Builder clearSshKeys() { + if (sshKeysBuilder_ == null) { + sshKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sshKeysBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public Builder removeSshKeys(int index) { + if (sshKeysBuilder_ == null) { + ensureSshKeysIsMutable(); + sshKeys_.remove(index); + onChanged(); + } else { + sshKeysBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder getSshKeysBuilder( + int index) { + return getSshKeysFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder getSshKeysOrBuilder( + int index) { + if (sshKeysBuilder_ == null) { + return sshKeys_.get(index); } else { + return sshKeysBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public java.util.List + getSshKeysOrBuilderList() { + if (sshKeysBuilder_ != null) { + return sshKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sshKeys_); + } + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder addSshKeysBuilder() { + return getSshKeysFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Ssh.SSHPublicKey.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder addSshKeysBuilder( + int index) { + return getSshKeysFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SSHPublicKey ssh_keys = 1 [json_name = "sshKeys"]; + */ + public java.util.List + getSshKeysBuilderList() { + return getSshKeysFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Ssh.SSHPublicKey, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder, io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder> + getSshKeysFieldBuilder() { + if (sshKeysBuilder_ == null) { + sshKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Ssh.SSHPublicKey, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder, io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder>( + sshKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sshKeys_ = null; + } + return sshKeysBuilder_; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListSSHPublicKeysResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListSSHPublicKeysResponse) + private static final io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse(); + } + + public static io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSSHPublicKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.ListSSHPublicKeysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateSSHPublicKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateSSHPublicKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string key = 2 [json_name = "key"]; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 2 [json_name = "key"]; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + } + /** + * Protobuf type {@code gitpod.v1.CreateSSHPublicKeyRequest} + */ + public static final class CreateSSHPublicKeyRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateSSHPublicKeyRequest) + CreateSSHPublicKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateSSHPublicKeyRequest.class.getName()); + } + // Use CreateSSHPublicKeyRequest.newBuilder() to construct. + private CreateSSHPublicKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateSSHPublicKeyRequest() { + name_ = ""; + key_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest.class, io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + * string key = 2 [json_name = "key"]; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * string key = 2 [json_name = "key"]; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, key_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, key_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest other = (io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateSSHPublicKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateSSHPublicKeyRequest) + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest.class, io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + key_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest build() { + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest buildPartial() { + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest result = new io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.key_ = key_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest other) { + if (other == io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * string key = 2 [json_name = "key"]; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 2 [json_name = "key"]; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 2 [json_name = "key"]; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + key_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string key = 2 [json_name = "key"]; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string key = 2 [json_name = "key"]; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateSSHPublicKeyRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateSSHPublicKeyRequest) + private static final io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest(); + } + + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSSHPublicKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateSSHPublicKeyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateSSHPublicKeyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + * @return Whether the sshKey field is set. + */ + boolean hasSshKey(); + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + * @return The sshKey. + */ + io.gitpod.publicapi.v1.Ssh.SSHPublicKey getSshKey(); + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + */ + io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder getSshKeyOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateSSHPublicKeyResponse} + */ + public static final class CreateSSHPublicKeyResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateSSHPublicKeyResponse) + CreateSSHPublicKeyResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateSSHPublicKeyResponse.class.getName()); + } + // Use CreateSSHPublicKeyResponse.newBuilder() to construct. + private CreateSSHPublicKeyResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateSSHPublicKeyResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse.class, io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse.Builder.class); + } + + private int bitField0_; + public static final int SSH_KEY_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Ssh.SSHPublicKey sshKey_; + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + * @return Whether the sshKey field is set. + */ + @java.lang.Override + public boolean hasSshKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + * @return The sshKey. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey getSshKey() { + return sshKey_ == null ? io.gitpod.publicapi.v1.Ssh.SSHPublicKey.getDefaultInstance() : sshKey_; + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder getSshKeyOrBuilder() { + return sshKey_ == null ? io.gitpod.publicapi.v1.Ssh.SSHPublicKey.getDefaultInstance() : sshKey_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSshKey()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSshKey()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse other = (io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse) obj; + + if (hasSshKey() != other.hasSshKey()) return false; + if (hasSshKey()) { + if (!getSshKey() + .equals(other.getSshKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSshKey()) { + hash = (37 * hash) + SSH_KEY_FIELD_NUMBER; + hash = (53 * hash) + getSshKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateSSHPublicKeyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateSSHPublicKeyResponse) + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse.class, io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getSshKeyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sshKey_ = null; + if (sshKeyBuilder_ != null) { + sshKeyBuilder_.dispose(); + sshKeyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_CreateSSHPublicKeyResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse build() { + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse buildPartial() { + io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse result = new io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sshKey_ = sshKeyBuilder_ == null + ? sshKey_ + : sshKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse other) { + if (other == io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse.getDefaultInstance()) return this; + if (other.hasSshKey()) { + mergeSshKey(other.getSshKey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSshKeyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Ssh.SSHPublicKey sshKey_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Ssh.SSHPublicKey, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder, io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder> sshKeyBuilder_; + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + * @return Whether the sshKey field is set. + */ + public boolean hasSshKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + * @return The sshKey. + */ + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey getSshKey() { + if (sshKeyBuilder_ == null) { + return sshKey_ == null ? io.gitpod.publicapi.v1.Ssh.SSHPublicKey.getDefaultInstance() : sshKey_; + } else { + return sshKeyBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + */ + public Builder setSshKey(io.gitpod.publicapi.v1.Ssh.SSHPublicKey value) { + if (sshKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sshKey_ = value; + } else { + sshKeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + */ + public Builder setSshKey( + io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder builderForValue) { + if (sshKeyBuilder_ == null) { + sshKey_ = builderForValue.build(); + } else { + sshKeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + */ + public Builder mergeSshKey(io.gitpod.publicapi.v1.Ssh.SSHPublicKey value) { + if (sshKeyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + sshKey_ != null && + sshKey_ != io.gitpod.publicapi.v1.Ssh.SSHPublicKey.getDefaultInstance()) { + getSshKeyBuilder().mergeFrom(value); + } else { + sshKey_ = value; + } + } else { + sshKeyBuilder_.mergeFrom(value); + } + if (sshKey_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + */ + public Builder clearSshKey() { + bitField0_ = (bitField0_ & ~0x00000001); + sshKey_ = null; + if (sshKeyBuilder_ != null) { + sshKeyBuilder_.dispose(); + sshKeyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + */ + public io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder getSshKeyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSshKeyFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + */ + public io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder getSshKeyOrBuilder() { + if (sshKeyBuilder_ != null) { + return sshKeyBuilder_.getMessageOrBuilder(); + } else { + return sshKey_ == null ? + io.gitpod.publicapi.v1.Ssh.SSHPublicKey.getDefaultInstance() : sshKey_; + } + } + /** + * .gitpod.v1.SSHPublicKey ssh_key = 1 [json_name = "sshKey"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Ssh.SSHPublicKey, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder, io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder> + getSshKeyFieldBuilder() { + if (sshKeyBuilder_ == null) { + sshKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Ssh.SSHPublicKey, io.gitpod.publicapi.v1.Ssh.SSHPublicKey.Builder, io.gitpod.publicapi.v1.Ssh.SSHPublicKeyOrBuilder>( + getSshKey(), + getParentForChildren(), + isClean()); + sshKey_ = null; + } + return sshKeyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateSSHPublicKeyResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateSSHPublicKeyResponse) + private static final io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse(); + } + + public static io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSSHPublicKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.CreateSSHPublicKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteSSHPublicKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteSSHPublicKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string ssh_key_id = 1 [json_name = "sshKeyId"]; + * @return The sshKeyId. + */ + java.lang.String getSshKeyId(); + /** + * string ssh_key_id = 1 [json_name = "sshKeyId"]; + * @return The bytes for sshKeyId. + */ + com.google.protobuf.ByteString + getSshKeyIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteSSHPublicKeyRequest} + */ + public static final class DeleteSSHPublicKeyRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteSSHPublicKeyRequest) + DeleteSSHPublicKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteSSHPublicKeyRequest.class.getName()); + } + // Use DeleteSSHPublicKeyRequest.newBuilder() to construct. + private DeleteSSHPublicKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteSSHPublicKeyRequest() { + sshKeyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest.class, io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest.Builder.class); + } + + public static final int SSH_KEY_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object sshKeyId_ = ""; + /** + * string ssh_key_id = 1 [json_name = "sshKeyId"]; + * @return The sshKeyId. + */ + @java.lang.Override + public java.lang.String getSshKeyId() { + java.lang.Object ref = sshKeyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sshKeyId_ = s; + return s; + } + } + /** + * string ssh_key_id = 1 [json_name = "sshKeyId"]; + * @return The bytes for sshKeyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSshKeyIdBytes() { + java.lang.Object ref = sshKeyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sshKeyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sshKeyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sshKeyId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sshKeyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sshKeyId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest other = (io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest) obj; + + if (!getSshKeyId() + .equals(other.getSshKeyId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SSH_KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + getSshKeyId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteSSHPublicKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteSSHPublicKeyRequest) + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest.class, io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sshKeyId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest build() { + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest buildPartial() { + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest result = new io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sshKeyId_ = sshKeyId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest other) { + if (other == io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest.getDefaultInstance()) return this; + if (!other.getSshKeyId().isEmpty()) { + sshKeyId_ = other.sshKeyId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + sshKeyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object sshKeyId_ = ""; + /** + * string ssh_key_id = 1 [json_name = "sshKeyId"]; + * @return The sshKeyId. + */ + public java.lang.String getSshKeyId() { + java.lang.Object ref = sshKeyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sshKeyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ssh_key_id = 1 [json_name = "sshKeyId"]; + * @return The bytes for sshKeyId. + */ + public com.google.protobuf.ByteString + getSshKeyIdBytes() { + java.lang.Object ref = sshKeyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sshKeyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ssh_key_id = 1 [json_name = "sshKeyId"]; + * @param value The sshKeyId to set. + * @return This builder for chaining. + */ + public Builder setSshKeyId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + sshKeyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string ssh_key_id = 1 [json_name = "sshKeyId"]; + * @return This builder for chaining. + */ + public Builder clearSshKeyId() { + sshKeyId_ = getDefaultInstance().getSshKeyId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string ssh_key_id = 1 [json_name = "sshKeyId"]; + * @param value The bytes for sshKeyId to set. + * @return This builder for chaining. + */ + public Builder setSshKeyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + sshKeyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteSSHPublicKeyRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteSSHPublicKeyRequest) + private static final io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest(); + } + + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSSHPublicKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteSSHPublicKeyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteSSHPublicKeyResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteSSHPublicKeyResponse} + */ + public static final class DeleteSSHPublicKeyResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteSSHPublicKeyResponse) + DeleteSSHPublicKeyResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteSSHPublicKeyResponse.class.getName()); + } + // Use DeleteSSHPublicKeyResponse.newBuilder() to construct. + private DeleteSSHPublicKeyResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteSSHPublicKeyResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse.class, io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse other = (io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteSSHPublicKeyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteSSHPublicKeyResponse) + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse.class, io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Ssh.internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse build() { + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse buildPartial() { + io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse result = new io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse other) { + if (other == io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteSSHPublicKeyResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteSSHPublicKeyResponse) + private static final io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse(); + } + + public static io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSSHPublicKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Ssh.DeleteSSHPublicKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SSHPublicKey_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SSHPublicKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListSSHPublicKeysRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListSSHPublicKeysRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListSSHPublicKeysResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListSSHPublicKeysResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateSSHPublicKeyRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateSSHPublicKeyRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateSSHPublicKeyResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateSSHPublicKeyResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\023gitpod/v1/ssh.proto\022\tgitpod.v1\032\032gitpod" + + "/v1/pagination.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\351\001\n\014SSHPublicKey\022\016\n\002id\030\001 \001" + + "(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\020\n\003key\030\003 \001(\tR" + + "\003key\022 \n\013fingerprint\030\004 \001(\tR\013fingerprint\022?" + + "\n\rcreation_time\030\005 \001(\0132\032.google.protobuf." + + "TimestampR\014creationTime\022@\n\016last_used_tim" + + "e\030\006 \001(\0132\032.google.protobuf.TimestampR\014las" + + "tUsedTime\"X\n\030ListSSHPublicKeysRequest\022<\n" + + "\npagination\030\001 \001(\0132\034.gitpod.v1.Pagination" + + "RequestR\npagination\"\215\001\n\031ListSSHPublicKey" + + "sResponse\0222\n\010ssh_keys\030\001 \003(\0132\027.gitpod.v1." + + "SSHPublicKeyR\007sshKeys\022<\n\npagination\030\002 \001(" + + "\0132\034.gitpod.v1.PaginationRequestR\npaginat" + + "ion\"A\n\031CreateSSHPublicKeyRequest\022\022\n\004name" + + "\030\001 \001(\tR\004name\022\020\n\003key\030\002 \001(\tR\003key\"N\n\032Create" + + "SSHPublicKeyResponse\0220\n\007ssh_key\030\001 \001(\0132\027." + + "gitpod.v1.SSHPublicKeyR\006sshKey\"9\n\031Delete" + + "SSHPublicKeyRequest\022\034\n\nssh_key_id\030\001 \001(\tR" + + "\010sshKeyId\"\034\n\032DeleteSSHPublicKeyResponse2" + + "\270\002\n\nSSHService\022`\n\021ListSSHPublicKeys\022#.gi" + + "tpod.v1.ListSSHPublicKeysRequest\032$.gitpo" + + "d.v1.ListSSHPublicKeysResponse\"\000\022c\n\022Crea" + + "teSSHPublicKey\022$.gitpod.v1.CreateSSHPubl" + + "icKeyRequest\032%.gitpod.v1.CreateSSHPublic" + + "KeyResponse\"\000\022c\n\022DeleteSSHPublicKey\022$.gi" + + "tpod.v1.DeleteSSHPublicKeyRequest\032%.gitp" + + "od.v1.DeleteSSHPublicKeyResponse\"\000BQ\n\026io" + + ".gitpod.publicapi.v1Z7github.com/gitpod-" + + "io/gitpod/components/public-api/go/v1b\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_v1_SSHPublicKey_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_SSHPublicKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SSHPublicKey_descriptor, + new java.lang.String[] { "Id", "Name", "Key", "Fingerprint", "CreationTime", "LastUsedTime", }); + internal_static_gitpod_v1_ListSSHPublicKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_ListSSHPublicKeysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListSSHPublicKeysRequest_descriptor, + new java.lang.String[] { "Pagination", }); + internal_static_gitpod_v1_ListSSHPublicKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_ListSSHPublicKeysResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListSSHPublicKeysResponse_descriptor, + new java.lang.String[] { "SshKeys", "Pagination", }); + internal_static_gitpod_v1_CreateSSHPublicKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_CreateSSHPublicKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateSSHPublicKeyRequest_descriptor, + new java.lang.String[] { "Name", "Key", }); + internal_static_gitpod_v1_CreateSSHPublicKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_CreateSSHPublicKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateSSHPublicKeyResponse_descriptor, + new java.lang.String[] { "SshKey", }); + internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteSSHPublicKeyRequest_descriptor, + new java.lang.String[] { "SshKeyId", }); + internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteSSHPublicKeyResponse_descriptor, + new java.lang.String[] { }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Token.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Token.java new file mode 100644 index 00000000000000..54adec573d6fc6 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Token.java @@ -0,0 +1,1421 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/token.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Token { + private Token() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Token.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface CreateTemporaryAccessTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateTemporaryAccessTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * user_id is the identifier of the user for which the token is created.
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + *
+     * user_id is the identifier of the user for which the token is created.
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + *
+     * expiry_seconds is the number of seconds the token is valid for.
+     * value should in the range [1, 600]
+     * 
+ * + * int32 expiry_seconds = 2 [json_name = "expirySeconds"]; + * @return The expirySeconds. + */ + int getExpirySeconds(); + } + /** + * Protobuf type {@code gitpod.v1.CreateTemporaryAccessTokenRequest} + */ + public static final class CreateTemporaryAccessTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateTemporaryAccessTokenRequest) + CreateTemporaryAccessTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateTemporaryAccessTokenRequest.class.getName()); + } + // Use CreateTemporaryAccessTokenRequest.newBuilder() to construct. + private CreateTemporaryAccessTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateTemporaryAccessTokenRequest() { + userId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest.class, io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest.Builder.class); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + *
+     * user_id is the identifier of the user for which the token is created.
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + *
+     * user_id is the identifier of the user for which the token is created.
+     * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRY_SECONDS_FIELD_NUMBER = 2; + private int expirySeconds_ = 0; + /** + *
+     * expiry_seconds is the number of seconds the token is valid for.
+     * value should in the range [1, 600]
+     * 
+ * + * int32 expiry_seconds = 2 [json_name = "expirySeconds"]; + * @return The expirySeconds. + */ + @java.lang.Override + public int getExpirySeconds() { + return expirySeconds_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + if (expirySeconds_ != 0) { + output.writeInt32(2, expirySeconds_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + if (expirySeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, expirySeconds_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest other = (io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (getExpirySeconds() + != other.getExpirySeconds()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + EXPIRY_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getExpirySeconds(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateTemporaryAccessTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateTemporaryAccessTokenRequest) + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest.class, io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + expirySeconds_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest build() { + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest buildPartial() { + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest result = new io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expirySeconds_ = expirySeconds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest other) { + if (other == io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getExpirySeconds() != 0) { + setExpirySeconds(other.getExpirySeconds()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + expirySeconds_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + *
+       * user_id is the identifier of the user for which the token is created.
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * user_id is the identifier of the user for which the token is created.
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * user_id is the identifier of the user for which the token is created.
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * user_id is the identifier of the user for which the token is created.
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * user_id is the identifier of the user for which the token is created.
+       * 
+ * + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int expirySeconds_ ; + /** + *
+       * expiry_seconds is the number of seconds the token is valid for.
+       * value should in the range [1, 600]
+       * 
+ * + * int32 expiry_seconds = 2 [json_name = "expirySeconds"]; + * @return The expirySeconds. + */ + @java.lang.Override + public int getExpirySeconds() { + return expirySeconds_; + } + /** + *
+       * expiry_seconds is the number of seconds the token is valid for.
+       * value should in the range [1, 600]
+       * 
+ * + * int32 expiry_seconds = 2 [json_name = "expirySeconds"]; + * @param value The expirySeconds to set. + * @return This builder for chaining. + */ + public Builder setExpirySeconds(int value) { + + expirySeconds_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * expiry_seconds is the number of seconds the token is valid for.
+       * value should in the range [1, 600]
+       * 
+ * + * int32 expiry_seconds = 2 [json_name = "expirySeconds"]; + * @return This builder for chaining. + */ + public Builder clearExpirySeconds() { + bitField0_ = (bitField0_ & ~0x00000002); + expirySeconds_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateTemporaryAccessTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateTemporaryAccessTokenRequest) + private static final io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest(); + } + + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTemporaryAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateTemporaryAccessTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateTemporaryAccessTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * cookie_name is the name of the cookie to use for the token.
+     * 
+ * + * string cookie_name = 1 [json_name = "cookieName"]; + * @return The cookieName. + */ + java.lang.String getCookieName(); + /** + *
+     * cookie_name is the name of the cookie to use for the token.
+     * 
+ * + * string cookie_name = 1 [json_name = "cookieName"]; + * @return The bytes for cookieName. + */ + com.google.protobuf.ByteString + getCookieNameBytes(); + + /** + * string token = 2 [json_name = "token"]; + * @return The token. + */ + java.lang.String getToken(); + /** + * string token = 2 [json_name = "token"]; + * @return The bytes for token. + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + * Protobuf type {@code gitpod.v1.CreateTemporaryAccessTokenResponse} + */ + public static final class CreateTemporaryAccessTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateTemporaryAccessTokenResponse) + CreateTemporaryAccessTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateTemporaryAccessTokenResponse.class.getName()); + } + // Use CreateTemporaryAccessTokenResponse.newBuilder() to construct. + private CreateTemporaryAccessTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateTemporaryAccessTokenResponse() { + cookieName_ = ""; + token_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse.class, io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse.Builder.class); + } + + public static final int COOKIE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object cookieName_ = ""; + /** + *
+     * cookie_name is the name of the cookie to use for the token.
+     * 
+ * + * string cookie_name = 1 [json_name = "cookieName"]; + * @return The cookieName. + */ + @java.lang.Override + public java.lang.String getCookieName() { + java.lang.Object ref = cookieName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cookieName_ = s; + return s; + } + } + /** + *
+     * cookie_name is the name of the cookie to use for the token.
+     * 
+ * + * string cookie_name = 1 [json_name = "cookieName"]; + * @return The bytes for cookieName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCookieNameBytes() { + java.lang.Object ref = cookieName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cookieName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + * string token = 2 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + * string token = 2 [json_name = "token"]; + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cookieName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cookieName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, token_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cookieName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cookieName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, token_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse other = (io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse) obj; + + if (!getCookieName() + .equals(other.getCookieName())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COOKIE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCookieName().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateTemporaryAccessTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateTemporaryAccessTokenResponse) + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse.class, io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cookieName_ = ""; + token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Token.internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse build() { + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse buildPartial() { + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse result = new io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cookieName_ = cookieName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.token_ = token_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse other) { + if (other == io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse.getDefaultInstance()) return this; + if (!other.getCookieName().isEmpty()) { + cookieName_ = other.cookieName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cookieName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object cookieName_ = ""; + /** + *
+       * cookie_name is the name of the cookie to use for the token.
+       * 
+ * + * string cookie_name = 1 [json_name = "cookieName"]; + * @return The cookieName. + */ + public java.lang.String getCookieName() { + java.lang.Object ref = cookieName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cookieName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * cookie_name is the name of the cookie to use for the token.
+       * 
+ * + * string cookie_name = 1 [json_name = "cookieName"]; + * @return The bytes for cookieName. + */ + public com.google.protobuf.ByteString + getCookieNameBytes() { + java.lang.Object ref = cookieName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cookieName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * cookie_name is the name of the cookie to use for the token.
+       * 
+ * + * string cookie_name = 1 [json_name = "cookieName"]; + * @param value The cookieName to set. + * @return This builder for chaining. + */ + public Builder setCookieName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cookieName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * cookie_name is the name of the cookie to use for the token.
+       * 
+ * + * string cookie_name = 1 [json_name = "cookieName"]; + * @return This builder for chaining. + */ + public Builder clearCookieName() { + cookieName_ = getDefaultInstance().getCookieName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * cookie_name is the name of the cookie to use for the token.
+       * 
+ * + * string cookie_name = 1 [json_name = "cookieName"]; + * @param value The bytes for cookieName to set. + * @return This builder for chaining. + */ + public Builder setCookieNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cookieName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + * string token = 2 [json_name = "token"]; + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string token = 2 [json_name = "token"]; + * @return The bytes for token. + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string token = 2 [json_name = "token"]; + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + token_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string token = 2 [json_name = "token"]; + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string token = 2 [json_name = "token"]; + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateTemporaryAccessTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateTemporaryAccessTokenResponse) + private static final io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse(); + } + + public static io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTemporaryAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\025gitpod/v1/token.proto\022\tgitpod.v1\"c\n!Cr" + + "eateTemporaryAccessTokenRequest\022\027\n\007user_" + + "id\030\001 \001(\tR\006userId\022%\n\016expiry_seconds\030\002 \001(\005" + + "R\rexpirySeconds\"[\n\"CreateTemporaryAccess" + + "TokenResponse\022\037\n\013cookie_name\030\001 \001(\tR\ncook" + + "ieName\022\024\n\005token\030\002 \001(\tR\005token2\213\001\n\014TokenSe" + + "rvice\022{\n\032CreateTemporaryAccessToken\022,.gi" + + "tpod.v1.CreateTemporaryAccessTokenReques" + + "t\032-.gitpod.v1.CreateTemporaryAccessToken" + + "Response\"\000BQ\n\026io.gitpod.publicapi.v1Z7gi" + + "thub.com/gitpod-io/gitpod/components/pub" + + "lic-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateTemporaryAccessTokenRequest_descriptor, + new java.lang.String[] { "UserId", "ExpirySeconds", }); + internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateTemporaryAccessTokenResponse_descriptor, + new java.lang.String[] { "CookieName", "Token", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/TokenServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/TokenServiceClient.kt new file mode 100644 index 00000000000000..9258d27520bf4e --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/TokenServiceClient.kt @@ -0,0 +1,36 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/token.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class TokenServiceClient( + private val client: ProtocolClientInterface, +) : TokenServiceClientInterface { + /** + * CreateUserToken creates a new temporary access token for the specified user. + * +admin – only to be used by installation admins + */ + override suspend fun createTemporaryAccessToken(request: Token.CreateTemporaryAccessTokenRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.TokenService/CreateTemporaryAccessToken", + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenRequest::class, + io.gitpod.publicapi.v1.Token.CreateTemporaryAccessTokenResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/TokenServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/TokenServiceClientInterface.kt new file mode 100644 index 00000000000000..72deae2826d23e --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/TokenServiceClientInterface.kt @@ -0,0 +1,21 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/token.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface TokenServiceClientInterface { + /** + * CreateUserToken creates a new temporary access token for the specified user. + * +admin – only to be used by installation admins + */ + public suspend fun createTemporaryAccessToken(request: Token.CreateTemporaryAccessTokenRequest, + headers: Headers = emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserOuterClass.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserOuterClass.java new file mode 100644 index 00000000000000..79c873938f08fa --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserOuterClass.java @@ -0,0 +1,31405 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/user.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class UserOuterClass { + private UserOuterClass() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UserOuterClass.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code gitpod.v1.RoleOrPermission} + */ + public enum RoleOrPermission + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ROLE_OR_PERMISSION_UNSPECIFIED = 0; + */ + ROLE_OR_PERMISSION_UNSPECIFIED(0), + /** + * ROLE_OR_PERMISSION_DEVOPS = 1; + */ + ROLE_OR_PERMISSION_DEVOPS(1), + /** + * ROLE_OR_PERMISSION_VIEWER = 2; + */ + ROLE_OR_PERMISSION_VIEWER(2), + /** + * ROLE_OR_PERMISSION_ADMIN = 3; + */ + ROLE_OR_PERMISSION_ADMIN(3), + /** + * ROLE_OR_PERMISSION_DEVELOPER = 4; + */ + ROLE_OR_PERMISSION_DEVELOPER(4), + /** + * ROLE_OR_PERMISSION_REGISTRY_ACCESS = 5; + */ + ROLE_OR_PERMISSION_REGISTRY_ACCESS(5), + /** + * ROLE_OR_PERMISSION_ADMIN_PERMISSIONS = 6; + */ + ROLE_OR_PERMISSION_ADMIN_PERMISSIONS(6), + /** + * ROLE_OR_PERMISSION_ADMIN_USERS = 7; + */ + ROLE_OR_PERMISSION_ADMIN_USERS(7), + /** + * ROLE_OR_PERMISSION_ADMIN_WORKSPACE_CONTENT = 8; + */ + ROLE_OR_PERMISSION_ADMIN_WORKSPACE_CONTENT(8), + /** + * ROLE_OR_PERMISSION_ADMIN_WORKSPACES = 9; + */ + ROLE_OR_PERMISSION_ADMIN_WORKSPACES(9), + /** + * ROLE_OR_PERMISSION_ADMIN_PROJECTS = 10; + */ + ROLE_OR_PERMISSION_ADMIN_PROJECTS(10), + /** + * ROLE_OR_PERMISSION_NEW_WORKSPACE_CLUSTER = 11; + */ + ROLE_OR_PERMISSION_NEW_WORKSPACE_CLUSTER(11), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + RoleOrPermission.class.getName()); + } + /** + * ROLE_OR_PERMISSION_UNSPECIFIED = 0; + */ + public static final int ROLE_OR_PERMISSION_UNSPECIFIED_VALUE = 0; + /** + * ROLE_OR_PERMISSION_DEVOPS = 1; + */ + public static final int ROLE_OR_PERMISSION_DEVOPS_VALUE = 1; + /** + * ROLE_OR_PERMISSION_VIEWER = 2; + */ + public static final int ROLE_OR_PERMISSION_VIEWER_VALUE = 2; + /** + * ROLE_OR_PERMISSION_ADMIN = 3; + */ + public static final int ROLE_OR_PERMISSION_ADMIN_VALUE = 3; + /** + * ROLE_OR_PERMISSION_DEVELOPER = 4; + */ + public static final int ROLE_OR_PERMISSION_DEVELOPER_VALUE = 4; + /** + * ROLE_OR_PERMISSION_REGISTRY_ACCESS = 5; + */ + public static final int ROLE_OR_PERMISSION_REGISTRY_ACCESS_VALUE = 5; + /** + * ROLE_OR_PERMISSION_ADMIN_PERMISSIONS = 6; + */ + public static final int ROLE_OR_PERMISSION_ADMIN_PERMISSIONS_VALUE = 6; + /** + * ROLE_OR_PERMISSION_ADMIN_USERS = 7; + */ + public static final int ROLE_OR_PERMISSION_ADMIN_USERS_VALUE = 7; + /** + * ROLE_OR_PERMISSION_ADMIN_WORKSPACE_CONTENT = 8; + */ + public static final int ROLE_OR_PERMISSION_ADMIN_WORKSPACE_CONTENT_VALUE = 8; + /** + * ROLE_OR_PERMISSION_ADMIN_WORKSPACES = 9; + */ + public static final int ROLE_OR_PERMISSION_ADMIN_WORKSPACES_VALUE = 9; + /** + * ROLE_OR_PERMISSION_ADMIN_PROJECTS = 10; + */ + public static final int ROLE_OR_PERMISSION_ADMIN_PROJECTS_VALUE = 10; + /** + * ROLE_OR_PERMISSION_NEW_WORKSPACE_CLUSTER = 11; + */ + public static final int ROLE_OR_PERMISSION_NEW_WORKSPACE_CLUSTER_VALUE = 11; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RoleOrPermission valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RoleOrPermission forNumber(int value) { + switch (value) { + case 0: return ROLE_OR_PERMISSION_UNSPECIFIED; + case 1: return ROLE_OR_PERMISSION_DEVOPS; + case 2: return ROLE_OR_PERMISSION_VIEWER; + case 3: return ROLE_OR_PERMISSION_ADMIN; + case 4: return ROLE_OR_PERMISSION_DEVELOPER; + case 5: return ROLE_OR_PERMISSION_REGISTRY_ACCESS; + case 6: return ROLE_OR_PERMISSION_ADMIN_PERMISSIONS; + case 7: return ROLE_OR_PERMISSION_ADMIN_USERS; + case 8: return ROLE_OR_PERMISSION_ADMIN_WORKSPACE_CONTENT; + case 9: return ROLE_OR_PERMISSION_ADMIN_WORKSPACES; + case 10: return ROLE_OR_PERMISSION_ADMIN_PROJECTS; + case 11: return ROLE_OR_PERMISSION_NEW_WORKSPACE_CLUSTER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RoleOrPermission> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RoleOrPermission findValueByNumber(int number) { + return RoleOrPermission.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final RoleOrPermission[] VALUES = values(); + + public static RoleOrPermission valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RoleOrPermission(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.RoleOrPermission) + } + + public interface GetAuthenticatedUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetAuthenticatedUserRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.GetAuthenticatedUserRequest} + */ + public static final class GetAuthenticatedUserRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetAuthenticatedUserRequest) + GetAuthenticatedUserRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetAuthenticatedUserRequest.class.getName()); + } + // Use GetAuthenticatedUserRequest.newBuilder() to construct. + private GetAuthenticatedUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetAuthenticatedUserRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest other = (io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetAuthenticatedUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetAuthenticatedUserRequest) + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest build() { + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest result = new io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetAuthenticatedUserRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetAuthenticatedUserRequest) + private static final io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthenticatedUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetAuthenticatedUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetAuthenticatedUserResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + io.gitpod.publicapi.v1.UserOuterClass.User getUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GetAuthenticatedUserResponse} + */ + public static final class GetAuthenticatedUserResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetAuthenticatedUserResponse) + GetAuthenticatedUserResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetAuthenticatedUserResponse.class.getName()); + } + // Use GetAuthenticatedUserResponse.newBuilder() to construct. + private GetAuthenticatedUserResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetAuthenticatedUserResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse.Builder.class); + } + + private int bitField0_; + public static final int USER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUser()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUser()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse other = (io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetAuthenticatedUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetAuthenticatedUserResponse) + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUserFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetAuthenticatedUserResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse build() { + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse result = new io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> userBuilder_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + if (userBuilder_ == null) { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + } else { + userBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser( + io.gitpod.publicapi.v1.UserOuterClass.User.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder mergeUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + user_ != null && + user_ != io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance()) { + getUserBuilder().mergeFrom(value); + } else { + user_ = value; + } + } else { + userBuilder_.mergeFrom(value); + } + if (user_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder clearUser() { + bitField0_ = (bitField0_ & ~0x00000001); + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.Builder getUserBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetAuthenticatedUserResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetAuthenticatedUserResponse) + private static final io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthenticatedUserResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetWorkspaceAutoStartOptionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SetWorkspaceAutoStartOptionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + java.util.List + getWorkspaceAutostartOptionsList(); + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption getWorkspaceAutostartOptions(int index); + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + int getWorkspaceAutostartOptionsCount(); + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + java.util.List + getWorkspaceAutostartOptionsOrBuilderList(); + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOptionOrBuilder getWorkspaceAutostartOptionsOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.SetWorkspaceAutoStartOptionsRequest} + */ + public static final class SetWorkspaceAutoStartOptionsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SetWorkspaceAutoStartOptionsRequest) + SetWorkspaceAutoStartOptionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SetWorkspaceAutoStartOptionsRequest.class.getName()); + } + // Use SetWorkspaceAutoStartOptionsRequest.newBuilder() to construct. + private SetWorkspaceAutoStartOptionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetWorkspaceAutoStartOptionsRequest() { + userId_ = ""; + workspaceAutostartOptions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.class, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.Builder.class); + } + + public interface WorkspaceAutostartOptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption) + com.google.protobuf.MessageOrBuilder { + + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + java.lang.String getCloneUrl(); + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + com.google.protobuf.ByteString + getCloneUrlBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + boolean hasWorkspaceClass(); + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + boolean hasEditorSettings(); + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings(); + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder(); + + /** + * optional string region = 5 [json_name = "region"]; + * @return Whether the region field is set. + */ + boolean hasRegion(); + /** + * optional string region = 5 [json_name = "region"]; + * @return The region. + */ + java.lang.String getRegion(); + /** + * optional string region = 5 [json_name = "region"]; + * @return The bytes for region. + */ + com.google.protobuf.ByteString + getRegionBytes(); + } + /** + * Protobuf type {@code gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption} + */ + public static final class WorkspaceAutostartOption extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption) + WorkspaceAutostartOptionOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceAutostartOption.class.getName()); + } + // Use WorkspaceAutostartOption.newBuilder() to construct. + private WorkspaceAutostartOption(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceAutostartOption() { + cloneUrl_ = ""; + organizationId_ = ""; + workspaceClass_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.class, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder.class); + } + + private int bitField0_; + public static final int CLONE_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object cloneUrl_ = ""; + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + @java.lang.Override + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + @java.lang.Override + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EDITOR_SETTINGS_FIELD_NUMBER = 4; + private io.gitpod.publicapi.v1.Editor.EditorReference editorSettings_; + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + @java.lang.Override + public boolean hasEditorSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings() { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder() { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + + public static final int REGION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * optional string region = 5 [json_name = "region"]; + * @return Whether the region field is set. + */ + @java.lang.Override + public boolean hasRegion() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string region = 5 [json_name = "region"]; + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } + } + /** + * optional string region = 5 [json_name = "region"]; + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cloneUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, workspaceClass_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getEditorSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, region_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cloneUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, workspaceClass_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEditorSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, region_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption other = (io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption) obj; + + if (!getCloneUrl() + .equals(other.getCloneUrl())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (hasWorkspaceClass() != other.hasWorkspaceClass()) return false; + if (hasWorkspaceClass()) { + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + } + if (hasEditorSettings() != other.hasEditorSettings()) return false; + if (hasEditorSettings()) { + if (!getEditorSettings() + .equals(other.getEditorSettings())) return false; + } + if (hasRegion() != other.hasRegion()) return false; + if (hasRegion()) { + if (!getRegion() + .equals(other.getRegion())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLONE_URL_FIELD_NUMBER; + hash = (53 * hash) + getCloneUrl().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + if (hasWorkspaceClass()) { + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + } + if (hasEditorSettings()) { + hash = (37 * hash) + EDITOR_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEditorSettings().hashCode(); + } + if (hasRegion()) { + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption) + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.class, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getEditorSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloneUrl_ = ""; + organizationId_ = ""; + workspaceClass_ = ""; + editorSettings_ = null; + if (editorSettingsBuilder_ != null) { + editorSettingsBuilder_.dispose(); + editorSettingsBuilder_ = null; + } + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption build() { + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption result = new io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloneUrl_ = cloneUrl_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workspaceClass_ = workspaceClass_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.editorSettings_ = editorSettingsBuilder_ == null + ? editorSettings_ + : editorSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.region_ = region_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.getDefaultInstance()) return this; + if (!other.getCloneUrl().isEmpty()) { + cloneUrl_ = other.cloneUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasWorkspaceClass()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasEditorSettings()) { + mergeEditorSettings(other.getEditorSettings()); + } + if (other.hasRegion()) { + region_ = other.region_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cloneUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEditorSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object cloneUrl_ = ""; + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @param value The cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cloneUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return This builder for chaining. + */ + public Builder clearCloneUrl() { + cloneUrl_ = getDefaultInstance().getCloneUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @param value The bytes for cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cloneUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object workspaceClass_ = ""; + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return Whether the workspaceClass field is set. + */ + public boolean hasWorkspaceClass() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string workspace_class = 3 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Editor.EditorReference editorSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> editorSettingsBuilder_; + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + public boolean hasEditorSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + public io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings() { + if (editorSettingsBuilder_ == null) { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } else { + return editorSettingsBuilder_.getMessage(); + } + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public Builder setEditorSettings(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + editorSettings_ = value; + } else { + editorSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public Builder setEditorSettings( + io.gitpod.publicapi.v1.Editor.EditorReference.Builder builderForValue) { + if (editorSettingsBuilder_ == null) { + editorSettings_ = builderForValue.build(); + } else { + editorSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public Builder mergeEditorSettings(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + editorSettings_ != null && + editorSettings_ != io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance()) { + getEditorSettingsBuilder().mergeFrom(value); + } else { + editorSettings_ = value; + } + } else { + editorSettingsBuilder_.mergeFrom(value); + } + if (editorSettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public Builder clearEditorSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + editorSettings_ = null; + if (editorSettingsBuilder_ != null) { + editorSettingsBuilder_.dispose(); + editorSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReference.Builder getEditorSettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEditorSettingsFieldBuilder().getBuilder(); + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder() { + if (editorSettingsBuilder_ != null) { + return editorSettingsBuilder_.getMessageOrBuilder(); + } else { + return editorSettings_ == null ? + io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> + getEditorSettingsFieldBuilder() { + if (editorSettingsBuilder_ == null) { + editorSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder>( + getEditorSettings(), + getParentForChildren(), + isClean()); + editorSettings_ = null; + } + return editorSettingsBuilder_; + } + + private java.lang.Object region_ = ""; + /** + * optional string region = 5 [json_name = "region"]; + * @return Whether the region field is set. + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string region = 5 [json_name = "region"]; + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string region = 5 [json_name = "region"]; + * @return The bytes for region. + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string region = 5 [json_name = "region"]; + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + region_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string region = 5 [json_name = "region"]; + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string region = 5 [json_name = "region"]; + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption) + private static final io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceAutostartOption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_AUTOSTART_OPTIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List workspaceAutostartOptions_; + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public java.util.List getWorkspaceAutostartOptionsList() { + return workspaceAutostartOptions_; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public java.util.List + getWorkspaceAutostartOptionsOrBuilderList() { + return workspaceAutostartOptions_; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public int getWorkspaceAutostartOptionsCount() { + return workspaceAutostartOptions_.size(); + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption getWorkspaceAutostartOptions(int index) { + return workspaceAutostartOptions_.get(index); + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOptionOrBuilder getWorkspaceAutostartOptionsOrBuilder( + int index) { + return workspaceAutostartOptions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + for (int i = 0; i < workspaceAutostartOptions_.size(); i++) { + output.writeMessage(2, workspaceAutostartOptions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + for (int i = 0; i < workspaceAutostartOptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, workspaceAutostartOptions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest other = (io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getWorkspaceAutostartOptionsList() + .equals(other.getWorkspaceAutostartOptionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + if (getWorkspaceAutostartOptionsCount() > 0) { + hash = (37 * hash) + WORKSPACE_AUTOSTART_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceAutostartOptionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SetWorkspaceAutoStartOptionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SetWorkspaceAutoStartOptionsRequest) + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.class, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + if (workspaceAutostartOptionsBuilder_ == null) { + workspaceAutostartOptions_ = java.util.Collections.emptyList(); + } else { + workspaceAutostartOptions_ = null; + workspaceAutostartOptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest build() { + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest result = new io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest result) { + if (workspaceAutostartOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + workspaceAutostartOptions_ = java.util.Collections.unmodifiableList(workspaceAutostartOptions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.workspaceAutostartOptions_ = workspaceAutostartOptions_; + } else { + result.workspaceAutostartOptions_ = workspaceAutostartOptionsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (workspaceAutostartOptionsBuilder_ == null) { + if (!other.workspaceAutostartOptions_.isEmpty()) { + if (workspaceAutostartOptions_.isEmpty()) { + workspaceAutostartOptions_ = other.workspaceAutostartOptions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.addAll(other.workspaceAutostartOptions_); + } + onChanged(); + } + } else { + if (!other.workspaceAutostartOptions_.isEmpty()) { + if (workspaceAutostartOptionsBuilder_.isEmpty()) { + workspaceAutostartOptionsBuilder_.dispose(); + workspaceAutostartOptionsBuilder_ = null; + workspaceAutostartOptions_ = other.workspaceAutostartOptions_; + bitField0_ = (bitField0_ & ~0x00000002); + workspaceAutostartOptionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getWorkspaceAutostartOptionsFieldBuilder() : null; + } else { + workspaceAutostartOptionsBuilder_.addAllMessages(other.workspaceAutostartOptions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption m = + input.readMessage( + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.parser(), + extensionRegistry); + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(m); + } else { + workspaceAutostartOptionsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List workspaceAutostartOptions_ = + java.util.Collections.emptyList(); + private void ensureWorkspaceAutostartOptionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + workspaceAutostartOptions_ = new java.util.ArrayList(workspaceAutostartOptions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOptionOrBuilder> workspaceAutostartOptionsBuilder_; + + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public java.util.List getWorkspaceAutostartOptionsList() { + if (workspaceAutostartOptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workspaceAutostartOptions_); + } else { + return workspaceAutostartOptionsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public int getWorkspaceAutostartOptionsCount() { + if (workspaceAutostartOptionsBuilder_ == null) { + return workspaceAutostartOptions_.size(); + } else { + return workspaceAutostartOptionsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption getWorkspaceAutostartOptions(int index) { + if (workspaceAutostartOptionsBuilder_ == null) { + return workspaceAutostartOptions_.get(index); + } else { + return workspaceAutostartOptionsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public Builder setWorkspaceAutostartOptions( + int index, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption value) { + if (workspaceAutostartOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.set(index, value); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public Builder setWorkspaceAutostartOptions( + int index, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder builderForValue) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.set(index, builderForValue.build()); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addWorkspaceAutostartOptions(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption value) { + if (workspaceAutostartOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(value); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addWorkspaceAutostartOptions( + int index, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption value) { + if (workspaceAutostartOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(index, value); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addWorkspaceAutostartOptions( + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder builderForValue) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(builderForValue.build()); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addWorkspaceAutostartOptions( + int index, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder builderForValue) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(index, builderForValue.build()); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addAllWorkspaceAutostartOptions( + java.lang.Iterable values) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workspaceAutostartOptions_); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public Builder clearWorkspaceAutostartOptions() { + if (workspaceAutostartOptionsBuilder_ == null) { + workspaceAutostartOptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public Builder removeWorkspaceAutostartOptions(int index) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.remove(index); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder getWorkspaceAutostartOptionsBuilder( + int index) { + return getWorkspaceAutostartOptionsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOptionOrBuilder getWorkspaceAutostartOptionsOrBuilder( + int index) { + if (workspaceAutostartOptionsBuilder_ == null) { + return workspaceAutostartOptions_.get(index); } else { + return workspaceAutostartOptionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public java.util.List + getWorkspaceAutostartOptionsOrBuilderList() { + if (workspaceAutostartOptionsBuilder_ != null) { + return workspaceAutostartOptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workspaceAutostartOptions_); + } + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder addWorkspaceAutostartOptionsBuilder() { + return getWorkspaceAutostartOptionsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder addWorkspaceAutostartOptionsBuilder( + int index) { + return getWorkspaceAutostartOptionsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption workspace_autostart_options = 2 [json_name = "workspaceAutostartOptions"]; + */ + public java.util.List + getWorkspaceAutostartOptionsBuilderList() { + return getWorkspaceAutostartOptionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOptionOrBuilder> + getWorkspaceAutostartOptionsFieldBuilder() { + if (workspaceAutostartOptionsBuilder_ == null) { + workspaceAutostartOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOption.Builder, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest.WorkspaceAutostartOptionOrBuilder>( + workspaceAutostartOptions_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + workspaceAutostartOptions_ = null; + } + return workspaceAutostartOptionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SetWorkspaceAutoStartOptionsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SetWorkspaceAutoStartOptionsRequest) + private static final io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetWorkspaceAutoStartOptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetWorkspaceAutoStartOptionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SetWorkspaceAutoStartOptionsResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.SetWorkspaceAutoStartOptionsResponse} + */ + public static final class SetWorkspaceAutoStartOptionsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SetWorkspaceAutoStartOptionsResponse) + SetWorkspaceAutoStartOptionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SetWorkspaceAutoStartOptionsResponse.class.getName()); + } + // Use SetWorkspaceAutoStartOptionsResponse.newBuilder() to construct. + private SetWorkspaceAutoStartOptionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetWorkspaceAutoStartOptionsResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse.class, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse other = (io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SetWorkspaceAutoStartOptionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SetWorkspaceAutoStartOptionsResponse) + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse.class, io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse build() { + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse result = new io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SetWorkspaceAutoStartOptionsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SetWorkspaceAutoStartOptionsResponse) + private static final io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetWorkspaceAutoStartOptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return Whether the acceptedPrivacyPolicyDate field is set. + */ + boolean hasAcceptedPrivacyPolicyDate(); + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The acceptedPrivacyPolicyDate. + */ + java.lang.String getAcceptedPrivacyPolicyDate(); + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The bytes for acceptedPrivacyPolicyDate. + */ + com.google.protobuf.ByteString + getAcceptedPrivacyPolicyDateBytes(); + + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + * @return Whether the profile field is set. + */ + boolean hasProfile(); + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + * @return The profile. + */ + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails getProfile(); + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetailsOrBuilder getProfileOrBuilder(); + + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return Whether the emailAddress field is set. + */ + boolean hasEmailAddress(); + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return The emailAddress. + */ + java.lang.String getEmailAddress(); + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return The bytes for emailAddress. + */ + com.google.protobuf.ByteString + getEmailAddressBytes(); + + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + boolean hasEditorSettings(); + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings(); + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + */ + io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder(); + + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + * @return Whether the emailNotificationSettings field is set. + */ + boolean hasEmailNotificationSettings(); + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + * @return The emailNotificationSettings. + */ + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings getEmailNotificationSettings(); + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettingsOrBuilder getEmailNotificationSettingsOrBuilder(); + + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + * @return Whether the workspaceTimeoutSettings field is set. + */ + boolean hasWorkspaceTimeoutSettings(); + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + * @return The workspaceTimeoutSettings. + */ + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings getWorkspaceTimeoutSettings(); + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettingsOrBuilder getWorkspaceTimeoutSettingsOrBuilder(); + + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return Whether the dotfileRepo field is set. + */ + boolean hasDotfileRepo(); + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return The dotfileRepo. + */ + java.lang.String getDotfileRepo(); + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return The bytes for dotfileRepo. + */ + com.google.protobuf.ByteString + getDotfileRepoBytes(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserRequest} + */ + public static final class UpdateUserRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateUserRequest) + UpdateUserRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateUserRequest.class.getName()); + } + // Use UpdateUserRequest.newBuilder() to construct. + private UpdateUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateUserRequest() { + userId_ = ""; + name_ = ""; + acceptedPrivacyPolicyDate_ = ""; + emailAddress_ = ""; + dotfileRepo_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.Builder.class); + } + + public interface ProfileDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateUserRequest.ProfileDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return Whether the lastUpdatedDetailsNudge field is set. + */ + boolean hasLastUpdatedDetailsNudge(); + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The lastUpdatedDetailsNudge. + */ + java.lang.String getLastUpdatedDetailsNudge(); + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The bytes for lastUpdatedDetailsNudge. + */ + com.google.protobuf.ByteString + getLastUpdatedDetailsNudgeBytes(); + + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return Whether the acceptedPrivacyPolicyDate field is set. + */ + boolean hasAcceptedPrivacyPolicyDate(); + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The acceptedPrivacyPolicyDate. + */ + java.lang.String getAcceptedPrivacyPolicyDate(); + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The bytes for acceptedPrivacyPolicyDate. + */ + com.google.protobuf.ByteString + getAcceptedPrivacyPolicyDateBytes(); + + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return Whether the companyName field is set. + */ + boolean hasCompanyName(); + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return The companyName. + */ + java.lang.String getCompanyName(); + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return The bytes for companyName. + */ + com.google.protobuf.ByteString + getCompanyNameBytes(); + + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return Whether the emailAddress field is set. + */ + boolean hasEmailAddress(); + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return The emailAddress. + */ + java.lang.String getEmailAddress(); + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return The bytes for emailAddress. + */ + com.google.protobuf.ByteString + getEmailAddressBytes(); + + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return Whether the jobRole field is set. + */ + boolean hasJobRole(); + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return The jobRole. + */ + java.lang.String getJobRole(); + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return The bytes for jobRole. + */ + com.google.protobuf.ByteString + getJobRoleBytes(); + + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return Whether the jobRoleOther field is set. + */ + boolean hasJobRoleOther(); + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The jobRoleOther. + */ + java.lang.String getJobRoleOther(); + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The bytes for jobRoleOther. + */ + com.google.protobuf.ByteString + getJobRoleOtherBytes(); + + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return A list containing the explorationReasons. + */ + java.util.List + getExplorationReasonsList(); + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return The count of explorationReasons. + */ + int getExplorationReasonsCount(); + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the element to return. + * @return The explorationReasons at the given index. + */ + java.lang.String getExplorationReasons(int index); + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the value to return. + * @return The bytes of the explorationReasons at the given index. + */ + com.google.protobuf.ByteString + getExplorationReasonsBytes(int index); + + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return A list containing the signupGoals. + */ + java.util.List + getSignupGoalsList(); + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return The count of signupGoals. + */ + int getSignupGoalsCount(); + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the element to return. + * @return The signupGoals at the given index. + */ + java.lang.String getSignupGoals(int index); + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the value to return. + * @return The bytes of the signupGoals at the given index. + */ + com.google.protobuf.ByteString + getSignupGoalsBytes(int index); + + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return Whether the signupGoalsOther field is set. + */ + boolean hasSignupGoalsOther(); + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The signupGoalsOther. + */ + java.lang.String getSignupGoalsOther(); + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The bytes for signupGoalsOther. + */ + com.google.protobuf.ByteString + getSignupGoalsOtherBytes(); + + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return Whether the onboardedTimestamp field is set. + */ + boolean hasOnboardedTimestamp(); + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The onboardedTimestamp. + */ + java.lang.String getOnboardedTimestamp(); + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The bytes for onboardedTimestamp. + */ + com.google.protobuf.ByteString + getOnboardedTimestampBytes(); + + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return Whether the companySize field is set. + */ + boolean hasCompanySize(); + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return The companySize. + */ + java.lang.String getCompanySize(); + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return The bytes for companySize. + */ + com.google.protobuf.ByteString + getCompanySizeBytes(); + + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + int getCoachmarksDismissalsCount(); + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + boolean containsCoachmarksDismissals( + java.lang.String key); + /** + * Use {@link #getCoachmarksDismissalsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCoachmarksDismissals(); + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + java.util.Map + getCoachmarksDismissalsMap(); + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + /* nullable */ +java.lang.String getCoachmarksDismissalsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + java.lang.String getCoachmarksDismissalsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserRequest.ProfileDetails} + */ + public static final class ProfileDetails extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateUserRequest.ProfileDetails) + ProfileDetailsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ProfileDetails.class.getName()); + } + // Use ProfileDetails.newBuilder() to construct. + private ProfileDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ProfileDetails() { + lastUpdatedDetailsNudge_ = ""; + acceptedPrivacyPolicyDate_ = ""; + companyName_ = ""; + emailAddress_ = ""; + jobRole_ = ""; + jobRoleOther_ = ""; + explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + signupGoalsOther_ = ""; + onboardedTimestamp_ = ""; + companySize_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetCoachmarksDismissals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.Builder.class); + } + + private int bitField0_; + public static final int LAST_UPDATED_DETAILS_NUDGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object lastUpdatedDetailsNudge_ = ""; + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return Whether the lastUpdatedDetailsNudge field is set. + */ + @java.lang.Override + public boolean hasLastUpdatedDetailsNudge() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The lastUpdatedDetailsNudge. + */ + @java.lang.Override + public java.lang.String getLastUpdatedDetailsNudge() { + java.lang.Object ref = lastUpdatedDetailsNudge_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastUpdatedDetailsNudge_ = s; + return s; + } + } + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The bytes for lastUpdatedDetailsNudge. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLastUpdatedDetailsNudgeBytes() { + java.lang.Object ref = lastUpdatedDetailsNudge_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastUpdatedDetailsNudge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCEPTED_PRIVACY_POLICY_DATE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object acceptedPrivacyPolicyDate_ = ""; + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return Whether the acceptedPrivacyPolicyDate field is set. + */ + @java.lang.Override + public boolean hasAcceptedPrivacyPolicyDate() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The acceptedPrivacyPolicyDate. + */ + @java.lang.Override + public java.lang.String getAcceptedPrivacyPolicyDate() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceptedPrivacyPolicyDate_ = s; + return s; + } + } + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The bytes for acceptedPrivacyPolicyDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAcceptedPrivacyPolicyDateBytes() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceptedPrivacyPolicyDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object companyName_ = ""; + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return Whether the companyName field is set. + */ + @java.lang.Override + public boolean hasCompanyName() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return The companyName. + */ + @java.lang.Override + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } + } + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return The bytes for companyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_ADDRESS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object emailAddress_ = ""; + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return Whether the emailAddress field is set. + */ + @java.lang.Override + public boolean hasEmailAddress() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return The emailAddress. + */ + @java.lang.Override + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } + } + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return The bytes for emailAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_ROLE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object jobRole_ = ""; + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return Whether the jobRole field is set. + */ + @java.lang.Override + public boolean hasJobRole() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return The jobRole. + */ + @java.lang.Override + public java.lang.String getJobRole() { + java.lang.Object ref = jobRole_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRole_ = s; + return s; + } + } + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return The bytes for jobRole. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJobRoleBytes() { + java.lang.Object ref = jobRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_ROLE_OTHER_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object jobRoleOther_ = ""; + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return Whether the jobRoleOther field is set. + */ + @java.lang.Override + public boolean hasJobRoleOther() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The jobRoleOther. + */ + @java.lang.Override + public java.lang.String getJobRoleOther() { + java.lang.Object ref = jobRoleOther_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRoleOther_ = s; + return s; + } + } + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The bytes for jobRoleOther. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJobRoleOtherBytes() { + java.lang.Object ref = jobRoleOther_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobRoleOther_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPLORATION_REASONS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return A list containing the explorationReasons. + */ + public com.google.protobuf.ProtocolStringList + getExplorationReasonsList() { + return explorationReasons_; + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return The count of explorationReasons. + */ + public int getExplorationReasonsCount() { + return explorationReasons_.size(); + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the element to return. + * @return The explorationReasons at the given index. + */ + public java.lang.String getExplorationReasons(int index) { + return explorationReasons_.get(index); + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the value to return. + * @return The bytes of the explorationReasons at the given index. + */ + public com.google.protobuf.ByteString + getExplorationReasonsBytes(int index) { + return explorationReasons_.getByteString(index); + } + + public static final int SIGNUP_GOALS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return A list containing the signupGoals. + */ + public com.google.protobuf.ProtocolStringList + getSignupGoalsList() { + return signupGoals_; + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return The count of signupGoals. + */ + public int getSignupGoalsCount() { + return signupGoals_.size(); + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the element to return. + * @return The signupGoals at the given index. + */ + public java.lang.String getSignupGoals(int index) { + return signupGoals_.get(index); + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the value to return. + * @return The bytes of the signupGoals at the given index. + */ + public com.google.protobuf.ByteString + getSignupGoalsBytes(int index) { + return signupGoals_.getByteString(index); + } + + public static final int SIGNUP_GOALS_OTHER_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object signupGoalsOther_ = ""; + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return Whether the signupGoalsOther field is set. + */ + @java.lang.Override + public boolean hasSignupGoalsOther() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The signupGoalsOther. + */ + @java.lang.Override + public java.lang.String getSignupGoalsOther() { + java.lang.Object ref = signupGoalsOther_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signupGoalsOther_ = s; + return s; + } + } + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The bytes for signupGoalsOther. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSignupGoalsOtherBytes() { + java.lang.Object ref = signupGoalsOther_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signupGoalsOther_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ONBOARDED_TIMESTAMP_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object onboardedTimestamp_ = ""; + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return Whether the onboardedTimestamp field is set. + */ + @java.lang.Override + public boolean hasOnboardedTimestamp() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The onboardedTimestamp. + */ + @java.lang.Override + public java.lang.String getOnboardedTimestamp() { + java.lang.Object ref = onboardedTimestamp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + onboardedTimestamp_ = s; + return s; + } + } + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The bytes for onboardedTimestamp. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOnboardedTimestampBytes() { + java.lang.Object ref = onboardedTimestamp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + onboardedTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_SIZE_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object companySize_ = ""; + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return Whether the companySize field is set. + */ + @java.lang.Override + public boolean hasCompanySize() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return The companySize. + */ + @java.lang.Override + public java.lang.String getCompanySize() { + java.lang.Object ref = companySize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companySize_ = s; + return s; + } + } + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return The bytes for companySize. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCompanySizeBytes() { + java.lang.Object ref = companySize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + companySize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COACHMARKS_DISMISSALS_FIELD_NUMBER = 13; + private static final class CoachmarksDismissalsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_CoachmarksDismissalsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> coachmarksDismissals_; + private com.google.protobuf.MapField + internalGetCoachmarksDismissals() { + if (coachmarksDismissals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CoachmarksDismissalsDefaultEntryHolder.defaultEntry); + } + return coachmarksDismissals_; + } + public int getCoachmarksDismissalsCount() { + return internalGetCoachmarksDismissals().getMap().size(); + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public boolean containsCoachmarksDismissals( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCoachmarksDismissals().getMap().containsKey(key); + } + /** + * Use {@link #getCoachmarksDismissalsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCoachmarksDismissals() { + return getCoachmarksDismissalsMap(); + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public java.util.Map getCoachmarksDismissalsMap() { + return internalGetCoachmarksDismissals().getMap(); + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getCoachmarksDismissalsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCoachmarksDismissals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public java.lang.String getCoachmarksDismissalsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCoachmarksDismissals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, lastUpdatedDetailsNudge_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, acceptedPrivacyPolicyDate_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, companyName_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, emailAddress_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, jobRole_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, jobRoleOther_); + } + for (int i = 0; i < explorationReasons_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, explorationReasons_.getRaw(i)); + } + for (int i = 0; i < signupGoals_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, signupGoals_.getRaw(i)); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, signupGoalsOther_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, onboardedTimestamp_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, companySize_); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetCoachmarksDismissals(), + CoachmarksDismissalsDefaultEntryHolder.defaultEntry, + 13); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, lastUpdatedDetailsNudge_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, acceptedPrivacyPolicyDate_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, companyName_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, emailAddress_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, jobRole_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, jobRoleOther_); + } + { + int dataSize = 0; + for (int i = 0; i < explorationReasons_.size(); i++) { + dataSize += computeStringSizeNoTag(explorationReasons_.getRaw(i)); + } + size += dataSize; + size += 1 * getExplorationReasonsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < signupGoals_.size(); i++) { + dataSize += computeStringSizeNoTag(signupGoals_.getRaw(i)); + } + size += dataSize; + size += 1 * getSignupGoalsList().size(); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, signupGoalsOther_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, onboardedTimestamp_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, companySize_); + } + for (java.util.Map.Entry entry + : internalGetCoachmarksDismissals().getMap().entrySet()) { + com.google.protobuf.MapEntry + coachmarksDismissals__ = CoachmarksDismissalsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, coachmarksDismissals__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails other = (io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails) obj; + + if (hasLastUpdatedDetailsNudge() != other.hasLastUpdatedDetailsNudge()) return false; + if (hasLastUpdatedDetailsNudge()) { + if (!getLastUpdatedDetailsNudge() + .equals(other.getLastUpdatedDetailsNudge())) return false; + } + if (hasAcceptedPrivacyPolicyDate() != other.hasAcceptedPrivacyPolicyDate()) return false; + if (hasAcceptedPrivacyPolicyDate()) { + if (!getAcceptedPrivacyPolicyDate() + .equals(other.getAcceptedPrivacyPolicyDate())) return false; + } + if (hasCompanyName() != other.hasCompanyName()) return false; + if (hasCompanyName()) { + if (!getCompanyName() + .equals(other.getCompanyName())) return false; + } + if (hasEmailAddress() != other.hasEmailAddress()) return false; + if (hasEmailAddress()) { + if (!getEmailAddress() + .equals(other.getEmailAddress())) return false; + } + if (hasJobRole() != other.hasJobRole()) return false; + if (hasJobRole()) { + if (!getJobRole() + .equals(other.getJobRole())) return false; + } + if (hasJobRoleOther() != other.hasJobRoleOther()) return false; + if (hasJobRoleOther()) { + if (!getJobRoleOther() + .equals(other.getJobRoleOther())) return false; + } + if (!getExplorationReasonsList() + .equals(other.getExplorationReasonsList())) return false; + if (!getSignupGoalsList() + .equals(other.getSignupGoalsList())) return false; + if (hasSignupGoalsOther() != other.hasSignupGoalsOther()) return false; + if (hasSignupGoalsOther()) { + if (!getSignupGoalsOther() + .equals(other.getSignupGoalsOther())) return false; + } + if (hasOnboardedTimestamp() != other.hasOnboardedTimestamp()) return false; + if (hasOnboardedTimestamp()) { + if (!getOnboardedTimestamp() + .equals(other.getOnboardedTimestamp())) return false; + } + if (hasCompanySize() != other.hasCompanySize()) return false; + if (hasCompanySize()) { + if (!getCompanySize() + .equals(other.getCompanySize())) return false; + } + if (!internalGetCoachmarksDismissals().equals( + other.internalGetCoachmarksDismissals())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLastUpdatedDetailsNudge()) { + hash = (37 * hash) + LAST_UPDATED_DETAILS_NUDGE_FIELD_NUMBER; + hash = (53 * hash) + getLastUpdatedDetailsNudge().hashCode(); + } + if (hasAcceptedPrivacyPolicyDate()) { + hash = (37 * hash) + ACCEPTED_PRIVACY_POLICY_DATE_FIELD_NUMBER; + hash = (53 * hash) + getAcceptedPrivacyPolicyDate().hashCode(); + } + if (hasCompanyName()) { + hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); + } + if (hasEmailAddress()) { + hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddress().hashCode(); + } + if (hasJobRole()) { + hash = (37 * hash) + JOB_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getJobRole().hashCode(); + } + if (hasJobRoleOther()) { + hash = (37 * hash) + JOB_ROLE_OTHER_FIELD_NUMBER; + hash = (53 * hash) + getJobRoleOther().hashCode(); + } + if (getExplorationReasonsCount() > 0) { + hash = (37 * hash) + EXPLORATION_REASONS_FIELD_NUMBER; + hash = (53 * hash) + getExplorationReasonsList().hashCode(); + } + if (getSignupGoalsCount() > 0) { + hash = (37 * hash) + SIGNUP_GOALS_FIELD_NUMBER; + hash = (53 * hash) + getSignupGoalsList().hashCode(); + } + if (hasSignupGoalsOther()) { + hash = (37 * hash) + SIGNUP_GOALS_OTHER_FIELD_NUMBER; + hash = (53 * hash) + getSignupGoalsOther().hashCode(); + } + if (hasOnboardedTimestamp()) { + hash = (37 * hash) + ONBOARDED_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getOnboardedTimestamp().hashCode(); + } + if (hasCompanySize()) { + hash = (37 * hash) + COMPANY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getCompanySize().hashCode(); + } + if (!internalGetCoachmarksDismissals().getMap().isEmpty()) { + hash = (37 * hash) + COACHMARKS_DISMISSALS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCoachmarksDismissals().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserRequest.ProfileDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateUserRequest.ProfileDetails) + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetCoachmarksDismissals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetMutableCoachmarksDismissals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lastUpdatedDetailsNudge_ = ""; + acceptedPrivacyPolicyDate_ = ""; + companyName_ = ""; + emailAddress_ = ""; + jobRole_ = ""; + jobRoleOther_ = ""; + explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + signupGoalsOther_ = ""; + onboardedTimestamp_ = ""; + companySize_ = ""; + internalGetMutableCoachmarksDismissals().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails build() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails result = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lastUpdatedDetailsNudge_ = lastUpdatedDetailsNudge_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acceptedPrivacyPolicyDate_ = acceptedPrivacyPolicyDate_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.companyName_ = companyName_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.emailAddress_ = emailAddress_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.jobRole_ = jobRole_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.jobRoleOther_ = jobRoleOther_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + explorationReasons_.makeImmutable(); + result.explorationReasons_ = explorationReasons_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + signupGoals_.makeImmutable(); + result.signupGoals_ = signupGoals_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.signupGoalsOther_ = signupGoalsOther_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.onboardedTimestamp_ = onboardedTimestamp_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.companySize_ = companySize_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.coachmarksDismissals_ = internalGetCoachmarksDismissals(); + result.coachmarksDismissals_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.getDefaultInstance()) return this; + if (other.hasLastUpdatedDetailsNudge()) { + lastUpdatedDetailsNudge_ = other.lastUpdatedDetailsNudge_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAcceptedPrivacyPolicyDate()) { + acceptedPrivacyPolicyDate_ = other.acceptedPrivacyPolicyDate_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCompanyName()) { + companyName_ = other.companyName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasEmailAddress()) { + emailAddress_ = other.emailAddress_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasJobRole()) { + jobRole_ = other.jobRole_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasJobRoleOther()) { + jobRoleOther_ = other.jobRoleOther_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.explorationReasons_.isEmpty()) { + if (explorationReasons_.isEmpty()) { + explorationReasons_ = other.explorationReasons_; + bitField0_ |= 0x00000040; + } else { + ensureExplorationReasonsIsMutable(); + explorationReasons_.addAll(other.explorationReasons_); + } + onChanged(); + } + if (!other.signupGoals_.isEmpty()) { + if (signupGoals_.isEmpty()) { + signupGoals_ = other.signupGoals_; + bitField0_ |= 0x00000080; + } else { + ensureSignupGoalsIsMutable(); + signupGoals_.addAll(other.signupGoals_); + } + onChanged(); + } + if (other.hasSignupGoalsOther()) { + signupGoalsOther_ = other.signupGoalsOther_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasOnboardedTimestamp()) { + onboardedTimestamp_ = other.onboardedTimestamp_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasCompanySize()) { + companySize_ = other.companySize_; + bitField0_ |= 0x00000400; + onChanged(); + } + internalGetMutableCoachmarksDismissals().mergeFrom( + other.internalGetCoachmarksDismissals()); + bitField0_ |= 0x00000800; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + lastUpdatedDetailsNudge_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + acceptedPrivacyPolicyDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + companyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + emailAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + jobRole_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + jobRoleOther_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExplorationReasonsIsMutable(); + explorationReasons_.add(s); + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSignupGoalsIsMutable(); + signupGoals_.add(s); + break; + } // case 66 + case 82: { + signupGoalsOther_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: { + onboardedTimestamp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: { + companySize_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 106: { + com.google.protobuf.MapEntry + coachmarksDismissals__ = input.readMessage( + CoachmarksDismissalsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCoachmarksDismissals().getMutableMap().put( + coachmarksDismissals__.getKey(), coachmarksDismissals__.getValue()); + bitField0_ |= 0x00000800; + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object lastUpdatedDetailsNudge_ = ""; + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return Whether the lastUpdatedDetailsNudge field is set. + */ + public boolean hasLastUpdatedDetailsNudge() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The lastUpdatedDetailsNudge. + */ + public java.lang.String getLastUpdatedDetailsNudge() { + java.lang.Object ref = lastUpdatedDetailsNudge_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastUpdatedDetailsNudge_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The bytes for lastUpdatedDetailsNudge. + */ + public com.google.protobuf.ByteString + getLastUpdatedDetailsNudgeBytes() { + java.lang.Object ref = lastUpdatedDetailsNudge_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastUpdatedDetailsNudge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @param value The lastUpdatedDetailsNudge to set. + * @return This builder for chaining. + */ + public Builder setLastUpdatedDetailsNudge( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + lastUpdatedDetailsNudge_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return This builder for chaining. + */ + public Builder clearLastUpdatedDetailsNudge() { + lastUpdatedDetailsNudge_ = getDefaultInstance().getLastUpdatedDetailsNudge(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @param value The bytes for lastUpdatedDetailsNudge to set. + * @return This builder for chaining. + */ + public Builder setLastUpdatedDetailsNudgeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + lastUpdatedDetailsNudge_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object acceptedPrivacyPolicyDate_ = ""; + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return Whether the acceptedPrivacyPolicyDate field is set. + */ + public boolean hasAcceptedPrivacyPolicyDate() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The acceptedPrivacyPolicyDate. + */ + public java.lang.String getAcceptedPrivacyPolicyDate() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceptedPrivacyPolicyDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The bytes for acceptedPrivacyPolicyDate. + */ + public com.google.protobuf.ByteString + getAcceptedPrivacyPolicyDateBytes() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceptedPrivacyPolicyDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @param value The acceptedPrivacyPolicyDate to set. + * @return This builder for chaining. + */ + public Builder setAcceptedPrivacyPolicyDate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + acceptedPrivacyPolicyDate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return This builder for chaining. + */ + public Builder clearAcceptedPrivacyPolicyDate() { + acceptedPrivacyPolicyDate_ = getDefaultInstance().getAcceptedPrivacyPolicyDate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @param value The bytes for acceptedPrivacyPolicyDate to set. + * @return This builder for chaining. + */ + public Builder setAcceptedPrivacyPolicyDateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + acceptedPrivacyPolicyDate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object companyName_ = ""; + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return Whether the companyName field is set. + */ + public boolean hasCompanyName() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return The companyName. + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return The bytes for companyName. + */ + public com.google.protobuf.ByteString + getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @param value The companyName to set. + * @return This builder for chaining. + */ + public Builder setCompanyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + companyName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @return This builder for chaining. + */ + public Builder clearCompanyName() { + companyName_ = getDefaultInstance().getCompanyName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string company_name = 3 [json_name = "companyName"]; + * @param value The bytes for companyName to set. + * @return This builder for chaining. + */ + public Builder setCompanyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + companyName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object emailAddress_ = ""; + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return Whether the emailAddress field is set. + */ + public boolean hasEmailAddress() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return The emailAddress. + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return The bytes for emailAddress. + */ + public com.google.protobuf.ByteString + getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @param value The emailAddress to set. + * @return This builder for chaining. + */ + public Builder setEmailAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + emailAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @return This builder for chaining. + */ + public Builder clearEmailAddress() { + emailAddress_ = getDefaultInstance().getEmailAddress(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * optional string email_address = 4 [json_name = "emailAddress"]; + * @param value The bytes for emailAddress to set. + * @return This builder for chaining. + */ + public Builder setEmailAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + emailAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object jobRole_ = ""; + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return Whether the jobRole field is set. + */ + public boolean hasJobRole() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return The jobRole. + */ + public java.lang.String getJobRole() { + java.lang.Object ref = jobRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return The bytes for jobRole. + */ + public com.google.protobuf.ByteString + getJobRoleBytes() { + java.lang.Object ref = jobRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @param value The jobRole to set. + * @return This builder for chaining. + */ + public Builder setJobRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + jobRole_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @return This builder for chaining. + */ + public Builder clearJobRole() { + jobRole_ = getDefaultInstance().getJobRole(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string job_role = 5 [json_name = "jobRole"]; + * @param value The bytes for jobRole to set. + * @return This builder for chaining. + */ + public Builder setJobRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + jobRole_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object jobRoleOther_ = ""; + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return Whether the jobRoleOther field is set. + */ + public boolean hasJobRoleOther() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The jobRoleOther. + */ + public java.lang.String getJobRoleOther() { + java.lang.Object ref = jobRoleOther_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRoleOther_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The bytes for jobRoleOther. + */ + public com.google.protobuf.ByteString + getJobRoleOtherBytes() { + java.lang.Object ref = jobRoleOther_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobRoleOther_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @param value The jobRoleOther to set. + * @return This builder for chaining. + */ + public Builder setJobRoleOther( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + jobRoleOther_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return This builder for chaining. + */ + public Builder clearJobRoleOther() { + jobRoleOther_ = getDefaultInstance().getJobRoleOther(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * optional string job_role_other = 6 [json_name = "jobRoleOther"]; + * @param value The bytes for jobRoleOther to set. + * @return This builder for chaining. + */ + public Builder setJobRoleOtherBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + jobRoleOther_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureExplorationReasonsIsMutable() { + if (!explorationReasons_.isModifiable()) { + explorationReasons_ = new com.google.protobuf.LazyStringArrayList(explorationReasons_); + } + bitField0_ |= 0x00000040; + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return A list containing the explorationReasons. + */ + public com.google.protobuf.ProtocolStringList + getExplorationReasonsList() { + explorationReasons_.makeImmutable(); + return explorationReasons_; + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return The count of explorationReasons. + */ + public int getExplorationReasonsCount() { + return explorationReasons_.size(); + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the element to return. + * @return The explorationReasons at the given index. + */ + public java.lang.String getExplorationReasons(int index) { + return explorationReasons_.get(index); + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the value to return. + * @return The bytes of the explorationReasons at the given index. + */ + public com.google.protobuf.ByteString + getExplorationReasonsBytes(int index) { + return explorationReasons_.getByteString(index); + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index to set the value at. + * @param value The explorationReasons to set. + * @return This builder for chaining. + */ + public Builder setExplorationReasons( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureExplorationReasonsIsMutable(); + explorationReasons_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param value The explorationReasons to add. + * @return This builder for chaining. + */ + public Builder addExplorationReasons( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureExplorationReasonsIsMutable(); + explorationReasons_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param values The explorationReasons to add. + * @return This builder for chaining. + */ + public Builder addAllExplorationReasons( + java.lang.Iterable values) { + ensureExplorationReasonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, explorationReasons_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return This builder for chaining. + */ + public Builder clearExplorationReasons() { + explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + onChanged(); + return this; + } + /** + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param value The bytes of the explorationReasons to add. + * @return This builder for chaining. + */ + public Builder addExplorationReasonsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureExplorationReasonsIsMutable(); + explorationReasons_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSignupGoalsIsMutable() { + if (!signupGoals_.isModifiable()) { + signupGoals_ = new com.google.protobuf.LazyStringArrayList(signupGoals_); + } + bitField0_ |= 0x00000080; + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return A list containing the signupGoals. + */ + public com.google.protobuf.ProtocolStringList + getSignupGoalsList() { + signupGoals_.makeImmutable(); + return signupGoals_; + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return The count of signupGoals. + */ + public int getSignupGoalsCount() { + return signupGoals_.size(); + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the element to return. + * @return The signupGoals at the given index. + */ + public java.lang.String getSignupGoals(int index) { + return signupGoals_.get(index); + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the value to return. + * @return The bytes of the signupGoals at the given index. + */ + public com.google.protobuf.ByteString + getSignupGoalsBytes(int index) { + return signupGoals_.getByteString(index); + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index to set the value at. + * @param value The signupGoals to set. + * @return This builder for chaining. + */ + public Builder setSignupGoals( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSignupGoalsIsMutable(); + signupGoals_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param value The signupGoals to add. + * @return This builder for chaining. + */ + public Builder addSignupGoals( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSignupGoalsIsMutable(); + signupGoals_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param values The signupGoals to add. + * @return This builder for chaining. + */ + public Builder addAllSignupGoals( + java.lang.Iterable values) { + ensureSignupGoalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, signupGoals_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return This builder for chaining. + */ + public Builder clearSignupGoals() { + signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + onChanged(); + return this; + } + /** + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param value The bytes of the signupGoals to add. + * @return This builder for chaining. + */ + public Builder addSignupGoalsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureSignupGoalsIsMutable(); + signupGoals_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object signupGoalsOther_ = ""; + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return Whether the signupGoalsOther field is set. + */ + public boolean hasSignupGoalsOther() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The signupGoalsOther. + */ + public java.lang.String getSignupGoalsOther() { + java.lang.Object ref = signupGoalsOther_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signupGoalsOther_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The bytes for signupGoalsOther. + */ + public com.google.protobuf.ByteString + getSignupGoalsOtherBytes() { + java.lang.Object ref = signupGoalsOther_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signupGoalsOther_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @param value The signupGoalsOther to set. + * @return This builder for chaining. + */ + public Builder setSignupGoalsOther( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + signupGoalsOther_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return This builder for chaining. + */ + public Builder clearSignupGoalsOther() { + signupGoalsOther_ = getDefaultInstance().getSignupGoalsOther(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * optional string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @param value The bytes for signupGoalsOther to set. + * @return This builder for chaining. + */ + public Builder setSignupGoalsOtherBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + signupGoalsOther_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object onboardedTimestamp_ = ""; + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return Whether the onboardedTimestamp field is set. + */ + public boolean hasOnboardedTimestamp() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The onboardedTimestamp. + */ + public java.lang.String getOnboardedTimestamp() { + java.lang.Object ref = onboardedTimestamp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + onboardedTimestamp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The bytes for onboardedTimestamp. + */ + public com.google.protobuf.ByteString + getOnboardedTimestampBytes() { + java.lang.Object ref = onboardedTimestamp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + onboardedTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @param value The onboardedTimestamp to set. + * @return This builder for chaining. + */ + public Builder setOnboardedTimestamp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + onboardedTimestamp_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return This builder for chaining. + */ + public Builder clearOnboardedTimestamp() { + onboardedTimestamp_ = getDefaultInstance().getOnboardedTimestamp(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * optional string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @param value The bytes for onboardedTimestamp to set. + * @return This builder for chaining. + */ + public Builder setOnboardedTimestampBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + onboardedTimestamp_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object companySize_ = ""; + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return Whether the companySize field is set. + */ + public boolean hasCompanySize() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return The companySize. + */ + public java.lang.String getCompanySize() { + java.lang.Object ref = companySize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companySize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return The bytes for companySize. + */ + public com.google.protobuf.ByteString + getCompanySizeBytes() { + java.lang.Object ref = companySize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + companySize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @param value The companySize to set. + * @return This builder for chaining. + */ + public Builder setCompanySize( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + companySize_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @return This builder for chaining. + */ + public Builder clearCompanySize() { + companySize_ = getDefaultInstance().getCompanySize(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * optional string company_size = 12 [json_name = "companySize"]; + * @param value The bytes for companySize to set. + * @return This builder for chaining. + */ + public Builder setCompanySizeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + companySize_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> coachmarksDismissals_; + private com.google.protobuf.MapField + internalGetCoachmarksDismissals() { + if (coachmarksDismissals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CoachmarksDismissalsDefaultEntryHolder.defaultEntry); + } + return coachmarksDismissals_; + } + private com.google.protobuf.MapField + internalGetMutableCoachmarksDismissals() { + if (coachmarksDismissals_ == null) { + coachmarksDismissals_ = com.google.protobuf.MapField.newMapField( + CoachmarksDismissalsDefaultEntryHolder.defaultEntry); + } + if (!coachmarksDismissals_.isMutable()) { + coachmarksDismissals_ = coachmarksDismissals_.copy(); + } + bitField0_ |= 0x00000800; + onChanged(); + return coachmarksDismissals_; + } + public int getCoachmarksDismissalsCount() { + return internalGetCoachmarksDismissals().getMap().size(); + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public boolean containsCoachmarksDismissals( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCoachmarksDismissals().getMap().containsKey(key); + } + /** + * Use {@link #getCoachmarksDismissalsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCoachmarksDismissals() { + return getCoachmarksDismissalsMap(); + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public java.util.Map getCoachmarksDismissalsMap() { + return internalGetCoachmarksDismissals().getMap(); + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getCoachmarksDismissalsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCoachmarksDismissals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public java.lang.String getCoachmarksDismissalsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCoachmarksDismissals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearCoachmarksDismissals() { + bitField0_ = (bitField0_ & ~0x00000800); + internalGetMutableCoachmarksDismissals().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + public Builder removeCoachmarksDismissals( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCoachmarksDismissals().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCoachmarksDismissals() { + bitField0_ |= 0x00000800; + return internalGetMutableCoachmarksDismissals().getMutableMap(); + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + public Builder putCoachmarksDismissals( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableCoachmarksDismissals().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000800; + return this; + } + /** + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + public Builder putAllCoachmarksDismissals( + java.util.Map values) { + internalGetMutableCoachmarksDismissals().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000800; + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateUserRequest.ProfileDetails) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateUserRequest.ProfileDetails) + private static final io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EmailNotificationSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateUserRequest.EmailNotificationSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * optional bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return Whether the allowsChangelogMail field is set. + */ + boolean hasAllowsChangelogMail(); + /** + * optional bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return The allowsChangelogMail. + */ + boolean getAllowsChangelogMail(); + + /** + * optional bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return Whether the allowsDevxMail field is set. + */ + boolean hasAllowsDevxMail(); + /** + * optional bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return The allowsDevxMail. + */ + boolean getAllowsDevxMail(); + + /** + * optional bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return Whether the allowsOnboardingMail field is set. + */ + boolean hasAllowsOnboardingMail(); + /** + * optional bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return The allowsOnboardingMail. + */ + boolean getAllowsOnboardingMail(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserRequest.EmailNotificationSettings} + */ + public static final class EmailNotificationSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateUserRequest.EmailNotificationSettings) + EmailNotificationSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + EmailNotificationSettings.class.getName()); + } + // Use EmailNotificationSettings.newBuilder() to construct. + private EmailNotificationSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EmailNotificationSettings() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.Builder.class); + } + + private int bitField0_; + public static final int ALLOWS_CHANGELOG_MAIL_FIELD_NUMBER = 1; + private boolean allowsChangelogMail_ = false; + /** + * optional bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return Whether the allowsChangelogMail field is set. + */ + @java.lang.Override + public boolean hasAllowsChangelogMail() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return The allowsChangelogMail. + */ + @java.lang.Override + public boolean getAllowsChangelogMail() { + return allowsChangelogMail_; + } + + public static final int ALLOWS_DEVX_MAIL_FIELD_NUMBER = 2; + private boolean allowsDevxMail_ = false; + /** + * optional bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return Whether the allowsDevxMail field is set. + */ + @java.lang.Override + public boolean hasAllowsDevxMail() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return The allowsDevxMail. + */ + @java.lang.Override + public boolean getAllowsDevxMail() { + return allowsDevxMail_; + } + + public static final int ALLOWS_ONBOARDING_MAIL_FIELD_NUMBER = 3; + private boolean allowsOnboardingMail_ = false; + /** + * optional bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return Whether the allowsOnboardingMail field is set. + */ + @java.lang.Override + public boolean hasAllowsOnboardingMail() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return The allowsOnboardingMail. + */ + @java.lang.Override + public boolean getAllowsOnboardingMail() { + return allowsOnboardingMail_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, allowsChangelogMail_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, allowsDevxMail_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, allowsOnboardingMail_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, allowsChangelogMail_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowsDevxMail_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, allowsOnboardingMail_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings other = (io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings) obj; + + if (hasAllowsChangelogMail() != other.hasAllowsChangelogMail()) return false; + if (hasAllowsChangelogMail()) { + if (getAllowsChangelogMail() + != other.getAllowsChangelogMail()) return false; + } + if (hasAllowsDevxMail() != other.hasAllowsDevxMail()) return false; + if (hasAllowsDevxMail()) { + if (getAllowsDevxMail() + != other.getAllowsDevxMail()) return false; + } + if (hasAllowsOnboardingMail() != other.hasAllowsOnboardingMail()) return false; + if (hasAllowsOnboardingMail()) { + if (getAllowsOnboardingMail() + != other.getAllowsOnboardingMail()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAllowsChangelogMail()) { + hash = (37 * hash) + ALLOWS_CHANGELOG_MAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowsChangelogMail()); + } + if (hasAllowsDevxMail()) { + hash = (37 * hash) + ALLOWS_DEVX_MAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowsDevxMail()); + } + if (hasAllowsOnboardingMail()) { + hash = (37 * hash) + ALLOWS_ONBOARDING_MAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowsOnboardingMail()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserRequest.EmailNotificationSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateUserRequest.EmailNotificationSettings) + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowsChangelogMail_ = false; + allowsDevxMail_ = false; + allowsOnboardingMail_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings build() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings result = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allowsChangelogMail_ = allowsChangelogMail_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowsDevxMail_ = allowsDevxMail_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowsOnboardingMail_ = allowsOnboardingMail_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.getDefaultInstance()) return this; + if (other.hasAllowsChangelogMail()) { + setAllowsChangelogMail(other.getAllowsChangelogMail()); + } + if (other.hasAllowsDevxMail()) { + setAllowsDevxMail(other.getAllowsDevxMail()); + } + if (other.hasAllowsOnboardingMail()) { + setAllowsOnboardingMail(other.getAllowsOnboardingMail()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + allowsChangelogMail_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + allowsDevxMail_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + allowsOnboardingMail_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean allowsChangelogMail_ ; + /** + * optional bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return Whether the allowsChangelogMail field is set. + */ + @java.lang.Override + public boolean hasAllowsChangelogMail() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return The allowsChangelogMail. + */ + @java.lang.Override + public boolean getAllowsChangelogMail() { + return allowsChangelogMail_; + } + /** + * optional bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @param value The allowsChangelogMail to set. + * @return This builder for chaining. + */ + public Builder setAllowsChangelogMail(boolean value) { + + allowsChangelogMail_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return This builder for chaining. + */ + public Builder clearAllowsChangelogMail() { + bitField0_ = (bitField0_ & ~0x00000001); + allowsChangelogMail_ = false; + onChanged(); + return this; + } + + private boolean allowsDevxMail_ ; + /** + * optional bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return Whether the allowsDevxMail field is set. + */ + @java.lang.Override + public boolean hasAllowsDevxMail() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return The allowsDevxMail. + */ + @java.lang.Override + public boolean getAllowsDevxMail() { + return allowsDevxMail_; + } + /** + * optional bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @param value The allowsDevxMail to set. + * @return This builder for chaining. + */ + public Builder setAllowsDevxMail(boolean value) { + + allowsDevxMail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return This builder for chaining. + */ + public Builder clearAllowsDevxMail() { + bitField0_ = (bitField0_ & ~0x00000002); + allowsDevxMail_ = false; + onChanged(); + return this; + } + + private boolean allowsOnboardingMail_ ; + /** + * optional bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return Whether the allowsOnboardingMail field is set. + */ + @java.lang.Override + public boolean hasAllowsOnboardingMail() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return The allowsOnboardingMail. + */ + @java.lang.Override + public boolean getAllowsOnboardingMail() { + return allowsOnboardingMail_; + } + /** + * optional bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @param value The allowsOnboardingMail to set. + * @return This builder for chaining. + */ + public Builder setAllowsOnboardingMail(boolean value) { + + allowsOnboardingMail_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return This builder for chaining. + */ + public Builder clearAllowsOnboardingMail() { + bitField0_ = (bitField0_ & ~0x00000004); + allowsOnboardingMail_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateUserRequest.EmailNotificationSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateUserRequest.EmailNotificationSettings) + private static final io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailNotificationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceTimeoutSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + boolean hasInactivity(); + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + com.google.protobuf.Duration getInactivity(); + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + com.google.protobuf.DurationOrBuilder getInactivityOrBuilder(); + + /** + * optional bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return Whether the disabledDisconnected field is set. + */ + boolean hasDisabledDisconnected(); + /** + * optional bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return The disabledDisconnected. + */ + boolean getDisabledDisconnected(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings} + */ + public static final class WorkspaceTimeoutSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings) + WorkspaceTimeoutSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceTimeoutSettings.class.getName()); + } + // Use WorkspaceTimeoutSettings.newBuilder() to construct. + private WorkspaceTimeoutSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceTimeoutSettings() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.Builder.class); + } + + private int bitField0_; + public static final int INACTIVITY_FIELD_NUMBER = 1; + private com.google.protobuf.Duration inactivity_; + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + @java.lang.Override + public boolean hasInactivity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + @java.lang.Override + public com.google.protobuf.Duration getInactivity() { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + + public static final int DISABLED_DISCONNECTED_FIELD_NUMBER = 2; + private boolean disabledDisconnected_ = false; + /** + * optional bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return Whether the disabledDisconnected field is set. + */ + @java.lang.Override + public boolean hasDisabledDisconnected() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return The disabledDisconnected. + */ + @java.lang.Override + public boolean getDisabledDisconnected() { + return disabledDisconnected_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInactivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, disabledDisconnected_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInactivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, disabledDisconnected_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings other = (io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings) obj; + + if (hasInactivity() != other.hasInactivity()) return false; + if (hasInactivity()) { + if (!getInactivity() + .equals(other.getInactivity())) return false; + } + if (hasDisabledDisconnected() != other.hasDisabledDisconnected()) return false; + if (hasDisabledDisconnected()) { + if (getDisabledDisconnected() + != other.getDisabledDisconnected()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInactivity()) { + hash = (37 * hash) + INACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getInactivity().hashCode(); + } + if (hasDisabledDisconnected()) { + hash = (37 * hash) + DISABLED_DISCONNECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabledDisconnected()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings) + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getInactivityFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inactivity_ = null; + if (inactivityBuilder_ != null) { + inactivityBuilder_.dispose(); + inactivityBuilder_ = null; + } + disabledDisconnected_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings build() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings result = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inactivity_ = inactivityBuilder_ == null + ? inactivity_ + : inactivityBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disabledDisconnected_ = disabledDisconnected_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.getDefaultInstance()) return this; + if (other.hasInactivity()) { + mergeInactivity(other.getInactivity()); + } + if (other.hasDisabledDisconnected()) { + setDisabledDisconnected(other.getDisabledDisconnected()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getInactivityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + disabledDisconnected_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Duration inactivity_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> inactivityBuilder_; + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + public boolean hasInactivity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + public com.google.protobuf.Duration getInactivity() { + if (inactivityBuilder_ == null) { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } else { + return inactivityBuilder_.getMessage(); + } + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder setInactivity(com.google.protobuf.Duration value) { + if (inactivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inactivity_ = value; + } else { + inactivityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder setInactivity( + com.google.protobuf.Duration.Builder builderForValue) { + if (inactivityBuilder_ == null) { + inactivity_ = builderForValue.build(); + } else { + inactivityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder mergeInactivity(com.google.protobuf.Duration value) { + if (inactivityBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + inactivity_ != null && + inactivity_ != com.google.protobuf.Duration.getDefaultInstance()) { + getInactivityBuilder().mergeFrom(value); + } else { + inactivity_ = value; + } + } else { + inactivityBuilder_.mergeFrom(value); + } + if (inactivity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder clearInactivity() { + bitField0_ = (bitField0_ & ~0x00000001); + inactivity_ = null; + if (inactivityBuilder_ != null) { + inactivityBuilder_.dispose(); + inactivityBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public com.google.protobuf.Duration.Builder getInactivityBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInactivityFieldBuilder().getBuilder(); + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() { + if (inactivityBuilder_ != null) { + return inactivityBuilder_.getMessageOrBuilder(); + } else { + return inactivity_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + } + /** + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getInactivityFieldBuilder() { + if (inactivityBuilder_ == null) { + inactivityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getInactivity(), + getParentForChildren(), + isClean()); + inactivity_ = null; + } + return inactivityBuilder_; + } + + private boolean disabledDisconnected_ ; + /** + * optional bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return Whether the disabledDisconnected field is set. + */ + @java.lang.Override + public boolean hasDisabledDisconnected() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return The disabledDisconnected. + */ + @java.lang.Override + public boolean getDisabledDisconnected() { + return disabledDisconnected_; + } + /** + * optional bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @param value The disabledDisconnected to set. + * @return This builder for chaining. + */ + public Builder setDisabledDisconnected(boolean value) { + + disabledDisconnected_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return This builder for chaining. + */ + public Builder clearDisabledDisconnected() { + bitField0_ = (bitField0_ & ~0x00000002); + disabledDisconnected_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings) + private static final io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceTimeoutSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCEPTED_PRIVACY_POLICY_DATE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object acceptedPrivacyPolicyDate_ = ""; + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return Whether the acceptedPrivacyPolicyDate field is set. + */ + @java.lang.Override + public boolean hasAcceptedPrivacyPolicyDate() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The acceptedPrivacyPolicyDate. + */ + @java.lang.Override + public java.lang.String getAcceptedPrivacyPolicyDate() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceptedPrivacyPolicyDate_ = s; + return s; + } + } + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The bytes for acceptedPrivacyPolicyDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAcceptedPrivacyPolicyDateBytes() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceptedPrivacyPolicyDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROFILE_FIELD_NUMBER = 4; + private io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails profile_; + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + * @return Whether the profile field is set. + */ + @java.lang.Override + public boolean hasProfile() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + * @return The profile. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails getProfile() { + return profile_ == null ? io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.getDefaultInstance() : profile_; + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetailsOrBuilder getProfileOrBuilder() { + return profile_ == null ? io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.getDefaultInstance() : profile_; + } + + public static final int EMAIL_ADDRESS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object emailAddress_ = ""; + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return Whether the emailAddress field is set. + */ + @java.lang.Override + public boolean hasEmailAddress() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return The emailAddress. + */ + @java.lang.Override + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } + } + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return The bytes for emailAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EDITOR_SETTINGS_FIELD_NUMBER = 6; + private io.gitpod.publicapi.v1.Editor.EditorReference editorSettings_; + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + @java.lang.Override + public boolean hasEditorSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings() { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder() { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + + public static final int EMAIL_NOTIFICATION_SETTINGS_FIELD_NUMBER = 7; + private io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings emailNotificationSettings_; + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + * @return Whether the emailNotificationSettings field is set. + */ + @java.lang.Override + public boolean hasEmailNotificationSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + * @return The emailNotificationSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings getEmailNotificationSettings() { + return emailNotificationSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.getDefaultInstance() : emailNotificationSettings_; + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettingsOrBuilder getEmailNotificationSettingsOrBuilder() { + return emailNotificationSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.getDefaultInstance() : emailNotificationSettings_; + } + + public static final int WORKSPACE_TIMEOUT_SETTINGS_FIELD_NUMBER = 8; + private io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings workspaceTimeoutSettings_; + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + * @return Whether the workspaceTimeoutSettings field is set. + */ + @java.lang.Override + public boolean hasWorkspaceTimeoutSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + * @return The workspaceTimeoutSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings getWorkspaceTimeoutSettings() { + return workspaceTimeoutSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.getDefaultInstance() : workspaceTimeoutSettings_; + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettingsOrBuilder getWorkspaceTimeoutSettingsOrBuilder() { + return workspaceTimeoutSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.getDefaultInstance() : workspaceTimeoutSettings_; + } + + public static final int DOTFILE_REPO_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object dotfileRepo_ = ""; + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return Whether the dotfileRepo field is set. + */ + @java.lang.Override + public boolean hasDotfileRepo() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return The dotfileRepo. + */ + @java.lang.Override + public java.lang.String getDotfileRepo() { + java.lang.Object ref = dotfileRepo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dotfileRepo_ = s; + return s; + } + } + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return The bytes for dotfileRepo. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDotfileRepoBytes() { + java.lang.Object ref = dotfileRepo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dotfileRepo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, acceptedPrivacyPolicyDate_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getProfile()); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, emailAddress_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getEditorSettings()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(7, getEmailNotificationSettings()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(8, getWorkspaceTimeoutSettings()); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, dotfileRepo_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, acceptedPrivacyPolicyDate_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getProfile()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, emailAddress_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getEditorSettings()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getEmailNotificationSettings()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getWorkspaceTimeoutSettings()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, dotfileRepo_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest other = (io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasAcceptedPrivacyPolicyDate() != other.hasAcceptedPrivacyPolicyDate()) return false; + if (hasAcceptedPrivacyPolicyDate()) { + if (!getAcceptedPrivacyPolicyDate() + .equals(other.getAcceptedPrivacyPolicyDate())) return false; + } + if (hasProfile() != other.hasProfile()) return false; + if (hasProfile()) { + if (!getProfile() + .equals(other.getProfile())) return false; + } + if (hasEmailAddress() != other.hasEmailAddress()) return false; + if (hasEmailAddress()) { + if (!getEmailAddress() + .equals(other.getEmailAddress())) return false; + } + if (hasEditorSettings() != other.hasEditorSettings()) return false; + if (hasEditorSettings()) { + if (!getEditorSettings() + .equals(other.getEditorSettings())) return false; + } + if (hasEmailNotificationSettings() != other.hasEmailNotificationSettings()) return false; + if (hasEmailNotificationSettings()) { + if (!getEmailNotificationSettings() + .equals(other.getEmailNotificationSettings())) return false; + } + if (hasWorkspaceTimeoutSettings() != other.hasWorkspaceTimeoutSettings()) return false; + if (hasWorkspaceTimeoutSettings()) { + if (!getWorkspaceTimeoutSettings() + .equals(other.getWorkspaceTimeoutSettings())) return false; + } + if (hasDotfileRepo() != other.hasDotfileRepo()) return false; + if (hasDotfileRepo()) { + if (!getDotfileRepo() + .equals(other.getDotfileRepo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasAcceptedPrivacyPolicyDate()) { + hash = (37 * hash) + ACCEPTED_PRIVACY_POLICY_DATE_FIELD_NUMBER; + hash = (53 * hash) + getAcceptedPrivacyPolicyDate().hashCode(); + } + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + if (hasEmailAddress()) { + hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddress().hashCode(); + } + if (hasEditorSettings()) { + hash = (37 * hash) + EDITOR_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEditorSettings().hashCode(); + } + if (hasEmailNotificationSettings()) { + hash = (37 * hash) + EMAIL_NOTIFICATION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEmailNotificationSettings().hashCode(); + } + if (hasWorkspaceTimeoutSettings()) { + hash = (37 * hash) + WORKSPACE_TIMEOUT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceTimeoutSettings().hashCode(); + } + if (hasDotfileRepo()) { + hash = (37 * hash) + DOTFILE_REPO_FIELD_NUMBER; + hash = (53 * hash) + getDotfileRepo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateUserRequest) + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getProfileFieldBuilder(); + getEditorSettingsFieldBuilder(); + getEmailNotificationSettingsFieldBuilder(); + getWorkspaceTimeoutSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + name_ = ""; + acceptedPrivacyPolicyDate_ = ""; + profile_ = null; + if (profileBuilder_ != null) { + profileBuilder_.dispose(); + profileBuilder_ = null; + } + emailAddress_ = ""; + editorSettings_ = null; + if (editorSettingsBuilder_ != null) { + editorSettingsBuilder_.dispose(); + editorSettingsBuilder_ = null; + } + emailNotificationSettings_ = null; + if (emailNotificationSettingsBuilder_ != null) { + emailNotificationSettingsBuilder_.dispose(); + emailNotificationSettingsBuilder_ = null; + } + workspaceTimeoutSettings_ = null; + if (workspaceTimeoutSettingsBuilder_ != null) { + workspaceTimeoutSettingsBuilder_.dispose(); + workspaceTimeoutSettingsBuilder_ = null; + } + dotfileRepo_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest build() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest result = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.acceptedPrivacyPolicyDate_ = acceptedPrivacyPolicyDate_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.profile_ = profileBuilder_ == null + ? profile_ + : profileBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.emailAddress_ = emailAddress_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.editorSettings_ = editorSettingsBuilder_ == null + ? editorSettings_ + : editorSettingsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.emailNotificationSettings_ = emailNotificationSettingsBuilder_ == null + ? emailNotificationSettings_ + : emailNotificationSettingsBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.workspaceTimeoutSettings_ = workspaceTimeoutSettingsBuilder_ == null + ? workspaceTimeoutSettings_ + : workspaceTimeoutSettingsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.dotfileRepo_ = dotfileRepo_; + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAcceptedPrivacyPolicyDate()) { + acceptedPrivacyPolicyDate_ = other.acceptedPrivacyPolicyDate_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (other.hasEmailAddress()) { + emailAddress_ = other.emailAddress_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasEditorSettings()) { + mergeEditorSettings(other.getEditorSettings()); + } + if (other.hasEmailNotificationSettings()) { + mergeEmailNotificationSettings(other.getEmailNotificationSettings()); + } + if (other.hasWorkspaceTimeoutSettings()) { + mergeWorkspaceTimeoutSettings(other.getWorkspaceTimeoutSettings()); + } + if (other.hasDotfileRepo()) { + dotfileRepo_ = other.dotfileRepo_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + acceptedPrivacyPolicyDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + emailAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getEditorSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getEmailNotificationSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getWorkspaceTimeoutSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + dotfileRepo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 2 [json_name = "name"]; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 2 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string name = 2 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string name = 2 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string name = 2 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object acceptedPrivacyPolicyDate_ = ""; + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return Whether the acceptedPrivacyPolicyDate field is set. + */ + public boolean hasAcceptedPrivacyPolicyDate() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The acceptedPrivacyPolicyDate. + */ + public java.lang.String getAcceptedPrivacyPolicyDate() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceptedPrivacyPolicyDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The bytes for acceptedPrivacyPolicyDate. + */ + public com.google.protobuf.ByteString + getAcceptedPrivacyPolicyDateBytes() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceptedPrivacyPolicyDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @param value The acceptedPrivacyPolicyDate to set. + * @return This builder for chaining. + */ + public Builder setAcceptedPrivacyPolicyDate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + acceptedPrivacyPolicyDate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @return This builder for chaining. + */ + public Builder clearAcceptedPrivacyPolicyDate() { + acceptedPrivacyPolicyDate_ = getDefaultInstance().getAcceptedPrivacyPolicyDate(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string accepted_privacy_policy_date = 3 [json_name = "acceptedPrivacyPolicyDate"]; + * @param value The bytes for acceptedPrivacyPolicyDate to set. + * @return This builder for chaining. + */ + public Builder setAcceptedPrivacyPolicyDateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + acceptedPrivacyPolicyDate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails profile_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.Builder, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetailsOrBuilder> profileBuilder_; + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + * @return Whether the profile field is set. + */ + public boolean hasProfile() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + * @return The profile. + */ + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails getProfile() { + if (profileBuilder_ == null) { + return profile_ == null ? io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.getDefaultInstance() : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + */ + public Builder setProfile(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + } else { + profileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + */ + public Builder setProfile( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + */ + public Builder mergeProfile(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails value) { + if (profileBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + profile_ != null && + profile_ != io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.getDefaultInstance()) { + getProfileBuilder().mergeFrom(value); + } else { + profile_ = value; + } + } else { + profileBuilder_.mergeFrom(value); + } + if (profile_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + */ + public Builder clearProfile() { + bitField0_ = (bitField0_ & ~0x00000008); + profile_ = null; + if (profileBuilder_ != null) { + profileBuilder_.dispose(); + profileBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.Builder getProfileBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetailsOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.getDefaultInstance() : profile_; + } + } + /** + * optional .gitpod.v1.UpdateUserRequest.ProfileDetails profile = 4 [json_name = "profile"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.Builder, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetailsOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetails.Builder, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.ProfileDetailsOrBuilder>( + getProfile(), + getParentForChildren(), + isClean()); + profile_ = null; + } + return profileBuilder_; + } + + private java.lang.Object emailAddress_ = ""; + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return Whether the emailAddress field is set. + */ + public boolean hasEmailAddress() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return The emailAddress. + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return The bytes for emailAddress. + */ + public com.google.protobuf.ByteString + getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @param value The emailAddress to set. + * @return This builder for chaining. + */ + public Builder setEmailAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + emailAddress_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @return This builder for chaining. + */ + public Builder clearEmailAddress() { + emailAddress_ = getDefaultInstance().getEmailAddress(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string email_address = 5 [json_name = "emailAddress"]; + * @param value The bytes for emailAddress to set. + * @return This builder for chaining. + */ + public Builder setEmailAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + emailAddress_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Editor.EditorReference editorSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> editorSettingsBuilder_; + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + public boolean hasEditorSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + public io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings() { + if (editorSettingsBuilder_ == null) { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } else { + return editorSettingsBuilder_.getMessage(); + } + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + */ + public Builder setEditorSettings(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + editorSettings_ = value; + } else { + editorSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + */ + public Builder setEditorSettings( + io.gitpod.publicapi.v1.Editor.EditorReference.Builder builderForValue) { + if (editorSettingsBuilder_ == null) { + editorSettings_ = builderForValue.build(); + } else { + editorSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + */ + public Builder mergeEditorSettings(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + editorSettings_ != null && + editorSettings_ != io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance()) { + getEditorSettingsBuilder().mergeFrom(value); + } else { + editorSettings_ = value; + } + } else { + editorSettingsBuilder_.mergeFrom(value); + } + if (editorSettings_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + */ + public Builder clearEditorSettings() { + bitField0_ = (bitField0_ & ~0x00000020); + editorSettings_ = null; + if (editorSettingsBuilder_ != null) { + editorSettingsBuilder_.dispose(); + editorSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReference.Builder getEditorSettingsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEditorSettingsFieldBuilder().getBuilder(); + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder() { + if (editorSettingsBuilder_ != null) { + return editorSettingsBuilder_.getMessageOrBuilder(); + } else { + return editorSettings_ == null ? + io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + } + /** + * optional .gitpod.v1.EditorReference editor_settings = 6 [json_name = "editorSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> + getEditorSettingsFieldBuilder() { + if (editorSettingsBuilder_ == null) { + editorSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder>( + getEditorSettings(), + getParentForChildren(), + isClean()); + editorSettings_ = null; + } + return editorSettingsBuilder_; + } + + private io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings emailNotificationSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettingsOrBuilder> emailNotificationSettingsBuilder_; + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + * @return Whether the emailNotificationSettings field is set. + */ + public boolean hasEmailNotificationSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + * @return The emailNotificationSettings. + */ + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings getEmailNotificationSettings() { + if (emailNotificationSettingsBuilder_ == null) { + return emailNotificationSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.getDefaultInstance() : emailNotificationSettings_; + } else { + return emailNotificationSettingsBuilder_.getMessage(); + } + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + */ + public Builder setEmailNotificationSettings(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings value) { + if (emailNotificationSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + emailNotificationSettings_ = value; + } else { + emailNotificationSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + */ + public Builder setEmailNotificationSettings( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.Builder builderForValue) { + if (emailNotificationSettingsBuilder_ == null) { + emailNotificationSettings_ = builderForValue.build(); + } else { + emailNotificationSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + */ + public Builder mergeEmailNotificationSettings(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings value) { + if (emailNotificationSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + emailNotificationSettings_ != null && + emailNotificationSettings_ != io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.getDefaultInstance()) { + getEmailNotificationSettingsBuilder().mergeFrom(value); + } else { + emailNotificationSettings_ = value; + } + } else { + emailNotificationSettingsBuilder_.mergeFrom(value); + } + if (emailNotificationSettings_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + */ + public Builder clearEmailNotificationSettings() { + bitField0_ = (bitField0_ & ~0x00000040); + emailNotificationSettings_ = null; + if (emailNotificationSettingsBuilder_ != null) { + emailNotificationSettingsBuilder_.dispose(); + emailNotificationSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.Builder getEmailNotificationSettingsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getEmailNotificationSettingsFieldBuilder().getBuilder(); + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettingsOrBuilder getEmailNotificationSettingsOrBuilder() { + if (emailNotificationSettingsBuilder_ != null) { + return emailNotificationSettingsBuilder_.getMessageOrBuilder(); + } else { + return emailNotificationSettings_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.getDefaultInstance() : emailNotificationSettings_; + } + } + /** + * optional .gitpod.v1.UpdateUserRequest.EmailNotificationSettings email_notification_settings = 7 [json_name = "emailNotificationSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettingsOrBuilder> + getEmailNotificationSettingsFieldBuilder() { + if (emailNotificationSettingsBuilder_ == null) { + emailNotificationSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.EmailNotificationSettingsOrBuilder>( + getEmailNotificationSettings(), + getParentForChildren(), + isClean()); + emailNotificationSettings_ = null; + } + return emailNotificationSettingsBuilder_; + } + + private io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings workspaceTimeoutSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettingsOrBuilder> workspaceTimeoutSettingsBuilder_; + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + * @return Whether the workspaceTimeoutSettings field is set. + */ + public boolean hasWorkspaceTimeoutSettings() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + * @return The workspaceTimeoutSettings. + */ + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings getWorkspaceTimeoutSettings() { + if (workspaceTimeoutSettingsBuilder_ == null) { + return workspaceTimeoutSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.getDefaultInstance() : workspaceTimeoutSettings_; + } else { + return workspaceTimeoutSettingsBuilder_.getMessage(); + } + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + */ + public Builder setWorkspaceTimeoutSettings(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings value) { + if (workspaceTimeoutSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspaceTimeoutSettings_ = value; + } else { + workspaceTimeoutSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + */ + public Builder setWorkspaceTimeoutSettings( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.Builder builderForValue) { + if (workspaceTimeoutSettingsBuilder_ == null) { + workspaceTimeoutSettings_ = builderForValue.build(); + } else { + workspaceTimeoutSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + */ + public Builder mergeWorkspaceTimeoutSettings(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings value) { + if (workspaceTimeoutSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + workspaceTimeoutSettings_ != null && + workspaceTimeoutSettings_ != io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.getDefaultInstance()) { + getWorkspaceTimeoutSettingsBuilder().mergeFrom(value); + } else { + workspaceTimeoutSettings_ = value; + } + } else { + workspaceTimeoutSettingsBuilder_.mergeFrom(value); + } + if (workspaceTimeoutSettings_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + */ + public Builder clearWorkspaceTimeoutSettings() { + bitField0_ = (bitField0_ & ~0x00000080); + workspaceTimeoutSettings_ = null; + if (workspaceTimeoutSettingsBuilder_ != null) { + workspaceTimeoutSettingsBuilder_.dispose(); + workspaceTimeoutSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.Builder getWorkspaceTimeoutSettingsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getWorkspaceTimeoutSettingsFieldBuilder().getBuilder(); + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettingsOrBuilder getWorkspaceTimeoutSettingsOrBuilder() { + if (workspaceTimeoutSettingsBuilder_ != null) { + return workspaceTimeoutSettingsBuilder_.getMessageOrBuilder(); + } else { + return workspaceTimeoutSettings_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.getDefaultInstance() : workspaceTimeoutSettings_; + } + } + /** + * optional .gitpod.v1.UpdateUserRequest.WorkspaceTimeoutSettings workspace_timeout_settings = 8 [json_name = "workspaceTimeoutSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettingsOrBuilder> + getWorkspaceTimeoutSettingsFieldBuilder() { + if (workspaceTimeoutSettingsBuilder_ == null) { + workspaceTimeoutSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest.WorkspaceTimeoutSettingsOrBuilder>( + getWorkspaceTimeoutSettings(), + getParentForChildren(), + isClean()); + workspaceTimeoutSettings_ = null; + } + return workspaceTimeoutSettingsBuilder_; + } + + private java.lang.Object dotfileRepo_ = ""; + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return Whether the dotfileRepo field is set. + */ + public boolean hasDotfileRepo() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return The dotfileRepo. + */ + public java.lang.String getDotfileRepo() { + java.lang.Object ref = dotfileRepo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dotfileRepo_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return The bytes for dotfileRepo. + */ + public com.google.protobuf.ByteString + getDotfileRepoBytes() { + java.lang.Object ref = dotfileRepo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dotfileRepo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @param value The dotfileRepo to set. + * @return This builder for chaining. + */ + public Builder setDotfileRepo( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + dotfileRepo_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @return This builder for chaining. + */ + public Builder clearDotfileRepo() { + dotfileRepo_ = getDefaultInstance().getDotfileRepo(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * optional string dotfile_repo = 9 [json_name = "dotfileRepo"]; + * @param value The bytes for dotfileRepo to set. + * @return This builder for chaining. + */ + public Builder setDotfileRepoBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + dotfileRepo_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateUserRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateUserRequest) + private static final io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateUserResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + io.gitpod.publicapi.v1.UserOuterClass.User getUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserResponse} + */ + public static final class UpdateUserResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateUserResponse) + UpdateUserResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateUserResponse.class.getName()); + } + // Use UpdateUserResponse.newBuilder() to construct. + private UpdateUserResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateUserResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse.Builder.class); + } + + private int bitField0_; + public static final int USER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUser()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUser()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse other = (io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateUserResponse) + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUserFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_UpdateUserResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse build() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse result = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> userBuilder_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + if (userBuilder_ == null) { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + } else { + userBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser( + io.gitpod.publicapi.v1.UserOuterClass.User.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder mergeUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + user_ != null && + user_ != io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance()) { + getUserBuilder().mergeFrom(value); + } else { + user_ = value; + } + } else { + userBuilder_.mergeFrom(value); + } + if (user_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder clearUser() { + bitField0_ = (bitField0_ & ~0x00000001); + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.Builder getUserBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateUserResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateUserResponse) + private static final io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUserResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteUserRequest} + */ + public static final class DeleteUserRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteUserRequest) + DeleteUserRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteUserRequest.class.getName()); + } + // Use DeleteUserRequest.newBuilder() to construct. + private DeleteUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteUserRequest() { + userId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest.Builder.class); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest other = (io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteUserRequest) + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest build() { + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest result = new io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteUserRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteUserRequest) + private static final io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteUserResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteUserResponse} + */ + public static final class DeleteUserResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteUserResponse) + DeleteUserResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteUserResponse.class.getName()); + } + // Use DeleteUserResponse.newBuilder() to construct. + private DeleteUserResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteUserResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse other = (io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteUserResponse) + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_DeleteUserResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse build() { + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse result = new io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteUserResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteUserResponse) + private static final io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUserResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VerifyUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.VerifyUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.VerifyUserRequest} + */ + public static final class VerifyUserRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.VerifyUserRequest) + VerifyUserRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + VerifyUserRequest.class.getName()); + } + // Use VerifyUserRequest.newBuilder() to construct. + private VerifyUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private VerifyUserRequest() { + userId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest.Builder.class); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest other = (io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.VerifyUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.VerifyUserRequest) + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest build() { + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest result = new io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.VerifyUserRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.VerifyUserRequest) + private static final io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VerifyUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.VerifyUserResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + io.gitpod.publicapi.v1.UserOuterClass.User getUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.VerifyUserResponse} + */ + public static final class VerifyUserResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.VerifyUserResponse) + VerifyUserResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + VerifyUserResponse.class.getName()); + } + // Use VerifyUserResponse.newBuilder() to construct. + private VerifyUserResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private VerifyUserResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse.Builder.class); + } + + private int bitField0_; + public static final int USER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUser()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUser()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse other = (io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.VerifyUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.VerifyUserResponse) + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUserFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_VerifyUserResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse build() { + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse result = new io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> userBuilder_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + if (userBuilder_ == null) { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + } else { + userBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser( + io.gitpod.publicapi.v1.UserOuterClass.User.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder mergeUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + user_ != null && + user_ != io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance()) { + getUserBuilder().mergeFrom(value); + } else { + user_ = value; + } + } else { + userBuilder_.mergeFrom(value); + } + if (user_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder clearUser() { + bitField0_ = (bitField0_ & ~0x00000001); + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.Builder getUserBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.VerifyUserResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.VerifyUserResponse) + private static final io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyUserResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.BlockUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * bool blocked = 2 [json_name = "blocked"]; + * @return The blocked. + */ + boolean getBlocked(); + } + /** + * Protobuf type {@code gitpod.v1.BlockUserRequest} + */ + public static final class BlockUserRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.BlockUserRequest) + BlockUserRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + BlockUserRequest.class.getName()); + } + // Use BlockUserRequest.newBuilder() to construct. + private BlockUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private BlockUserRequest() { + userId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest.Builder.class); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLOCKED_FIELD_NUMBER = 2; + private boolean blocked_ = false; + /** + * bool blocked = 2 [json_name = "blocked"]; + * @return The blocked. + */ + @java.lang.Override + public boolean getBlocked() { + return blocked_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + if (blocked_ != false) { + output.writeBool(2, blocked_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + if (blocked_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, blocked_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest other = (io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (getBlocked() + != other.getBlocked()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + BLOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlocked()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.BlockUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.BlockUserRequest) + io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + blocked_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest build() { + io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest result = new io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.blocked_ = blocked_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getBlocked() != false) { + setBlocked(other.getBlocked()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + blocked_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean blocked_ ; + /** + * bool blocked = 2 [json_name = "blocked"]; + * @return The blocked. + */ + @java.lang.Override + public boolean getBlocked() { + return blocked_; + } + /** + * bool blocked = 2 [json_name = "blocked"]; + * @param value The blocked to set. + * @return This builder for chaining. + */ + public Builder setBlocked(boolean value) { + + blocked_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool blocked = 2 [json_name = "blocked"]; + * @return This builder for chaining. + */ + public Builder clearBlocked() { + bitField0_ = (bitField0_ & ~0x00000002); + blocked_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.BlockUserRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.BlockUserRequest) + private static final io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlockUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.BlockUserResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + io.gitpod.publicapi.v1.UserOuterClass.User getUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.BlockUserResponse} + */ + public static final class BlockUserResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.BlockUserResponse) + BlockUserResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + BlockUserResponse.class.getName()); + } + // Use BlockUserResponse.newBuilder() to construct. + private BlockUserResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private BlockUserResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse.Builder.class); + } + + private int bitField0_; + public static final int USER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUser()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUser()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse other = (io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.BlockUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.BlockUserResponse) + io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUserFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_BlockUserResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse build() { + io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse result = new io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> userBuilder_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + if (userBuilder_ == null) { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + } else { + userBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser( + io.gitpod.publicapi.v1.UserOuterClass.User.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder mergeUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + user_ != null && + user_ != io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance()) { + getUserBuilder().mergeFrom(value); + } else { + user_ = value; + } + } else { + userBuilder_.mergeFrom(value); + } + if (user_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder clearUser() { + bitField0_ = (bitField0_ & ~0x00000001); + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.Builder getUserBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.BlockUserResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.BlockUserResponse) + private static final io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockUserResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListUsersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListUsersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string search_term = 1 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + java.lang.String getSearchTerm(); + /** + * string search_term = 1 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + com.google.protobuf.ByteString + getSearchTermBytes(); + + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + java.util.List + getSortList(); + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + io.gitpod.publicapi.v1.Sorting.Sort getSort(int index); + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + int getSortCount(); + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + java.util.List + getSortOrBuilderList(); + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListUsersRequest} + */ + public static final class ListUsersRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListUsersRequest) + ListUsersRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListUsersRequest.class.getName()); + } + // Use ListUsersRequest.newBuilder() to construct. + private ListUsersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListUsersRequest() { + searchTerm_ = ""; + sort_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest.class, io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest.Builder.class); + } + + private int bitField0_; + public static final int SEARCH_TERM_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object searchTerm_ = ""; + /** + * string search_term = 1 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + @java.lang.Override + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } + } + /** + * string search_term = 1 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int SORT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List sort_; + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + @java.lang.Override + public java.util.List getSortList() { + return sort_; + } + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + @java.lang.Override + public java.util.List + getSortOrBuilderList() { + return sort_; + } + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + @java.lang.Override + public int getSortCount() { + return sort_.size(); + } + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.Sort getSort(int index) { + return sort_.get(index); + } + /** + *
+     * Users can be sorted by "creationDate"
+     * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index) { + return sort_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, searchTerm_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + for (int i = 0; i < sort_.size(); i++) { + output.writeMessage(3, sort_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, searchTerm_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + for (int i = 0; i < sort_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, sort_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest other = (io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest) obj; + + if (!getSearchTerm() + .equals(other.getSearchTerm())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getSortList() + .equals(other.getSortList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEARCH_TERM_FIELD_NUMBER; + hash = (53 * hash) + getSearchTerm().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getSortCount() > 0) { + hash = (37 * hash) + SORT_FIELD_NUMBER; + hash = (53 * hash) + getSortList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListUsersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListUsersRequest) + io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest.class, io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getSortFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + searchTerm_ = ""; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (sortBuilder_ == null) { + sort_ = java.util.Collections.emptyList(); + } else { + sort_ = null; + sortBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest build() { + io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest result = new io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest result) { + if (sortBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sort_ = java.util.Collections.unmodifiableList(sort_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sort_ = sort_; + } else { + result.sort_ = sortBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.searchTerm_ = searchTerm_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest.getDefaultInstance()) return this; + if (!other.getSearchTerm().isEmpty()) { + searchTerm_ = other.searchTerm_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (sortBuilder_ == null) { + if (!other.sort_.isEmpty()) { + if (sort_.isEmpty()) { + sort_ = other.sort_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSortIsMutable(); + sort_.addAll(other.sort_); + } + onChanged(); + } + } else { + if (!other.sort_.isEmpty()) { + if (sortBuilder_.isEmpty()) { + sortBuilder_.dispose(); + sortBuilder_ = null; + sort_ = other.sort_; + bitField0_ = (bitField0_ & ~0x00000004); + sortBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSortFieldBuilder() : null; + } else { + sortBuilder_.addAllMessages(other.sort_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + searchTerm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + io.gitpod.publicapi.v1.Sorting.Sort m = + input.readMessage( + io.gitpod.publicapi.v1.Sorting.Sort.parser(), + extensionRegistry); + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(m); + } else { + sortBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object searchTerm_ = ""; + /** + * string search_term = 1 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string search_term = 1 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string search_term = 1 [json_name = "searchTerm"]; + * @param value The searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTerm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + searchTerm_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string search_term = 1 [json_name = "searchTerm"]; + * @return This builder for chaining. + */ + public Builder clearSearchTerm() { + searchTerm_ = getDefaultInstance().getSearchTerm(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string search_term = 1 [json_name = "searchTerm"]; + * @param value The bytes for searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTermBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + searchTerm_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List sort_ = + java.util.Collections.emptyList(); + private void ensureSortIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sort_ = new java.util.ArrayList(sort_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder> sortBuilder_; + + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public java.util.List getSortList() { + if (sortBuilder_ == null) { + return java.util.Collections.unmodifiableList(sort_); + } else { + return sortBuilder_.getMessageList(); + } + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public int getSortCount() { + if (sortBuilder_ == null) { + return sort_.size(); + } else { + return sortBuilder_.getCount(); + } + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort getSort(int index) { + if (sortBuilder_ == null) { + return sort_.get(index); + } else { + return sortBuilder_.getMessage(index); + } + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public Builder setSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.set(index, value); + onChanged(); + } else { + sortBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public Builder setSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.set(index, builderForValue.build()); + onChanged(); + } else { + sortBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public Builder addSort(io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.add(value); + onChanged(); + } else { + sortBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public Builder addSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort value) { + if (sortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortIsMutable(); + sort_.add(index, value); + onChanged(); + } else { + sortBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public Builder addSort( + io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(builderForValue.build()); + onChanged(); + } else { + sortBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public Builder addSort( + int index, io.gitpod.publicapi.v1.Sorting.Sort.Builder builderForValue) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.add(index, builderForValue.build()); + onChanged(); + } else { + sortBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public Builder addAllSort( + java.lang.Iterable values) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sort_); + onChanged(); + } else { + sortBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public Builder clearSort() { + if (sortBuilder_ == null) { + sort_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sortBuilder_.clear(); + } + return this; + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public Builder removeSort(int index) { + if (sortBuilder_ == null) { + ensureSortIsMutable(); + sort_.remove(index); + onChanged(); + } else { + sortBuilder_.remove(index); + } + return this; + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder getSortBuilder( + int index) { + return getSortFieldBuilder().getBuilder(index); + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.SortOrBuilder getSortOrBuilder( + int index) { + if (sortBuilder_ == null) { + return sort_.get(index); } else { + return sortBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public java.util.List + getSortOrBuilderList() { + if (sortBuilder_ != null) { + return sortBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sort_); + } + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder addSortBuilder() { + return getSortFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance()); + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public io.gitpod.publicapi.v1.Sorting.Sort.Builder addSortBuilder( + int index) { + return getSortFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Sorting.Sort.getDefaultInstance()); + } + /** + *
+       * Users can be sorted by "creationDate"
+       * 
+ * + * repeated .gitpod.v1.Sort sort = 3 [json_name = "sort"]; + */ + public java.util.List + getSortBuilderList() { + return getSortFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder> + getSortFieldBuilder() { + if (sortBuilder_ == null) { + sortBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Sorting.Sort, io.gitpod.publicapi.v1.Sorting.Sort.Builder, io.gitpod.publicapi.v1.Sorting.SortOrBuilder>( + sort_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + sort_ = null; + } + return sortBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListUsersRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListUsersRequest) + private static final io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListUsersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListUsersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + java.util.List + getUsersList(); + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.User getUsers(int index); + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + int getUsersCount(); + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + java.util.List + getUsersOrBuilderList(); + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUsersOrBuilder( + int index); + + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListUsersResponse} + */ + public static final class ListUsersResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListUsersResponse) + ListUsersResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListUsersResponse.class.getName()); + } + // Use ListUsersResponse.newBuilder() to construct. + private ListUsersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListUsersResponse() { + users_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse.class, io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse.Builder.class); + } + + private int bitField0_; + public static final int USERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List users_; + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + @java.lang.Override + public java.util.List getUsersList() { + return users_; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + @java.lang.Override + public java.util.List + getUsersOrBuilderList() { + return users_; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + @java.lang.Override + public int getUsersCount() { + return users_.size(); + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User getUsers(int index) { + return users_.get(index); + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUsersOrBuilder( + int index) { + return users_.get(index); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < users_.size(); i++) { + output.writeMessage(1, users_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < users_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, users_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse other = (io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse) obj; + + if (!getUsersList() + .equals(other.getUsersList())) return false; + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUsersCount() > 0) { + hash = (37 * hash) + USERS_FIELD_NUMBER; + hash = (53 * hash) + getUsersList().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListUsersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListUsersResponse) + io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse.class, io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUsersFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + } else { + users_ = null; + usersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_ListUsersResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse build() { + io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse result = new io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse result) { + if (usersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + users_ = java.util.Collections.unmodifiableList(users_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.users_ = users_; + } else { + result.users_ = usersBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse.getDefaultInstance()) return this; + if (usersBuilder_ == null) { + if (!other.users_.isEmpty()) { + if (users_.isEmpty()) { + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUsersIsMutable(); + users_.addAll(other.users_); + } + onChanged(); + } + } else { + if (!other.users_.isEmpty()) { + if (usersBuilder_.isEmpty()) { + usersBuilder_.dispose(); + usersBuilder_ = null; + users_ = other.users_; + bitField0_ = (bitField0_ & ~0x00000001); + usersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getUsersFieldBuilder() : null; + } else { + usersBuilder_.addAllMessages(other.users_); + } + } + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.UserOuterClass.User m = + input.readMessage( + io.gitpod.publicapi.v1.UserOuterClass.User.parser(), + extensionRegistry); + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.add(m); + } else { + usersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List users_ = + java.util.Collections.emptyList(); + private void ensureUsersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + users_ = new java.util.ArrayList(users_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> usersBuilder_; + + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public java.util.List getUsersList() { + if (usersBuilder_ == null) { + return java.util.Collections.unmodifiableList(users_); + } else { + return usersBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public int getUsersCount() { + if (usersBuilder_ == null) { + return users_.size(); + } else { + return usersBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User getUsers(int index) { + if (usersBuilder_ == null) { + return users_.get(index); + } else { + return usersBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public Builder setUsers( + int index, io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.set(index, value); + onChanged(); + } else { + usersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public Builder setUsers( + int index, io.gitpod.publicapi.v1.UserOuterClass.User.Builder builderForValue) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.set(index, builderForValue.build()); + onChanged(); + } else { + usersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public Builder addUsers(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(value); + onChanged(); + } else { + usersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public Builder addUsers( + int index, io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (usersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(index, value); + onChanged(); + } else { + usersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public Builder addUsers( + io.gitpod.publicapi.v1.UserOuterClass.User.Builder builderForValue) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.add(builderForValue.build()); + onChanged(); + } else { + usersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public Builder addUsers( + int index, io.gitpod.publicapi.v1.UserOuterClass.User.Builder builderForValue) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.add(index, builderForValue.build()); + onChanged(); + } else { + usersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public Builder addAllUsers( + java.lang.Iterable values) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, users_); + onChanged(); + } else { + usersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public Builder clearUsers() { + if (usersBuilder_ == null) { + users_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + usersBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public Builder removeUsers(int index) { + if (usersBuilder_ == null) { + ensureUsersIsMutable(); + users_.remove(index); + onChanged(); + } else { + usersBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.Builder getUsersBuilder( + int index) { + return getUsersFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUsersOrBuilder( + int index) { + if (usersBuilder_ == null) { + return users_.get(index); } else { + return usersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public java.util.List + getUsersOrBuilderList() { + if (usersBuilder_ != null) { + return usersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(users_); + } + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.Builder addUsersBuilder() { + return getUsersFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.Builder addUsersBuilder( + int index) { + return getUsersFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.User users = 1 [json_name = "users"]; + */ + public java.util.List + getUsersBuilderList() { + return getUsersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> + getUsersFieldBuilder() { + if (usersBuilder_ == null) { + usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder>( + users_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + users_ = null; + } + return usersBuilder_; + } + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000002); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 2 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListUsersResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListUsersResponse) + private static final io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetUserRequest} + */ + public static final class GetUserRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetUserRequest) + GetUserRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetUserRequest.class.getName()); + } + // Use GetUserRequest.newBuilder() to construct. + private GetUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetUserRequest() { + userId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest.Builder.class); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest other = (io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetUserRequest) + io.gitpod.publicapi.v1.UserOuterClass.GetUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest.class, io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest build() { + io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest result = new io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetUserRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetUserRequest) + private static final io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetUserResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + io.gitpod.publicapi.v1.UserOuterClass.User getUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GetUserResponse} + */ + public static final class GetUserResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetUserResponse) + GetUserResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetUserResponse.class.getName()); + } + // Use GetUserResponse.newBuilder() to construct. + private GetUserResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetUserResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse.Builder.class); + } + + private int bitField0_; + public static final int USER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUser()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUser()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse other = (io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetUserResponse) + io.gitpod.publicapi.v1.UserOuterClass.GetUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse.class, io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUserFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_GetUserResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse build() { + io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse result = new io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> userBuilder_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + if (userBuilder_ == null) { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + } else { + userBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser( + io.gitpod.publicapi.v1.UserOuterClass.User.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder mergeUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + user_ != null && + user_ != io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance()) { + getUserBuilder().mergeFrom(value); + } else { + user_ = value; + } + } else { + userBuilder_.mergeFrom(value); + } + if (user_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder clearUser() { + bitField0_ = (bitField0_ & ~0x00000001); + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.Builder getUserBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetUserResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetUserResponse) + private static final io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetRolesOrPermissionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SetRolesOrPermissionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return A list containing the rolesOrPermissions. + */ + java.util.List getRolesOrPermissionsList(); + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return The count of rolesOrPermissions. + */ + int getRolesOrPermissionsCount(); + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param index The index of the element to return. + * @return The rolesOrPermissions at the given index. + */ + io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission getRolesOrPermissions(int index); + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return A list containing the enum numeric values on the wire for rolesOrPermissions. + */ + java.util.List + getRolesOrPermissionsValueList(); + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of rolesOrPermissions at the given index. + */ + int getRolesOrPermissionsValue(int index); + + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + * @return Whether the resetMask field is set. + */ + boolean hasResetMask(); + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + * @return The resetMask. + */ + com.google.protobuf.FieldMask getResetMask(); + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + */ + com.google.protobuf.FieldMaskOrBuilder getResetMaskOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.SetRolesOrPermissionsRequest} + */ + public static final class SetRolesOrPermissionsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SetRolesOrPermissionsRequest) + SetRolesOrPermissionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SetRolesOrPermissionsRequest.class.getName()); + } + // Use SetRolesOrPermissionsRequest.newBuilder() to construct. + private SetRolesOrPermissionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetRolesOrPermissionsRequest() { + userId_ = ""; + rolesOrPermissions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest.class, io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest.Builder.class); + } + + private int bitField0_; + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLES_OR_PERMISSIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List rolesOrPermissions_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission> rolesOrPermissions_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission>() { + public io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission convert(java.lang.Integer from) { + io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission result = io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission.forNumber(from); + return result == null ? io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission.UNRECOGNIZED : result; + } + }; + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return A list containing the rolesOrPermissions. + */ + @java.lang.Override + public java.util.List getRolesOrPermissionsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission>(rolesOrPermissions_, rolesOrPermissions_converter_); + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return The count of rolesOrPermissions. + */ + @java.lang.Override + public int getRolesOrPermissionsCount() { + return rolesOrPermissions_.size(); + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param index The index of the element to return. + * @return The rolesOrPermissions at the given index. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission getRolesOrPermissions(int index) { + return rolesOrPermissions_converter_.convert(rolesOrPermissions_.get(index)); + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return A list containing the enum numeric values on the wire for rolesOrPermissions. + */ + @java.lang.Override + public java.util.List + getRolesOrPermissionsValueList() { + return rolesOrPermissions_; + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of rolesOrPermissions at the given index. + */ + @java.lang.Override + public int getRolesOrPermissionsValue(int index) { + return rolesOrPermissions_.get(index); + } + private int rolesOrPermissionsMemoizedSerializedSize; + + public static final int RESET_MASK_FIELD_NUMBER = 3; + private com.google.protobuf.FieldMask resetMask_; + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + * @return Whether the resetMask field is set. + */ + @java.lang.Override + public boolean hasResetMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + * @return The resetMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getResetMask() { + return resetMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : resetMask_; + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getResetMaskOrBuilder() { + return resetMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : resetMask_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + if (getRolesOrPermissionsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(rolesOrPermissionsMemoizedSerializedSize); + } + for (int i = 0; i < rolesOrPermissions_.size(); i++) { + output.writeEnumNoTag(rolesOrPermissions_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getResetMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + { + int dataSize = 0; + for (int i = 0; i < rolesOrPermissions_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(rolesOrPermissions_.get(i)); + } + size += dataSize; + if (!getRolesOrPermissionsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }rolesOrPermissionsMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResetMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest other = (io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (!rolesOrPermissions_.equals(other.rolesOrPermissions_)) return false; + if (hasResetMask() != other.hasResetMask()) return false; + if (hasResetMask()) { + if (!getResetMask() + .equals(other.getResetMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + if (getRolesOrPermissionsCount() > 0) { + hash = (37 * hash) + ROLES_OR_PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + rolesOrPermissions_.hashCode(); + } + if (hasResetMask()) { + hash = (37 * hash) + RESET_MASK_FIELD_NUMBER; + hash = (53 * hash) + getResetMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SetRolesOrPermissionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SetRolesOrPermissionsRequest) + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest.class, io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getResetMaskFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + rolesOrPermissions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + resetMask_ = null; + if (resetMaskBuilder_ != null) { + resetMaskBuilder_.dispose(); + resetMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest build() { + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest result = new io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + rolesOrPermissions_ = java.util.Collections.unmodifiableList(rolesOrPermissions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rolesOrPermissions_ = rolesOrPermissions_; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resetMask_ = resetMaskBuilder_ == null + ? resetMask_ + : resetMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.rolesOrPermissions_.isEmpty()) { + if (rolesOrPermissions_.isEmpty()) { + rolesOrPermissions_ = other.rolesOrPermissions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.addAll(other.rolesOrPermissions_); + } + onChanged(); + } + if (other.hasResetMask()) { + mergeResetMask(other.getResetMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.add(tmpRaw); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: { + input.readMessage( + getResetMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + * string user_id = 1 [json_name = "userId"]; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string user_id = 1 [json_name = "userId"]; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List rolesOrPermissions_ = + java.util.Collections.emptyList(); + private void ensureRolesOrPermissionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rolesOrPermissions_ = new java.util.ArrayList(rolesOrPermissions_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return A list containing the rolesOrPermissions. + */ + public java.util.List getRolesOrPermissionsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission>(rolesOrPermissions_, rolesOrPermissions_converter_); + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return The count of rolesOrPermissions. + */ + public int getRolesOrPermissionsCount() { + return rolesOrPermissions_.size(); + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param index The index of the element to return. + * @return The rolesOrPermissions at the given index. + */ + public io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission getRolesOrPermissions(int index) { + return rolesOrPermissions_converter_.convert(rolesOrPermissions_.get(index)); + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param index The index to set the value at. + * @param value The rolesOrPermissions to set. + * @return This builder for chaining. + */ + public Builder setRolesOrPermissions( + int index, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param value The rolesOrPermissions to add. + * @return This builder for chaining. + */ + public Builder addRolesOrPermissions(io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param values The rolesOrPermissions to add. + * @return This builder for chaining. + */ + public Builder addAllRolesOrPermissions( + java.lang.Iterable values) { + ensureRolesOrPermissionsIsMutable(); + for (io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission value : values) { + rolesOrPermissions_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return This builder for chaining. + */ + public Builder clearRolesOrPermissions() { + rolesOrPermissions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @return A list containing the enum numeric values on the wire for rolesOrPermissions. + */ + public java.util.List + getRolesOrPermissionsValueList() { + return java.util.Collections.unmodifiableList(rolesOrPermissions_); + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of rolesOrPermissions at the given index. + */ + public int getRolesOrPermissionsValue(int index) { + return rolesOrPermissions_.get(index); + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for rolesOrPermissions to set. + * @return This builder for chaining. + */ + public Builder setRolesOrPermissionsValue( + int index, int value) { + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.set(index, value); + onChanged(); + return this; + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param value The enum numeric value on the wire for rolesOrPermissions to add. + * @return This builder for chaining. + */ + public Builder addRolesOrPermissionsValue(int value) { + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.add(value); + onChanged(); + return this; + } + /** + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 2 [json_name = "rolesOrPermissions"]; + * @param values The enum numeric values on the wire for rolesOrPermissions to add. + * @return This builder for chaining. + */ + public Builder addAllRolesOrPermissionsValue( + java.lang.Iterable values) { + ensureRolesOrPermissionsIsMutable(); + for (int value : values) { + rolesOrPermissions_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask resetMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> resetMaskBuilder_; + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + * @return Whether the resetMask field is set. + */ + public boolean hasResetMask() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + * @return The resetMask. + */ + public com.google.protobuf.FieldMask getResetMask() { + if (resetMaskBuilder_ == null) { + return resetMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : resetMask_; + } else { + return resetMaskBuilder_.getMessage(); + } + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + */ + public Builder setResetMask(com.google.protobuf.FieldMask value) { + if (resetMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resetMask_ = value; + } else { + resetMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + */ + public Builder setResetMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (resetMaskBuilder_ == null) { + resetMask_ = builderForValue.build(); + } else { + resetMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + */ + public Builder mergeResetMask(com.google.protobuf.FieldMask value) { + if (resetMaskBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + resetMask_ != null && + resetMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getResetMaskBuilder().mergeFrom(value); + } else { + resetMask_ = value; + } + } else { + resetMaskBuilder_.mergeFrom(value); + } + if (resetMask_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + */ + public Builder clearResetMask() { + bitField0_ = (bitField0_ & ~0x00000004); + resetMask_ = null; + if (resetMaskBuilder_ != null) { + resetMaskBuilder_.dispose(); + resetMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + */ + public com.google.protobuf.FieldMask.Builder getResetMaskBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getResetMaskFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + */ + public com.google.protobuf.FieldMaskOrBuilder getResetMaskOrBuilder() { + if (resetMaskBuilder_ != null) { + return resetMaskBuilder_.getMessageOrBuilder(); + } else { + return resetMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : resetMask_; + } + } + /** + * .google.protobuf.FieldMask reset_mask = 3 [json_name = "resetMask"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getResetMaskFieldBuilder() { + if (resetMaskBuilder_ == null) { + resetMaskBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getResetMask(), + getParentForChildren(), + isClean()); + resetMask_ = null; + } + return resetMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SetRolesOrPermissionsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SetRolesOrPermissionsRequest) + private static final io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetRolesOrPermissionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetRolesOrPermissionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SetRolesOrPermissionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + io.gitpod.publicapi.v1.UserOuterClass.User getUser(); + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.SetRolesOrPermissionsResponse} + */ + public static final class SetRolesOrPermissionsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SetRolesOrPermissionsResponse) + SetRolesOrPermissionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SetRolesOrPermissionsResponse.class.getName()); + } + // Use SetRolesOrPermissionsResponse.newBuilder() to construct. + private SetRolesOrPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetRolesOrPermissionsResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse.class, io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse.Builder.class); + } + + private int bitField0_; + public static final int USER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUser()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUser()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse other = (io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse) obj; + + if (hasUser() != other.hasUser()) return false; + if (hasUser()) { + if (!getUser() + .equals(other.getUser())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SetRolesOrPermissionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SetRolesOrPermissionsResponse) + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse.class, io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUserFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_SetRolesOrPermissionsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse build() { + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse result = new io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse.getDefaultInstance()) return this; + if (other.hasUser()) { + mergeUser(other.getUser()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.UserOuterClass.User user_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> userBuilder_; + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return Whether the user field is set. + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + * @return The user. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User getUser() { + if (userBuilder_ == null) { + return user_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + } else { + userBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder setUser( + io.gitpod.publicapi.v1.UserOuterClass.User.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder mergeUser(io.gitpod.publicapi.v1.UserOuterClass.User value) { + if (userBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + user_ != null && + user_ != io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance()) { + getUserBuilder().mergeFrom(value); + } else { + user_ = value; + } + } else { + userBuilder_.mergeFrom(value); + } + if (user_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public Builder clearUser() { + bitField0_ = (bitField0_ & ~0x00000001); + user_ = null; + if (userBuilder_ != null) { + userBuilder_.dispose(); + userBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.Builder getUserBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance() : user_; + } + } + /** + * .gitpod.v1.User user = 1 [json_name = "user"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User, io.gitpod.publicapi.v1.UserOuterClass.User.Builder, io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SetRolesOrPermissionsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SetRolesOrPermissionsResponse) + private static final io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetRolesOrPermissionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.User) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is a UUID of the user
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is a UUID of the user
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * organization_id is the id of the organization this account is owned by.
+     *
+     * +optional if not set, this account is owned by the installation.
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the id of the organization this account is owned by.
+     *
+     * +optional if not set, this account is owned by the installation.
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + *
+     * name is the full name of the user
+     * 
+ * + * string name = 3 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the full name of the user
+     * 
+ * + * string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * avatar_url is a link to the user avatar
+     * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + java.lang.String getAvatarUrl(); + /** + *
+     * avatar_url is a link to the user avatar
+     * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + com.google.protobuf.ByteString + getAvatarUrlBytes(); + + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + java.util.List + getIdentitiesList(); + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.Identity getIdentities(int index); + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + int getIdentitiesCount(); + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + java.util.List + getIdentitiesOrBuilderList(); + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.IdentityOrBuilder getIdentitiesOrBuilder( + int index); + + /** + *
+     * blocked indicates whether the account is blocked, e.g. due to vialoation of ToS.
+     * 
+ * + * bool blocked = 7 [json_name = "blocked"]; + * @return The blocked. + */ + boolean getBlocked(); + + /** + *
+     * last_verification_time is the last time this account was verified.
+     *
+     * +optional if not set, this account is not verified.
+     * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + * @return Whether the lastVerificationTime field is set. + */ + boolean hasLastVerificationTime(); + /** + *
+     * last_verification_time is the last time this account was verified.
+     *
+     * +optional if not set, this account is not verified.
+     * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + * @return The lastVerificationTime. + */ + com.google.protobuf.Timestamp getLastVerificationTime(); + /** + *
+     * last_verification_time is the last time this account was verified.
+     *
+     * +optional if not set, this account is not verified.
+     * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder(); + + /** + *
+     * verification_phone_number is the phone number used for the last verification.
+     * 
+ * + * string verification_phone_number = 9 [json_name = "verificationPhoneNumber"]; + * @return The verificationPhoneNumber. + */ + java.lang.String getVerificationPhoneNumber(); + /** + *
+     * verification_phone_number is the phone number used for the last verification.
+     * 
+ * + * string verification_phone_number = 9 [json_name = "verificationPhoneNumber"]; + * @return The bytes for verificationPhoneNumber. + */ + com.google.protobuf.ByteString + getVerificationPhoneNumberBytes(); + + /** + *
+     * user global workspace timeout settings
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + * @return Whether the workspaceTimeoutSettings field is set. + */ + boolean hasWorkspaceTimeoutSettings(); + /** + *
+     * user global workspace timeout settings
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + * @return The workspaceTimeoutSettings. + */ + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings getWorkspaceTimeoutSettings(); + /** + *
+     * user global workspace timeout settings
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettingsOrBuilder getWorkspaceTimeoutSettingsOrBuilder(); + + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + * @return Whether the emailNotificationSettings field is set. + */ + boolean hasEmailNotificationSettings(); + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + * @return The emailNotificationSettings. + */ + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings getEmailNotificationSettings(); + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettingsOrBuilder getEmailNotificationSettingsOrBuilder(); + + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + boolean hasEditorSettings(); + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings(); + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + */ + io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder(); + + /** + *
+     * Git clone URL pointing to the user's dotfile repo
+     *
+     * // +optional
+     * 
+ * + * string dotfile_repo = 13 [json_name = "dotfileRepo"]; + * @return The dotfileRepo. + */ + java.lang.String getDotfileRepo(); + /** + *
+     * Git clone URL pointing to the user's dotfile repo
+     *
+     * // +optional
+     * 
+ * + * string dotfile_repo = 13 [json_name = "dotfileRepo"]; + * @return The bytes for dotfileRepo. + */ + com.google.protobuf.ByteString + getDotfileRepoBytes(); + + /** + *
+     * preferred workspace class
+     *
+     * +optional
+     * 
+ * + * string workspace_class = 14 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + *
+     * preferred workspace class
+     *
+     * +optional
+     * 
+ * + * string workspace_class = 14 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + + /** + *
+     * additional user profile data
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + * @return Whether the profile field is set. + */ + boolean hasProfile(); + /** + *
+     * additional user profile data
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + * @return The profile. + */ + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails getProfile(); + /** + *
+     * additional user profile data
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetailsOrBuilder getProfileOrBuilder(); + + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + java.util.List + getWorkspaceAutostartOptionsList(); + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption getWorkspaceAutostartOptions(int index); + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + int getWorkspaceAutostartOptionsCount(); + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + java.util.List + getWorkspaceAutostartOptionsOrBuilderList(); + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOptionOrBuilder getWorkspaceAutostartOptionsOrBuilder( + int index); + + /** + *
+     * usage_attribution_id specifies the organization or account to which all of the
+     * user's workspace usage is attributed to, e.g. for billing purposes
+     * 
+ * + * string usage_attribution_id = 17 [json_name = "usageAttributionId"]; + * @return The usageAttributionId. + */ + java.lang.String getUsageAttributionId(); + /** + *
+     * usage_attribution_id specifies the organization or account to which all of the
+     * user's workspace usage is attributed to, e.g. for billing purposes
+     * 
+ * + * string usage_attribution_id = 17 [json_name = "usageAttributionId"]; + * @return The bytes for usageAttributionId. + */ + com.google.protobuf.ByteString + getUsageAttributionIdBytes(); + + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return A list containing the workspaceFeatureFlags. + */ + java.util.List getWorkspaceFeatureFlagsList(); + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return The count of workspaceFeatureFlags. + */ + int getWorkspaceFeatureFlagsCount(); + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param index The index of the element to return. + * @return The workspaceFeatureFlags at the given index. + */ + io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag getWorkspaceFeatureFlags(int index); + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return A list containing the enum numeric values on the wire for workspaceFeatureFlags. + */ + java.util.List + getWorkspaceFeatureFlagsValueList(); + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of workspaceFeatureFlags at the given index. + */ + int getWorkspaceFeatureFlagsValue(int index); + + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return A list containing the rolesOrPermissions. + */ + java.util.List getRolesOrPermissionsList(); + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return The count of rolesOrPermissions. + */ + int getRolesOrPermissionsCount(); + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param index The index of the element to return. + * @return The rolesOrPermissions at the given index. + */ + io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission getRolesOrPermissions(int index); + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return A list containing the enum numeric values on the wire for rolesOrPermissions. + */ + java.util.List + getRolesOrPermissionsValueList(); + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of rolesOrPermissions at the given index. + */ + int getRolesOrPermissionsValue(int index); + } + /** + * Protobuf type {@code gitpod.v1.User} + */ + public static final class User extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.User) + UserOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + User.class.getName()); + } + // Use User.newBuilder() to construct. + private User(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private User() { + id_ = ""; + organizationId_ = ""; + name_ = ""; + avatarUrl_ = ""; + identities_ = java.util.Collections.emptyList(); + verificationPhoneNumber_ = ""; + dotfileRepo_ = ""; + workspaceClass_ = ""; + workspaceAutostartOptions_ = java.util.Collections.emptyList(); + usageAttributionId_ = ""; + workspaceFeatureFlags_ = java.util.Collections.emptyList(); + rolesOrPermissions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.class, io.gitpod.publicapi.v1.UserOuterClass.User.Builder.class); + } + + /** + * Protobuf enum {@code gitpod.v1.User.UserFeatureFlag} + */ + public enum UserFeatureFlag + implements com.google.protobuf.ProtocolMessageEnum { + /** + * USER_FEATURE_FLAG_UNSPECIFIED = 0; + */ + USER_FEATURE_FLAG_UNSPECIFIED(0), + /** + * USER_FEATURE_FLAG_FULL_WORKSPACE_BACKUP = 1; + */ + USER_FEATURE_FLAG_FULL_WORKSPACE_BACKUP(1), + /** + * USER_FEATURE_FLAG_WORKSPACE_CLASS_LIMITING = 2; + */ + USER_FEATURE_FLAG_WORKSPACE_CLASS_LIMITING(2), + /** + * USER_FEATURE_FLAG_WORKSPACE_CONNECTION_LIMITING = 3; + */ + USER_FEATURE_FLAG_WORKSPACE_CONNECTION_LIMITING(3), + /** + * USER_FEATURE_FLAG_WORKSPACE_PSI = 4; + */ + USER_FEATURE_FLAG_WORKSPACE_PSI(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UserFeatureFlag.class.getName()); + } + /** + * USER_FEATURE_FLAG_UNSPECIFIED = 0; + */ + public static final int USER_FEATURE_FLAG_UNSPECIFIED_VALUE = 0; + /** + * USER_FEATURE_FLAG_FULL_WORKSPACE_BACKUP = 1; + */ + public static final int USER_FEATURE_FLAG_FULL_WORKSPACE_BACKUP_VALUE = 1; + /** + * USER_FEATURE_FLAG_WORKSPACE_CLASS_LIMITING = 2; + */ + public static final int USER_FEATURE_FLAG_WORKSPACE_CLASS_LIMITING_VALUE = 2; + /** + * USER_FEATURE_FLAG_WORKSPACE_CONNECTION_LIMITING = 3; + */ + public static final int USER_FEATURE_FLAG_WORKSPACE_CONNECTION_LIMITING_VALUE = 3; + /** + * USER_FEATURE_FLAG_WORKSPACE_PSI = 4; + */ + public static final int USER_FEATURE_FLAG_WORKSPACE_PSI_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserFeatureFlag valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static UserFeatureFlag forNumber(int value) { + switch (value) { + case 0: return USER_FEATURE_FLAG_UNSPECIFIED; + case 1: return USER_FEATURE_FLAG_FULL_WORKSPACE_BACKUP; + case 2: return USER_FEATURE_FLAG_WORKSPACE_CLASS_LIMITING; + case 3: return USER_FEATURE_FLAG_WORKSPACE_CONNECTION_LIMITING; + case 4: return USER_FEATURE_FLAG_WORKSPACE_PSI; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserFeatureFlag> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserFeatureFlag findValueByNumber(int number) { + return UserFeatureFlag.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.User.getDescriptor().getEnumTypes().get(0); + } + + private static final UserFeatureFlag[] VALUES = values(); + + public static UserFeatureFlag valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private UserFeatureFlag(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.User.UserFeatureFlag) + } + + public interface WorkspaceTimeoutSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.User.WorkspaceTimeoutSettings) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + boolean hasInactivity(); + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + com.google.protobuf.Duration getInactivity(); + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + com.google.protobuf.DurationOrBuilder getInactivityOrBuilder(); + + /** + *
+       * control whether to enable the closed timeout of a workspace, i.e. close web ide, disconnect ssh connection
+       *
+       * +optional
+       * 
+ * + * bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return The disabledDisconnected. + */ + boolean getDisabledDisconnected(); + } + /** + * Protobuf type {@code gitpod.v1.User.WorkspaceTimeoutSettings} + */ + public static final class WorkspaceTimeoutSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.User.WorkspaceTimeoutSettings) + WorkspaceTimeoutSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceTimeoutSettings.class.getName()); + } + // Use WorkspaceTimeoutSettings.newBuilder() to construct. + private WorkspaceTimeoutSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceTimeoutSettings() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.class, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.Builder.class); + } + + private int bitField0_; + public static final int INACTIVITY_FIELD_NUMBER = 1; + private com.google.protobuf.Duration inactivity_; + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + @java.lang.Override + public boolean hasInactivity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + @java.lang.Override + public com.google.protobuf.Duration getInactivity() { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + + public static final int DISABLED_DISCONNECTED_FIELD_NUMBER = 2; + private boolean disabledDisconnected_ = false; + /** + *
+       * control whether to enable the closed timeout of a workspace, i.e. close web ide, disconnect ssh connection
+       *
+       * +optional
+       * 
+ * + * bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return The disabledDisconnected. + */ + @java.lang.Override + public boolean getDisabledDisconnected() { + return disabledDisconnected_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInactivity()); + } + if (disabledDisconnected_ != false) { + output.writeBool(2, disabledDisconnected_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInactivity()); + } + if (disabledDisconnected_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, disabledDisconnected_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings other = (io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings) obj; + + if (hasInactivity() != other.hasInactivity()) return false; + if (hasInactivity()) { + if (!getInactivity() + .equals(other.getInactivity())) return false; + } + if (getDisabledDisconnected() + != other.getDisabledDisconnected()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInactivity()) { + hash = (37 * hash) + INACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getInactivity().hashCode(); + } + hash = (37 * hash) + DISABLED_DISCONNECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabledDisconnected()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.User.WorkspaceTimeoutSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.User.WorkspaceTimeoutSettings) + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.class, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getInactivityFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inactivity_ = null; + if (inactivityBuilder_ != null) { + inactivityBuilder_.dispose(); + inactivityBuilder_ = null; + } + disabledDisconnected_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings build() { + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings result = new io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inactivity_ = inactivityBuilder_ == null + ? inactivity_ + : inactivityBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disabledDisconnected_ = disabledDisconnected_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.getDefaultInstance()) return this; + if (other.hasInactivity()) { + mergeInactivity(other.getInactivity()); + } + if (other.getDisabledDisconnected() != false) { + setDisabledDisconnected(other.getDisabledDisconnected()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getInactivityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + disabledDisconnected_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Duration inactivity_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> inactivityBuilder_; + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + public boolean hasInactivity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + public com.google.protobuf.Duration getInactivity() { + if (inactivityBuilder_ == null) { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } else { + return inactivityBuilder_.getMessage(); + } + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder setInactivity(com.google.protobuf.Duration value) { + if (inactivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inactivity_ = value; + } else { + inactivityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder setInactivity( + com.google.protobuf.Duration.Builder builderForValue) { + if (inactivityBuilder_ == null) { + inactivity_ = builderForValue.build(); + } else { + inactivityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder mergeInactivity(com.google.protobuf.Duration value) { + if (inactivityBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + inactivity_ != null && + inactivity_ != com.google.protobuf.Duration.getDefaultInstance()) { + getInactivityBuilder().mergeFrom(value); + } else { + inactivity_ = value; + } + } else { + inactivityBuilder_.mergeFrom(value); + } + if (inactivity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder clearInactivity() { + bitField0_ = (bitField0_ & ~0x00000001); + inactivity_ = null; + if (inactivityBuilder_ != null) { + inactivityBuilder_.dispose(); + inactivityBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public com.google.protobuf.Duration.Builder getInactivityBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInactivityFieldBuilder().getBuilder(); + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() { + if (inactivityBuilder_ != null) { + return inactivityBuilder_.getMessageOrBuilder(); + } else { + return inactivity_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getInactivityFieldBuilder() { + if (inactivityBuilder_ == null) { + inactivityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getInactivity(), + getParentForChildren(), + isClean()); + inactivity_ = null; + } + return inactivityBuilder_; + } + + private boolean disabledDisconnected_ ; + /** + *
+         * control whether to enable the closed timeout of a workspace, i.e. close web ide, disconnect ssh connection
+         *
+         * +optional
+         * 
+ * + * bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return The disabledDisconnected. + */ + @java.lang.Override + public boolean getDisabledDisconnected() { + return disabledDisconnected_; + } + /** + *
+         * control whether to enable the closed timeout of a workspace, i.e. close web ide, disconnect ssh connection
+         *
+         * +optional
+         * 
+ * + * bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @param value The disabledDisconnected to set. + * @return This builder for chaining. + */ + public Builder setDisabledDisconnected(boolean value) { + + disabledDisconnected_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * control whether to enable the closed timeout of a workspace, i.e. close web ide, disconnect ssh connection
+         *
+         * +optional
+         * 
+ * + * bool disabled_disconnected = 2 [json_name = "disabledDisconnected"]; + * @return This builder for chaining. + */ + public Builder clearDisabledDisconnected() { + bitField0_ = (bitField0_ & ~0x00000002); + disabledDisconnected_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.User.WorkspaceTimeoutSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.User.WorkspaceTimeoutSettings) + private static final io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceTimeoutSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EmailNotificationSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.User.EmailNotificationSettings) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * +optional
+       * 
+ * + * bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return The allowsChangelogMail. + */ + boolean getAllowsChangelogMail(); + + /** + *
+       * +optional
+       * 
+ * + * bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return The allowsDevxMail. + */ + boolean getAllowsDevxMail(); + + /** + *
+       * +optional
+       * 
+ * + * bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return The allowsOnboardingMail. + */ + boolean getAllowsOnboardingMail(); + } + /** + * Protobuf type {@code gitpod.v1.User.EmailNotificationSettings} + */ + public static final class EmailNotificationSettings extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.User.EmailNotificationSettings) + EmailNotificationSettingsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + EmailNotificationSettings.class.getName()); + } + // Use EmailNotificationSettings.newBuilder() to construct. + private EmailNotificationSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EmailNotificationSettings() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_EmailNotificationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_EmailNotificationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.class, io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.Builder.class); + } + + public static final int ALLOWS_CHANGELOG_MAIL_FIELD_NUMBER = 1; + private boolean allowsChangelogMail_ = false; + /** + *
+       * +optional
+       * 
+ * + * bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return The allowsChangelogMail. + */ + @java.lang.Override + public boolean getAllowsChangelogMail() { + return allowsChangelogMail_; + } + + public static final int ALLOWS_DEVX_MAIL_FIELD_NUMBER = 2; + private boolean allowsDevxMail_ = false; + /** + *
+       * +optional
+       * 
+ * + * bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return The allowsDevxMail. + */ + @java.lang.Override + public boolean getAllowsDevxMail() { + return allowsDevxMail_; + } + + public static final int ALLOWS_ONBOARDING_MAIL_FIELD_NUMBER = 3; + private boolean allowsOnboardingMail_ = false; + /** + *
+       * +optional
+       * 
+ * + * bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return The allowsOnboardingMail. + */ + @java.lang.Override + public boolean getAllowsOnboardingMail() { + return allowsOnboardingMail_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (allowsChangelogMail_ != false) { + output.writeBool(1, allowsChangelogMail_); + } + if (allowsDevxMail_ != false) { + output.writeBool(2, allowsDevxMail_); + } + if (allowsOnboardingMail_ != false) { + output.writeBool(3, allowsOnboardingMail_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (allowsChangelogMail_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, allowsChangelogMail_); + } + if (allowsDevxMail_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowsDevxMail_); + } + if (allowsOnboardingMail_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, allowsOnboardingMail_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings other = (io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings) obj; + + if (getAllowsChangelogMail() + != other.getAllowsChangelogMail()) return false; + if (getAllowsDevxMail() + != other.getAllowsDevxMail()) return false; + if (getAllowsOnboardingMail() + != other.getAllowsOnboardingMail()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ALLOWS_CHANGELOG_MAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowsChangelogMail()); + hash = (37 * hash) + ALLOWS_DEVX_MAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowsDevxMail()); + hash = (37 * hash) + ALLOWS_ONBOARDING_MAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowsOnboardingMail()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.User.EmailNotificationSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.User.EmailNotificationSettings) + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_EmailNotificationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_EmailNotificationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.class, io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowsChangelogMail_ = false; + allowsDevxMail_ = false; + allowsOnboardingMail_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_EmailNotificationSettings_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings build() { + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings result = new io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allowsChangelogMail_ = allowsChangelogMail_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowsDevxMail_ = allowsDevxMail_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowsOnboardingMail_ = allowsOnboardingMail_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.getDefaultInstance()) return this; + if (other.getAllowsChangelogMail() != false) { + setAllowsChangelogMail(other.getAllowsChangelogMail()); + } + if (other.getAllowsDevxMail() != false) { + setAllowsDevxMail(other.getAllowsDevxMail()); + } + if (other.getAllowsOnboardingMail() != false) { + setAllowsOnboardingMail(other.getAllowsOnboardingMail()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + allowsChangelogMail_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + allowsDevxMail_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + allowsOnboardingMail_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean allowsChangelogMail_ ; + /** + *
+         * +optional
+         * 
+ * + * bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return The allowsChangelogMail. + */ + @java.lang.Override + public boolean getAllowsChangelogMail() { + return allowsChangelogMail_; + } + /** + *
+         * +optional
+         * 
+ * + * bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @param value The allowsChangelogMail to set. + * @return This builder for chaining. + */ + public Builder setAllowsChangelogMail(boolean value) { + + allowsChangelogMail_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * +optional
+         * 
+ * + * bool allows_changelog_mail = 1 [json_name = "allowsChangelogMail"]; + * @return This builder for chaining. + */ + public Builder clearAllowsChangelogMail() { + bitField0_ = (bitField0_ & ~0x00000001); + allowsChangelogMail_ = false; + onChanged(); + return this; + } + + private boolean allowsDevxMail_ ; + /** + *
+         * +optional
+         * 
+ * + * bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return The allowsDevxMail. + */ + @java.lang.Override + public boolean getAllowsDevxMail() { + return allowsDevxMail_; + } + /** + *
+         * +optional
+         * 
+ * + * bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @param value The allowsDevxMail to set. + * @return This builder for chaining. + */ + public Builder setAllowsDevxMail(boolean value) { + + allowsDevxMail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * +optional
+         * 
+ * + * bool allows_devx_mail = 2 [json_name = "allowsDevxMail"]; + * @return This builder for chaining. + */ + public Builder clearAllowsDevxMail() { + bitField0_ = (bitField0_ & ~0x00000002); + allowsDevxMail_ = false; + onChanged(); + return this; + } + + private boolean allowsOnboardingMail_ ; + /** + *
+         * +optional
+         * 
+ * + * bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return The allowsOnboardingMail. + */ + @java.lang.Override + public boolean getAllowsOnboardingMail() { + return allowsOnboardingMail_; + } + /** + *
+         * +optional
+         * 
+ * + * bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @param value The allowsOnboardingMail to set. + * @return This builder for chaining. + */ + public Builder setAllowsOnboardingMail(boolean value) { + + allowsOnboardingMail_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * +optional
+         * 
+ * + * bool allows_onboarding_mail = 3 [json_name = "allowsOnboardingMail"]; + * @return This builder for chaining. + */ + public Builder clearAllowsOnboardingMail() { + bitField0_ = (bitField0_ & ~0x00000004); + allowsOnboardingMail_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.User.EmailNotificationSettings) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.User.EmailNotificationSettings) + private static final io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailNotificationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProfileDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.User.ProfileDetails) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * when was the last time the user updated their profile information or has been nudged to do so.
+       *
+       * +optional
+       * 
+ * + * string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The lastUpdatedDetailsNudge. + */ + java.lang.String getLastUpdatedDetailsNudge(); + /** + *
+       * when was the last time the user updated their profile information or has been nudged to do so.
+       *
+       * +optional
+       * 
+ * + * string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The bytes for lastUpdatedDetailsNudge. + */ + com.google.protobuf.ByteString + getLastUpdatedDetailsNudgeBytes(); + + /** + *
+       * when was the last time the user has accepted our privacy policy
+       *
+       * +optional
+       * 
+ * + * string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The acceptedPrivacyPolicyDate. + */ + java.lang.String getAcceptedPrivacyPolicyDate(); + /** + *
+       * when was the last time the user has accepted our privacy policy
+       *
+       * +optional
+       * 
+ * + * string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The bytes for acceptedPrivacyPolicyDate. + */ + com.google.protobuf.ByteString + getAcceptedPrivacyPolicyDateBytes(); + + /** + *
+       * the user's company name
+       *
+       * +optional
+       * 
+ * + * string company_name = 3 [json_name = "companyName"]; + * @return The companyName. + */ + java.lang.String getCompanyName(); + /** + *
+       * the user's company name
+       *
+       * +optional
+       * 
+ * + * string company_name = 3 [json_name = "companyName"]; + * @return The bytes for companyName. + */ + com.google.protobuf.ByteString + getCompanyNameBytes(); + + /** + *
+       * the user's email
+       *
+       * +optional
+       * 
+ * + * string email_address = 4 [json_name = "emailAddress"]; + * @return The emailAddress. + */ + java.lang.String getEmailAddress(); + /** + *
+       * the user's email
+       *
+       * +optional
+       * 
+ * + * string email_address = 4 [json_name = "emailAddress"]; + * @return The bytes for emailAddress. + */ + com.google.protobuf.ByteString + getEmailAddressBytes(); + + /** + *
+       * type of role user has in their job
+       *
+       * +optional
+       * 
+ * + * string job_role = 5 [json_name = "jobRole"]; + * @return The jobRole. + */ + java.lang.String getJobRole(); + /** + *
+       * type of role user has in their job
+       *
+       * +optional
+       * 
+ * + * string job_role = 5 [json_name = "jobRole"]; + * @return The bytes for jobRole. + */ + com.google.protobuf.ByteString + getJobRoleBytes(); + + /** + *
+       * freeform entry for job role user works in (when jobRole is "other")
+       *
+       * +optional
+       * 
+ * + * string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The jobRoleOther. + */ + java.lang.String getJobRoleOther(); + /** + *
+       * freeform entry for job role user works in (when jobRole is "other")
+       *
+       * +optional
+       * 
+ * + * string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The bytes for jobRoleOther. + */ + com.google.protobuf.ByteString + getJobRoleOtherBytes(); + + /** + *
+       * Reasons user is exploring Gitpod when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return A list containing the explorationReasons. + */ + java.util.List + getExplorationReasonsList(); + /** + *
+       * Reasons user is exploring Gitpod when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return The count of explorationReasons. + */ + int getExplorationReasonsCount(); + /** + *
+       * Reasons user is exploring Gitpod when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the element to return. + * @return The explorationReasons at the given index. + */ + java.lang.String getExplorationReasons(int index); + /** + *
+       * Reasons user is exploring Gitpod when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the value to return. + * @return The bytes of the explorationReasons at the given index. + */ + com.google.protobuf.ByteString + getExplorationReasonsBytes(int index); + + /** + *
+       * what user hopes to accomplish when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return A list containing the signupGoals. + */ + java.util.List + getSignupGoalsList(); + /** + *
+       * what user hopes to accomplish when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return The count of signupGoals. + */ + int getSignupGoalsCount(); + /** + *
+       * what user hopes to accomplish when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the element to return. + * @return The signupGoals at the given index. + */ + java.lang.String getSignupGoals(int index); + /** + *
+       * what user hopes to accomplish when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the value to return. + * @return The bytes of the signupGoals at the given index. + */ + com.google.protobuf.ByteString + getSignupGoalsBytes(int index); + + /** + *
+       * freeform entry for signup goals (when signupGoals is "other")
+       *
+       * +optional
+       * 
+ * + * string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The signupGoalsOther. + */ + java.lang.String getSignupGoalsOther(); + /** + *
+       * freeform entry for signup goals (when signupGoals is "other")
+       *
+       * +optional
+       * 
+ * + * string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The bytes for signupGoalsOther. + */ + com.google.protobuf.ByteString + getSignupGoalsOtherBytes(); + + /** + *
+       * Set after a user completes the onboarding flow
+       *
+       * +optional
+       * 
+ * + * string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The onboardedTimestamp. + */ + java.lang.String getOnboardedTimestamp(); + /** + *
+       * Set after a user completes the onboarding flow
+       *
+       * +optional
+       * 
+ * + * string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The bytes for onboardedTimestamp. + */ + com.google.protobuf.ByteString + getOnboardedTimestampBytes(); + + /** + *
+       * Onboarding question about a user's company size
+       *
+       * +optional
+       * 
+ * + * string company_size = 12 [json_name = "companySize"]; + * @return The companySize. + */ + java.lang.String getCompanySize(); + /** + *
+       * Onboarding question about a user's company size
+       *
+       * +optional
+       * 
+ * + * string company_size = 12 [json_name = "companySize"]; + * @return The bytes for companySize. + */ + com.google.protobuf.ByteString + getCompanySizeBytes(); + + /** + *
+       * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+       *
+       * +optional
+       * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + int getCoachmarksDismissalsCount(); + /** + *
+       * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+       *
+       * +optional
+       * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + boolean containsCoachmarksDismissals( + java.lang.String key); + /** + * Use {@link #getCoachmarksDismissalsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCoachmarksDismissals(); + /** + *
+       * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+       *
+       * +optional
+       * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + java.util.Map + getCoachmarksDismissalsMap(); + /** + *
+       * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+       *
+       * +optional
+       * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + /* nullable */ +java.lang.String getCoachmarksDismissalsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+       * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+       *
+       * +optional
+       * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + java.lang.String getCoachmarksDismissalsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code gitpod.v1.User.ProfileDetails} + */ + public static final class ProfileDetails extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.User.ProfileDetails) + ProfileDetailsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ProfileDetails.class.getName()); + } + // Use ProfileDetails.newBuilder() to construct. + private ProfileDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ProfileDetails() { + lastUpdatedDetailsNudge_ = ""; + acceptedPrivacyPolicyDate_ = ""; + companyName_ = ""; + emailAddress_ = ""; + jobRole_ = ""; + jobRoleOther_ = ""; + explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + signupGoalsOther_ = ""; + onboardedTimestamp_ = ""; + companySize_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_ProfileDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetCoachmarksDismissals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_ProfileDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.class, io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.Builder.class); + } + + public static final int LAST_UPDATED_DETAILS_NUDGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object lastUpdatedDetailsNudge_ = ""; + /** + *
+       * when was the last time the user updated their profile information or has been nudged to do so.
+       *
+       * +optional
+       * 
+ * + * string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The lastUpdatedDetailsNudge. + */ + @java.lang.Override + public java.lang.String getLastUpdatedDetailsNudge() { + java.lang.Object ref = lastUpdatedDetailsNudge_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastUpdatedDetailsNudge_ = s; + return s; + } + } + /** + *
+       * when was the last time the user updated their profile information or has been nudged to do so.
+       *
+       * +optional
+       * 
+ * + * string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The bytes for lastUpdatedDetailsNudge. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLastUpdatedDetailsNudgeBytes() { + java.lang.Object ref = lastUpdatedDetailsNudge_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastUpdatedDetailsNudge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCEPTED_PRIVACY_POLICY_DATE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object acceptedPrivacyPolicyDate_ = ""; + /** + *
+       * when was the last time the user has accepted our privacy policy
+       *
+       * +optional
+       * 
+ * + * string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The acceptedPrivacyPolicyDate. + */ + @java.lang.Override + public java.lang.String getAcceptedPrivacyPolicyDate() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceptedPrivacyPolicyDate_ = s; + return s; + } + } + /** + *
+       * when was the last time the user has accepted our privacy policy
+       *
+       * +optional
+       * 
+ * + * string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The bytes for acceptedPrivacyPolicyDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAcceptedPrivacyPolicyDateBytes() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceptedPrivacyPolicyDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object companyName_ = ""; + /** + *
+       * the user's company name
+       *
+       * +optional
+       * 
+ * + * string company_name = 3 [json_name = "companyName"]; + * @return The companyName. + */ + @java.lang.Override + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } + } + /** + *
+       * the user's company name
+       *
+       * +optional
+       * 
+ * + * string company_name = 3 [json_name = "companyName"]; + * @return The bytes for companyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_ADDRESS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object emailAddress_ = ""; + /** + *
+       * the user's email
+       *
+       * +optional
+       * 
+ * + * string email_address = 4 [json_name = "emailAddress"]; + * @return The emailAddress. + */ + @java.lang.Override + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } + } + /** + *
+       * the user's email
+       *
+       * +optional
+       * 
+ * + * string email_address = 4 [json_name = "emailAddress"]; + * @return The bytes for emailAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_ROLE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object jobRole_ = ""; + /** + *
+       * type of role user has in their job
+       *
+       * +optional
+       * 
+ * + * string job_role = 5 [json_name = "jobRole"]; + * @return The jobRole. + */ + @java.lang.Override + public java.lang.String getJobRole() { + java.lang.Object ref = jobRole_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRole_ = s; + return s; + } + } + /** + *
+       * type of role user has in their job
+       *
+       * +optional
+       * 
+ * + * string job_role = 5 [json_name = "jobRole"]; + * @return The bytes for jobRole. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJobRoleBytes() { + java.lang.Object ref = jobRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_ROLE_OTHER_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object jobRoleOther_ = ""; + /** + *
+       * freeform entry for job role user works in (when jobRole is "other")
+       *
+       * +optional
+       * 
+ * + * string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The jobRoleOther. + */ + @java.lang.Override + public java.lang.String getJobRoleOther() { + java.lang.Object ref = jobRoleOther_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRoleOther_ = s; + return s; + } + } + /** + *
+       * freeform entry for job role user works in (when jobRole is "other")
+       *
+       * +optional
+       * 
+ * + * string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The bytes for jobRoleOther. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJobRoleOtherBytes() { + java.lang.Object ref = jobRoleOther_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobRoleOther_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPLORATION_REASONS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * Reasons user is exploring Gitpod when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return A list containing the explorationReasons. + */ + public com.google.protobuf.ProtocolStringList + getExplorationReasonsList() { + return explorationReasons_; + } + /** + *
+       * Reasons user is exploring Gitpod when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return The count of explorationReasons. + */ + public int getExplorationReasonsCount() { + return explorationReasons_.size(); + } + /** + *
+       * Reasons user is exploring Gitpod when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the element to return. + * @return The explorationReasons at the given index. + */ + public java.lang.String getExplorationReasons(int index) { + return explorationReasons_.get(index); + } + /** + *
+       * Reasons user is exploring Gitpod when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the value to return. + * @return The bytes of the explorationReasons at the given index. + */ + public com.google.protobuf.ByteString + getExplorationReasonsBytes(int index) { + return explorationReasons_.getByteString(index); + } + + public static final int SIGNUP_GOALS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * what user hopes to accomplish when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return A list containing the signupGoals. + */ + public com.google.protobuf.ProtocolStringList + getSignupGoalsList() { + return signupGoals_; + } + /** + *
+       * what user hopes to accomplish when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return The count of signupGoals. + */ + public int getSignupGoalsCount() { + return signupGoals_.size(); + } + /** + *
+       * what user hopes to accomplish when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the element to return. + * @return The signupGoals at the given index. + */ + public java.lang.String getSignupGoals(int index) { + return signupGoals_.get(index); + } + /** + *
+       * what user hopes to accomplish when they signed up
+       *
+       * +optional
+       * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the value to return. + * @return The bytes of the signupGoals at the given index. + */ + public com.google.protobuf.ByteString + getSignupGoalsBytes(int index) { + return signupGoals_.getByteString(index); + } + + public static final int SIGNUP_GOALS_OTHER_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object signupGoalsOther_ = ""; + /** + *
+       * freeform entry for signup goals (when signupGoals is "other")
+       *
+       * +optional
+       * 
+ * + * string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The signupGoalsOther. + */ + @java.lang.Override + public java.lang.String getSignupGoalsOther() { + java.lang.Object ref = signupGoalsOther_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signupGoalsOther_ = s; + return s; + } + } + /** + *
+       * freeform entry for signup goals (when signupGoals is "other")
+       *
+       * +optional
+       * 
+ * + * string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The bytes for signupGoalsOther. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSignupGoalsOtherBytes() { + java.lang.Object ref = signupGoalsOther_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signupGoalsOther_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ONBOARDED_TIMESTAMP_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object onboardedTimestamp_ = ""; + /** + *
+       * Set after a user completes the onboarding flow
+       *
+       * +optional
+       * 
+ * + * string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The onboardedTimestamp. + */ + @java.lang.Override + public java.lang.String getOnboardedTimestamp() { + java.lang.Object ref = onboardedTimestamp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + onboardedTimestamp_ = s; + return s; + } + } + /** + *
+       * Set after a user completes the onboarding flow
+       *
+       * +optional
+       * 
+ * + * string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The bytes for onboardedTimestamp. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOnboardedTimestampBytes() { + java.lang.Object ref = onboardedTimestamp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + onboardedTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_SIZE_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object companySize_ = ""; + /** + *
+       * Onboarding question about a user's company size
+       *
+       * +optional
+       * 
+ * + * string company_size = 12 [json_name = "companySize"]; + * @return The companySize. + */ + @java.lang.Override + public java.lang.String getCompanySize() { + java.lang.Object ref = companySize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companySize_ = s; + return s; + } + } + /** + *
+       * Onboarding question about a user's company size
+       *
+       * +optional
+       * 
+ * + * string company_size = 12 [json_name = "companySize"]; + * @return The bytes for companySize. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCompanySizeBytes() { + java.lang.Object ref = companySize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + companySize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COACHMARKS_DISMISSALS_FIELD_NUMBER = 13; + private static final class CoachmarksDismissalsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_ProfileDetails_CoachmarksDismissalsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> coachmarksDismissals_; + private com.google.protobuf.MapField + internalGetCoachmarksDismissals() { + if (coachmarksDismissals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CoachmarksDismissalsDefaultEntryHolder.defaultEntry); + } + return coachmarksDismissals_; + } + public int getCoachmarksDismissalsCount() { + return internalGetCoachmarksDismissals().getMap().size(); + } + /** + *
+       * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+       *
+       * +optional
+       * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public boolean containsCoachmarksDismissals( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCoachmarksDismissals().getMap().containsKey(key); + } + /** + * Use {@link #getCoachmarksDismissalsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCoachmarksDismissals() { + return getCoachmarksDismissalsMap(); + } + /** + *
+       * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+       *
+       * +optional
+       * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public java.util.Map getCoachmarksDismissalsMap() { + return internalGetCoachmarksDismissals().getMap(); + } + /** + *
+       * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+       *
+       * +optional
+       * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getCoachmarksDismissalsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCoachmarksDismissals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+       *
+       * +optional
+       * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public java.lang.String getCoachmarksDismissalsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCoachmarksDismissals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastUpdatedDetailsNudge_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, lastUpdatedDetailsNudge_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(acceptedPrivacyPolicyDate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, acceptedPrivacyPolicyDate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, companyName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(emailAddress_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, emailAddress_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jobRole_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, jobRole_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jobRoleOther_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, jobRoleOther_); + } + for (int i = 0; i < explorationReasons_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, explorationReasons_.getRaw(i)); + } + for (int i = 0; i < signupGoals_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, signupGoals_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(signupGoalsOther_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, signupGoalsOther_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(onboardedTimestamp_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, onboardedTimestamp_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companySize_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, companySize_); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetCoachmarksDismissals(), + CoachmarksDismissalsDefaultEntryHolder.defaultEntry, + 13); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastUpdatedDetailsNudge_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, lastUpdatedDetailsNudge_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(acceptedPrivacyPolicyDate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, acceptedPrivacyPolicyDate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, companyName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(emailAddress_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, emailAddress_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jobRole_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, jobRole_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jobRoleOther_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, jobRoleOther_); + } + { + int dataSize = 0; + for (int i = 0; i < explorationReasons_.size(); i++) { + dataSize += computeStringSizeNoTag(explorationReasons_.getRaw(i)); + } + size += dataSize; + size += 1 * getExplorationReasonsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < signupGoals_.size(); i++) { + dataSize += computeStringSizeNoTag(signupGoals_.getRaw(i)); + } + size += dataSize; + size += 1 * getSignupGoalsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(signupGoalsOther_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, signupGoalsOther_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(onboardedTimestamp_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, onboardedTimestamp_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companySize_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, companySize_); + } + for (java.util.Map.Entry entry + : internalGetCoachmarksDismissals().getMap().entrySet()) { + com.google.protobuf.MapEntry + coachmarksDismissals__ = CoachmarksDismissalsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, coachmarksDismissals__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails other = (io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails) obj; + + if (!getLastUpdatedDetailsNudge() + .equals(other.getLastUpdatedDetailsNudge())) return false; + if (!getAcceptedPrivacyPolicyDate() + .equals(other.getAcceptedPrivacyPolicyDate())) return false; + if (!getCompanyName() + .equals(other.getCompanyName())) return false; + if (!getEmailAddress() + .equals(other.getEmailAddress())) return false; + if (!getJobRole() + .equals(other.getJobRole())) return false; + if (!getJobRoleOther() + .equals(other.getJobRoleOther())) return false; + if (!getExplorationReasonsList() + .equals(other.getExplorationReasonsList())) return false; + if (!getSignupGoalsList() + .equals(other.getSignupGoalsList())) return false; + if (!getSignupGoalsOther() + .equals(other.getSignupGoalsOther())) return false; + if (!getOnboardedTimestamp() + .equals(other.getOnboardedTimestamp())) return false; + if (!getCompanySize() + .equals(other.getCompanySize())) return false; + if (!internalGetCoachmarksDismissals().equals( + other.internalGetCoachmarksDismissals())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LAST_UPDATED_DETAILS_NUDGE_FIELD_NUMBER; + hash = (53 * hash) + getLastUpdatedDetailsNudge().hashCode(); + hash = (37 * hash) + ACCEPTED_PRIVACY_POLICY_DATE_FIELD_NUMBER; + hash = (53 * hash) + getAcceptedPrivacyPolicyDate().hashCode(); + hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); + hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddress().hashCode(); + hash = (37 * hash) + JOB_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getJobRole().hashCode(); + hash = (37 * hash) + JOB_ROLE_OTHER_FIELD_NUMBER; + hash = (53 * hash) + getJobRoleOther().hashCode(); + if (getExplorationReasonsCount() > 0) { + hash = (37 * hash) + EXPLORATION_REASONS_FIELD_NUMBER; + hash = (53 * hash) + getExplorationReasonsList().hashCode(); + } + if (getSignupGoalsCount() > 0) { + hash = (37 * hash) + SIGNUP_GOALS_FIELD_NUMBER; + hash = (53 * hash) + getSignupGoalsList().hashCode(); + } + hash = (37 * hash) + SIGNUP_GOALS_OTHER_FIELD_NUMBER; + hash = (53 * hash) + getSignupGoalsOther().hashCode(); + hash = (37 * hash) + ONBOARDED_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getOnboardedTimestamp().hashCode(); + hash = (37 * hash) + COMPANY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getCompanySize().hashCode(); + if (!internalGetCoachmarksDismissals().getMap().isEmpty()) { + hash = (37 * hash) + COACHMARKS_DISMISSALS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCoachmarksDismissals().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.User.ProfileDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.User.ProfileDetails) + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_ProfileDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetCoachmarksDismissals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetMutableCoachmarksDismissals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_ProfileDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.class, io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lastUpdatedDetailsNudge_ = ""; + acceptedPrivacyPolicyDate_ = ""; + companyName_ = ""; + emailAddress_ = ""; + jobRole_ = ""; + jobRoleOther_ = ""; + explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + signupGoalsOther_ = ""; + onboardedTimestamp_ = ""; + companySize_ = ""; + internalGetMutableCoachmarksDismissals().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_ProfileDetails_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails build() { + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails result = new io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lastUpdatedDetailsNudge_ = lastUpdatedDetailsNudge_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acceptedPrivacyPolicyDate_ = acceptedPrivacyPolicyDate_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.companyName_ = companyName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.emailAddress_ = emailAddress_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.jobRole_ = jobRole_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.jobRoleOther_ = jobRoleOther_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + explorationReasons_.makeImmutable(); + result.explorationReasons_ = explorationReasons_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + signupGoals_.makeImmutable(); + result.signupGoals_ = signupGoals_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.signupGoalsOther_ = signupGoalsOther_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.onboardedTimestamp_ = onboardedTimestamp_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.companySize_ = companySize_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.coachmarksDismissals_ = internalGetCoachmarksDismissals(); + result.coachmarksDismissals_.makeImmutable(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.getDefaultInstance()) return this; + if (!other.getLastUpdatedDetailsNudge().isEmpty()) { + lastUpdatedDetailsNudge_ = other.lastUpdatedDetailsNudge_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAcceptedPrivacyPolicyDate().isEmpty()) { + acceptedPrivacyPolicyDate_ = other.acceptedPrivacyPolicyDate_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCompanyName().isEmpty()) { + companyName_ = other.companyName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEmailAddress().isEmpty()) { + emailAddress_ = other.emailAddress_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getJobRole().isEmpty()) { + jobRole_ = other.jobRole_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getJobRoleOther().isEmpty()) { + jobRoleOther_ = other.jobRoleOther_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.explorationReasons_.isEmpty()) { + if (explorationReasons_.isEmpty()) { + explorationReasons_ = other.explorationReasons_; + bitField0_ |= 0x00000040; + } else { + ensureExplorationReasonsIsMutable(); + explorationReasons_.addAll(other.explorationReasons_); + } + onChanged(); + } + if (!other.signupGoals_.isEmpty()) { + if (signupGoals_.isEmpty()) { + signupGoals_ = other.signupGoals_; + bitField0_ |= 0x00000080; + } else { + ensureSignupGoalsIsMutable(); + signupGoals_.addAll(other.signupGoals_); + } + onChanged(); + } + if (!other.getSignupGoalsOther().isEmpty()) { + signupGoalsOther_ = other.signupGoalsOther_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getOnboardedTimestamp().isEmpty()) { + onboardedTimestamp_ = other.onboardedTimestamp_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getCompanySize().isEmpty()) { + companySize_ = other.companySize_; + bitField0_ |= 0x00000400; + onChanged(); + } + internalGetMutableCoachmarksDismissals().mergeFrom( + other.internalGetCoachmarksDismissals()); + bitField0_ |= 0x00000800; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + lastUpdatedDetailsNudge_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + acceptedPrivacyPolicyDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + companyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + emailAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + jobRole_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + jobRoleOther_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExplorationReasonsIsMutable(); + explorationReasons_.add(s); + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSignupGoalsIsMutable(); + signupGoals_.add(s); + break; + } // case 66 + case 82: { + signupGoalsOther_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: { + onboardedTimestamp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: { + companySize_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 106: { + com.google.protobuf.MapEntry + coachmarksDismissals__ = input.readMessage( + CoachmarksDismissalsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCoachmarksDismissals().getMutableMap().put( + coachmarksDismissals__.getKey(), coachmarksDismissals__.getValue()); + bitField0_ |= 0x00000800; + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object lastUpdatedDetailsNudge_ = ""; + /** + *
+         * when was the last time the user updated their profile information or has been nudged to do so.
+         *
+         * +optional
+         * 
+ * + * string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The lastUpdatedDetailsNudge. + */ + public java.lang.String getLastUpdatedDetailsNudge() { + java.lang.Object ref = lastUpdatedDetailsNudge_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastUpdatedDetailsNudge_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * when was the last time the user updated their profile information or has been nudged to do so.
+         *
+         * +optional
+         * 
+ * + * string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return The bytes for lastUpdatedDetailsNudge. + */ + public com.google.protobuf.ByteString + getLastUpdatedDetailsNudgeBytes() { + java.lang.Object ref = lastUpdatedDetailsNudge_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastUpdatedDetailsNudge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * when was the last time the user updated their profile information or has been nudged to do so.
+         *
+         * +optional
+         * 
+ * + * string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @param value The lastUpdatedDetailsNudge to set. + * @return This builder for chaining. + */ + public Builder setLastUpdatedDetailsNudge( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + lastUpdatedDetailsNudge_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * when was the last time the user updated their profile information or has been nudged to do so.
+         *
+         * +optional
+         * 
+ * + * string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @return This builder for chaining. + */ + public Builder clearLastUpdatedDetailsNudge() { + lastUpdatedDetailsNudge_ = getDefaultInstance().getLastUpdatedDetailsNudge(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * when was the last time the user updated their profile information or has been nudged to do so.
+         *
+         * +optional
+         * 
+ * + * string last_updated_details_nudge = 1 [json_name = "lastUpdatedDetailsNudge"]; + * @param value The bytes for lastUpdatedDetailsNudge to set. + * @return This builder for chaining. + */ + public Builder setLastUpdatedDetailsNudgeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + lastUpdatedDetailsNudge_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object acceptedPrivacyPolicyDate_ = ""; + /** + *
+         * when was the last time the user has accepted our privacy policy
+         *
+         * +optional
+         * 
+ * + * string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The acceptedPrivacyPolicyDate. + */ + public java.lang.String getAcceptedPrivacyPolicyDate() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceptedPrivacyPolicyDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * when was the last time the user has accepted our privacy policy
+         *
+         * +optional
+         * 
+ * + * string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return The bytes for acceptedPrivacyPolicyDate. + */ + public com.google.protobuf.ByteString + getAcceptedPrivacyPolicyDateBytes() { + java.lang.Object ref = acceptedPrivacyPolicyDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceptedPrivacyPolicyDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * when was the last time the user has accepted our privacy policy
+         *
+         * +optional
+         * 
+ * + * string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @param value The acceptedPrivacyPolicyDate to set. + * @return This builder for chaining. + */ + public Builder setAcceptedPrivacyPolicyDate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + acceptedPrivacyPolicyDate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * when was the last time the user has accepted our privacy policy
+         *
+         * +optional
+         * 
+ * + * string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @return This builder for chaining. + */ + public Builder clearAcceptedPrivacyPolicyDate() { + acceptedPrivacyPolicyDate_ = getDefaultInstance().getAcceptedPrivacyPolicyDate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * when was the last time the user has accepted our privacy policy
+         *
+         * +optional
+         * 
+ * + * string accepted_privacy_policy_date = 2 [json_name = "acceptedPrivacyPolicyDate"]; + * @param value The bytes for acceptedPrivacyPolicyDate to set. + * @return This builder for chaining. + */ + public Builder setAcceptedPrivacyPolicyDateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + acceptedPrivacyPolicyDate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object companyName_ = ""; + /** + *
+         * the user's company name
+         *
+         * +optional
+         * 
+ * + * string company_name = 3 [json_name = "companyName"]; + * @return The companyName. + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * the user's company name
+         *
+         * +optional
+         * 
+ * + * string company_name = 3 [json_name = "companyName"]; + * @return The bytes for companyName. + */ + public com.google.protobuf.ByteString + getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * the user's company name
+         *
+         * +optional
+         * 
+ * + * string company_name = 3 [json_name = "companyName"]; + * @param value The companyName to set. + * @return This builder for chaining. + */ + public Builder setCompanyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + companyName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * the user's company name
+         *
+         * +optional
+         * 
+ * + * string company_name = 3 [json_name = "companyName"]; + * @return This builder for chaining. + */ + public Builder clearCompanyName() { + companyName_ = getDefaultInstance().getCompanyName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+         * the user's company name
+         *
+         * +optional
+         * 
+ * + * string company_name = 3 [json_name = "companyName"]; + * @param value The bytes for companyName to set. + * @return This builder for chaining. + */ + public Builder setCompanyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + companyName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object emailAddress_ = ""; + /** + *
+         * the user's email
+         *
+         * +optional
+         * 
+ * + * string email_address = 4 [json_name = "emailAddress"]; + * @return The emailAddress. + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * the user's email
+         *
+         * +optional
+         * 
+ * + * string email_address = 4 [json_name = "emailAddress"]; + * @return The bytes for emailAddress. + */ + public com.google.protobuf.ByteString + getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * the user's email
+         *
+         * +optional
+         * 
+ * + * string email_address = 4 [json_name = "emailAddress"]; + * @param value The emailAddress to set. + * @return This builder for chaining. + */ + public Builder setEmailAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + emailAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * the user's email
+         *
+         * +optional
+         * 
+ * + * string email_address = 4 [json_name = "emailAddress"]; + * @return This builder for chaining. + */ + public Builder clearEmailAddress() { + emailAddress_ = getDefaultInstance().getEmailAddress(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+         * the user's email
+         *
+         * +optional
+         * 
+ * + * string email_address = 4 [json_name = "emailAddress"]; + * @param value The bytes for emailAddress to set. + * @return This builder for chaining. + */ + public Builder setEmailAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + emailAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object jobRole_ = ""; + /** + *
+         * type of role user has in their job
+         *
+         * +optional
+         * 
+ * + * string job_role = 5 [json_name = "jobRole"]; + * @return The jobRole. + */ + public java.lang.String getJobRole() { + java.lang.Object ref = jobRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * type of role user has in their job
+         *
+         * +optional
+         * 
+ * + * string job_role = 5 [json_name = "jobRole"]; + * @return The bytes for jobRole. + */ + public com.google.protobuf.ByteString + getJobRoleBytes() { + java.lang.Object ref = jobRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * type of role user has in their job
+         *
+         * +optional
+         * 
+ * + * string job_role = 5 [json_name = "jobRole"]; + * @param value The jobRole to set. + * @return This builder for chaining. + */ + public Builder setJobRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + jobRole_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * type of role user has in their job
+         *
+         * +optional
+         * 
+ * + * string job_role = 5 [json_name = "jobRole"]; + * @return This builder for chaining. + */ + public Builder clearJobRole() { + jobRole_ = getDefaultInstance().getJobRole(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+         * type of role user has in their job
+         *
+         * +optional
+         * 
+ * + * string job_role = 5 [json_name = "jobRole"]; + * @param value The bytes for jobRole to set. + * @return This builder for chaining. + */ + public Builder setJobRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + jobRole_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object jobRoleOther_ = ""; + /** + *
+         * freeform entry for job role user works in (when jobRole is "other")
+         *
+         * +optional
+         * 
+ * + * string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The jobRoleOther. + */ + public java.lang.String getJobRoleOther() { + java.lang.Object ref = jobRoleOther_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRoleOther_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * freeform entry for job role user works in (when jobRole is "other")
+         *
+         * +optional
+         * 
+ * + * string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return The bytes for jobRoleOther. + */ + public com.google.protobuf.ByteString + getJobRoleOtherBytes() { + java.lang.Object ref = jobRoleOther_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobRoleOther_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * freeform entry for job role user works in (when jobRole is "other")
+         *
+         * +optional
+         * 
+ * + * string job_role_other = 6 [json_name = "jobRoleOther"]; + * @param value The jobRoleOther to set. + * @return This builder for chaining. + */ + public Builder setJobRoleOther( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + jobRoleOther_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+         * freeform entry for job role user works in (when jobRole is "other")
+         *
+         * +optional
+         * 
+ * + * string job_role_other = 6 [json_name = "jobRoleOther"]; + * @return This builder for chaining. + */ + public Builder clearJobRoleOther() { + jobRoleOther_ = getDefaultInstance().getJobRoleOther(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+         * freeform entry for job role user works in (when jobRole is "other")
+         *
+         * +optional
+         * 
+ * + * string job_role_other = 6 [json_name = "jobRoleOther"]; + * @param value The bytes for jobRoleOther to set. + * @return This builder for chaining. + */ + public Builder setJobRoleOtherBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + jobRoleOther_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureExplorationReasonsIsMutable() { + if (!explorationReasons_.isModifiable()) { + explorationReasons_ = new com.google.protobuf.LazyStringArrayList(explorationReasons_); + } + bitField0_ |= 0x00000040; + } + /** + *
+         * Reasons user is exploring Gitpod when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return A list containing the explorationReasons. + */ + public com.google.protobuf.ProtocolStringList + getExplorationReasonsList() { + explorationReasons_.makeImmutable(); + return explorationReasons_; + } + /** + *
+         * Reasons user is exploring Gitpod when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return The count of explorationReasons. + */ + public int getExplorationReasonsCount() { + return explorationReasons_.size(); + } + /** + *
+         * Reasons user is exploring Gitpod when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the element to return. + * @return The explorationReasons at the given index. + */ + public java.lang.String getExplorationReasons(int index) { + return explorationReasons_.get(index); + } + /** + *
+         * Reasons user is exploring Gitpod when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index of the value to return. + * @return The bytes of the explorationReasons at the given index. + */ + public com.google.protobuf.ByteString + getExplorationReasonsBytes(int index) { + return explorationReasons_.getByteString(index); + } + /** + *
+         * Reasons user is exploring Gitpod when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param index The index to set the value at. + * @param value The explorationReasons to set. + * @return This builder for chaining. + */ + public Builder setExplorationReasons( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureExplorationReasonsIsMutable(); + explorationReasons_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+         * Reasons user is exploring Gitpod when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param value The explorationReasons to add. + * @return This builder for chaining. + */ + public Builder addExplorationReasons( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureExplorationReasonsIsMutable(); + explorationReasons_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+         * Reasons user is exploring Gitpod when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param values The explorationReasons to add. + * @return This builder for chaining. + */ + public Builder addAllExplorationReasons( + java.lang.Iterable values) { + ensureExplorationReasonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, explorationReasons_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+         * Reasons user is exploring Gitpod when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @return This builder for chaining. + */ + public Builder clearExplorationReasons() { + explorationReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + onChanged(); + return this; + } + /** + *
+         * Reasons user is exploring Gitpod when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string exploration_reasons = 7 [json_name = "explorationReasons"]; + * @param value The bytes of the explorationReasons to add. + * @return This builder for chaining. + */ + public Builder addExplorationReasonsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureExplorationReasonsIsMutable(); + explorationReasons_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSignupGoalsIsMutable() { + if (!signupGoals_.isModifiable()) { + signupGoals_ = new com.google.protobuf.LazyStringArrayList(signupGoals_); + } + bitField0_ |= 0x00000080; + } + /** + *
+         * what user hopes to accomplish when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return A list containing the signupGoals. + */ + public com.google.protobuf.ProtocolStringList + getSignupGoalsList() { + signupGoals_.makeImmutable(); + return signupGoals_; + } + /** + *
+         * what user hopes to accomplish when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return The count of signupGoals. + */ + public int getSignupGoalsCount() { + return signupGoals_.size(); + } + /** + *
+         * what user hopes to accomplish when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the element to return. + * @return The signupGoals at the given index. + */ + public java.lang.String getSignupGoals(int index) { + return signupGoals_.get(index); + } + /** + *
+         * what user hopes to accomplish when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index of the value to return. + * @return The bytes of the signupGoals at the given index. + */ + public com.google.protobuf.ByteString + getSignupGoalsBytes(int index) { + return signupGoals_.getByteString(index); + } + /** + *
+         * what user hopes to accomplish when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param index The index to set the value at. + * @param value The signupGoals to set. + * @return This builder for chaining. + */ + public Builder setSignupGoals( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSignupGoalsIsMutable(); + signupGoals_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+         * what user hopes to accomplish when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param value The signupGoals to add. + * @return This builder for chaining. + */ + public Builder addSignupGoals( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSignupGoalsIsMutable(); + signupGoals_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+         * what user hopes to accomplish when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param values The signupGoals to add. + * @return This builder for chaining. + */ + public Builder addAllSignupGoals( + java.lang.Iterable values) { + ensureSignupGoalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, signupGoals_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+         * what user hopes to accomplish when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @return This builder for chaining. + */ + public Builder clearSignupGoals() { + signupGoals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + onChanged(); + return this; + } + /** + *
+         * what user hopes to accomplish when they signed up
+         *
+         * +optional
+         * 
+ * + * repeated string signup_goals = 8 [json_name = "signupGoals"]; + * @param value The bytes of the signupGoals to add. + * @return This builder for chaining. + */ + public Builder addSignupGoalsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureSignupGoalsIsMutable(); + signupGoals_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object signupGoalsOther_ = ""; + /** + *
+         * freeform entry for signup goals (when signupGoals is "other")
+         *
+         * +optional
+         * 
+ * + * string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The signupGoalsOther. + */ + public java.lang.String getSignupGoalsOther() { + java.lang.Object ref = signupGoalsOther_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signupGoalsOther_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * freeform entry for signup goals (when signupGoals is "other")
+         *
+         * +optional
+         * 
+ * + * string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return The bytes for signupGoalsOther. + */ + public com.google.protobuf.ByteString + getSignupGoalsOtherBytes() { + java.lang.Object ref = signupGoalsOther_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signupGoalsOther_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * freeform entry for signup goals (when signupGoals is "other")
+         *
+         * +optional
+         * 
+ * + * string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @param value The signupGoalsOther to set. + * @return This builder for chaining. + */ + public Builder setSignupGoalsOther( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + signupGoalsOther_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+         * freeform entry for signup goals (when signupGoals is "other")
+         *
+         * +optional
+         * 
+ * + * string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @return This builder for chaining. + */ + public Builder clearSignupGoalsOther() { + signupGoalsOther_ = getDefaultInstance().getSignupGoalsOther(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+         * freeform entry for signup goals (when signupGoals is "other")
+         *
+         * +optional
+         * 
+ * + * string signup_goals_other = 10 [json_name = "signupGoalsOther"]; + * @param value The bytes for signupGoalsOther to set. + * @return This builder for chaining. + */ + public Builder setSignupGoalsOtherBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + signupGoalsOther_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object onboardedTimestamp_ = ""; + /** + *
+         * Set after a user completes the onboarding flow
+         *
+         * +optional
+         * 
+ * + * string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The onboardedTimestamp. + */ + public java.lang.String getOnboardedTimestamp() { + java.lang.Object ref = onboardedTimestamp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + onboardedTimestamp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Set after a user completes the onboarding flow
+         *
+         * +optional
+         * 
+ * + * string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return The bytes for onboardedTimestamp. + */ + public com.google.protobuf.ByteString + getOnboardedTimestampBytes() { + java.lang.Object ref = onboardedTimestamp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + onboardedTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Set after a user completes the onboarding flow
+         *
+         * +optional
+         * 
+ * + * string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @param value The onboardedTimestamp to set. + * @return This builder for chaining. + */ + public Builder setOnboardedTimestamp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + onboardedTimestamp_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+         * Set after a user completes the onboarding flow
+         *
+         * +optional
+         * 
+ * + * string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @return This builder for chaining. + */ + public Builder clearOnboardedTimestamp() { + onboardedTimestamp_ = getDefaultInstance().getOnboardedTimestamp(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + *
+         * Set after a user completes the onboarding flow
+         *
+         * +optional
+         * 
+ * + * string onboarded_timestamp = 11 [json_name = "onboardedTimestamp"]; + * @param value The bytes for onboardedTimestamp to set. + * @return This builder for chaining. + */ + public Builder setOnboardedTimestampBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + onboardedTimestamp_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object companySize_ = ""; + /** + *
+         * Onboarding question about a user's company size
+         *
+         * +optional
+         * 
+ * + * string company_size = 12 [json_name = "companySize"]; + * @return The companySize. + */ + public java.lang.String getCompanySize() { + java.lang.Object ref = companySize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companySize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Onboarding question about a user's company size
+         *
+         * +optional
+         * 
+ * + * string company_size = 12 [json_name = "companySize"]; + * @return The bytes for companySize. + */ + public com.google.protobuf.ByteString + getCompanySizeBytes() { + java.lang.Object ref = companySize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + companySize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Onboarding question about a user's company size
+         *
+         * +optional
+         * 
+ * + * string company_size = 12 [json_name = "companySize"]; + * @param value The companySize to set. + * @return This builder for chaining. + */ + public Builder setCompanySize( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + companySize_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+         * Onboarding question about a user's company size
+         *
+         * +optional
+         * 
+ * + * string company_size = 12 [json_name = "companySize"]; + * @return This builder for chaining. + */ + public Builder clearCompanySize() { + companySize_ = getDefaultInstance().getCompanySize(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + *
+         * Onboarding question about a user's company size
+         *
+         * +optional
+         * 
+ * + * string company_size = 12 [json_name = "companySize"]; + * @param value The bytes for companySize to set. + * @return This builder for chaining. + */ + public Builder setCompanySizeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + companySize_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> coachmarksDismissals_; + private com.google.protobuf.MapField + internalGetCoachmarksDismissals() { + if (coachmarksDismissals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CoachmarksDismissalsDefaultEntryHolder.defaultEntry); + } + return coachmarksDismissals_; + } + private com.google.protobuf.MapField + internalGetMutableCoachmarksDismissals() { + if (coachmarksDismissals_ == null) { + coachmarksDismissals_ = com.google.protobuf.MapField.newMapField( + CoachmarksDismissalsDefaultEntryHolder.defaultEntry); + } + if (!coachmarksDismissals_.isMutable()) { + coachmarksDismissals_ = coachmarksDismissals_.copy(); + } + bitField0_ |= 0x00000800; + onChanged(); + return coachmarksDismissals_; + } + public int getCoachmarksDismissalsCount() { + return internalGetCoachmarksDismissals().getMap().size(); + } + /** + *
+         * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+         *
+         * +optional
+         * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public boolean containsCoachmarksDismissals( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCoachmarksDismissals().getMap().containsKey(key); + } + /** + * Use {@link #getCoachmarksDismissalsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCoachmarksDismissals() { + return getCoachmarksDismissalsMap(); + } + /** + *
+         * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+         *
+         * +optional
+         * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public java.util.Map getCoachmarksDismissalsMap() { + return internalGetCoachmarksDismissals().getMap(); + } + /** + *
+         * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+         *
+         * +optional
+         * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getCoachmarksDismissalsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCoachmarksDismissals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+         * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+         *
+         * +optional
+         * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + @java.lang.Override + public java.lang.String getCoachmarksDismissalsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCoachmarksDismissals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearCoachmarksDismissals() { + bitField0_ = (bitField0_ & ~0x00000800); + internalGetMutableCoachmarksDismissals().getMutableMap() + .clear(); + return this; + } + /** + *
+         * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+         *
+         * +optional
+         * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + public Builder removeCoachmarksDismissals( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCoachmarksDismissals().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCoachmarksDismissals() { + bitField0_ |= 0x00000800; + return internalGetMutableCoachmarksDismissals().getMutableMap(); + } + /** + *
+         * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+         *
+         * +optional
+         * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + public Builder putCoachmarksDismissals( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableCoachmarksDismissals().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000800; + return this; + } + /** + *
+         * key-value pairs of dialogs in the UI which should only appear once. The value usually is a timestamp of the last dismissal
+         *
+         * +optional
+         * 
+ * + * map<string, string> coachmarks_dismissals = 13 [json_name = "coachmarksDismissals"]; + */ + public Builder putAllCoachmarksDismissals( + java.util.Map values) { + internalGetMutableCoachmarksDismissals().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000800; + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.User.ProfileDetails) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.User.ProfileDetails) + private static final io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceAutostartOptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.User.WorkspaceAutostartOption) + com.google.protobuf.MessageOrBuilder { + + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + java.lang.String getCloneUrl(); + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + com.google.protobuf.ByteString + getCloneUrlBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + * string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + boolean hasEditorSettings(); + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings(); + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder(); + + /** + *
+       * +optional
+       * 
+ * + * string region = 5 [json_name = "region"]; + * @return The region. + */ + java.lang.String getRegion(); + /** + *
+       * +optional
+       * 
+ * + * string region = 5 [json_name = "region"]; + * @return The bytes for region. + */ + com.google.protobuf.ByteString + getRegionBytes(); + } + /** + * Protobuf type {@code gitpod.v1.User.WorkspaceAutostartOption} + */ + public static final class WorkspaceAutostartOption extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.User.WorkspaceAutostartOption) + WorkspaceAutostartOptionOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceAutostartOption.class.getName()); + } + // Use WorkspaceAutostartOption.newBuilder() to construct. + private WorkspaceAutostartOption(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceAutostartOption() { + cloneUrl_ = ""; + organizationId_ = ""; + workspaceClass_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceAutostartOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceAutostartOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.class, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder.class); + } + + private int bitField0_; + public static final int CLONE_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object cloneUrl_ = ""; + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + @java.lang.Override + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + * string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + * string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EDITOR_SETTINGS_FIELD_NUMBER = 4; + private io.gitpod.publicapi.v1.Editor.EditorReference editorSettings_; + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + @java.lang.Override + public boolean hasEditorSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings() { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder() { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + + public static final int REGION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + *
+       * +optional
+       * 
+ * + * string region = 5 [json_name = "region"]; + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } + } + /** + *
+       * +optional
+       * 
+ * + * string region = 5 [json_name = "region"]; + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cloneUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, workspaceClass_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getEditorSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, region_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cloneUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, workspaceClass_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEditorSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, region_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption other = (io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption) obj; + + if (!getCloneUrl() + .equals(other.getCloneUrl())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + if (hasEditorSettings() != other.hasEditorSettings()) return false; + if (hasEditorSettings()) { + if (!getEditorSettings() + .equals(other.getEditorSettings())) return false; + } + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLONE_URL_FIELD_NUMBER; + hash = (53 * hash) + getCloneUrl().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + if (hasEditorSettings()) { + hash = (37 * hash) + EDITOR_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEditorSettings().hashCode(); + } + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.User.WorkspaceAutostartOption} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.User.WorkspaceAutostartOption) + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceAutostartOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceAutostartOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.class, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getEditorSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloneUrl_ = ""; + organizationId_ = ""; + workspaceClass_ = ""; + editorSettings_ = null; + if (editorSettingsBuilder_ != null) { + editorSettingsBuilder_.dispose(); + editorSettingsBuilder_ = null; + } + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_WorkspaceAutostartOption_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption build() { + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption result = new io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloneUrl_ = cloneUrl_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workspaceClass_ = workspaceClass_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.editorSettings_ = editorSettingsBuilder_ == null + ? editorSettings_ + : editorSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.region_ = region_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.getDefaultInstance()) return this; + if (!other.getCloneUrl().isEmpty()) { + cloneUrl_ = other.cloneUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getWorkspaceClass().isEmpty()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasEditorSettings()) { + mergeEditorSettings(other.getEditorSettings()); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cloneUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEditorSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object cloneUrl_ = ""; + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @param value The cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cloneUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return This builder for chaining. + */ + public Builder clearCloneUrl() { + cloneUrl_ = getDefaultInstance().getCloneUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string clone_url = 1 [json_name = "cloneUrl"]; + * @param value The bytes for cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cloneUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object workspaceClass_ = ""; + /** + * string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_class = 3 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_class = 3 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string workspace_class = 3 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string workspace_class = 3 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Editor.EditorReference editorSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> editorSettingsBuilder_; + /** + *
+         * +optional
+         * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + public boolean hasEditorSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * +optional
+         * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + public io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings() { + if (editorSettingsBuilder_ == null) { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } else { + return editorSettingsBuilder_.getMessage(); + } + } + /** + *
+         * +optional
+         * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public Builder setEditorSettings(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + editorSettings_ = value; + } else { + editorSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * +optional
+         * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public Builder setEditorSettings( + io.gitpod.publicapi.v1.Editor.EditorReference.Builder builderForValue) { + if (editorSettingsBuilder_ == null) { + editorSettings_ = builderForValue.build(); + } else { + editorSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * +optional
+         * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public Builder mergeEditorSettings(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + editorSettings_ != null && + editorSettings_ != io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance()) { + getEditorSettingsBuilder().mergeFrom(value); + } else { + editorSettings_ = value; + } + } else { + editorSettingsBuilder_.mergeFrom(value); + } + if (editorSettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+         * +optional
+         * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public Builder clearEditorSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + editorSettings_ = null; + if (editorSettingsBuilder_ != null) { + editorSettingsBuilder_.dispose(); + editorSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * +optional
+         * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReference.Builder getEditorSettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEditorSettingsFieldBuilder().getBuilder(); + } + /** + *
+         * +optional
+         * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder() { + if (editorSettingsBuilder_ != null) { + return editorSettingsBuilder_.getMessageOrBuilder(); + } else { + return editorSettings_ == null ? + io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + } + /** + *
+         * +optional
+         * 
+ * + * .gitpod.v1.EditorReference editor_settings = 4 [json_name = "editorSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> + getEditorSettingsFieldBuilder() { + if (editorSettingsBuilder_ == null) { + editorSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder>( + getEditorSettings(), + getParentForChildren(), + isClean()); + editorSettings_ = null; + } + return editorSettingsBuilder_; + } + + private java.lang.Object region_ = ""; + /** + *
+         * +optional
+         * 
+ * + * string region = 5 [json_name = "region"]; + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * +optional
+         * 
+ * + * string region = 5 [json_name = "region"]; + * @return The bytes for region. + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * +optional
+         * 
+ * + * string region = 5 [json_name = "region"]; + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + region_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * +optional
+         * 
+ * + * string region = 5 [json_name = "region"]; + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+         * +optional
+         * 
+ * + * string region = 5 [json_name = "region"]; + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.User.WorkspaceAutostartOption) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.User.WorkspaceAutostartOption) + private static final io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceAutostartOption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is a UUID of the user
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is a UUID of the user
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the id of the organization this account is owned by.
+     *
+     * +optional if not set, this account is owned by the installation.
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the id of the organization this account is owned by.
+     *
+     * +optional if not set, this account is owned by the installation.
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the full name of the user
+     * 
+ * + * string name = 3 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the full name of the user
+     * 
+ * + * string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVATAR_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object avatarUrl_ = ""; + /** + *
+     * avatar_url is a link to the user avatar
+     * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + @java.lang.Override + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } + } + /** + *
+     * avatar_url is a link to the user avatar
+     * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * created_at is the creation time
+     * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + + public static final int IDENTITIES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List identities_; + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + @java.lang.Override + public java.util.List getIdentitiesList() { + return identities_; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + @java.lang.Override + public java.util.List + getIdentitiesOrBuilderList() { + return identities_; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + @java.lang.Override + public int getIdentitiesCount() { + return identities_.size(); + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.Identity getIdentities(int index) { + return identities_.get(index); + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.IdentityOrBuilder getIdentitiesOrBuilder( + int index) { + return identities_.get(index); + } + + public static final int BLOCKED_FIELD_NUMBER = 7; + private boolean blocked_ = false; + /** + *
+     * blocked indicates whether the account is blocked, e.g. due to vialoation of ToS.
+     * 
+ * + * bool blocked = 7 [json_name = "blocked"]; + * @return The blocked. + */ + @java.lang.Override + public boolean getBlocked() { + return blocked_; + } + + public static final int LAST_VERIFICATION_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp lastVerificationTime_; + /** + *
+     * last_verification_time is the last time this account was verified.
+     *
+     * +optional if not set, this account is not verified.
+     * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + * @return Whether the lastVerificationTime field is set. + */ + @java.lang.Override + public boolean hasLastVerificationTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * last_verification_time is the last time this account was verified.
+     *
+     * +optional if not set, this account is not verified.
+     * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + * @return The lastVerificationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastVerificationTime() { + return lastVerificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; + } + /** + *
+     * last_verification_time is the last time this account was verified.
+     *
+     * +optional if not set, this account is not verified.
+     * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder() { + return lastVerificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; + } + + public static final int VERIFICATION_PHONE_NUMBER_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object verificationPhoneNumber_ = ""; + /** + *
+     * verification_phone_number is the phone number used for the last verification.
+     * 
+ * + * string verification_phone_number = 9 [json_name = "verificationPhoneNumber"]; + * @return The verificationPhoneNumber. + */ + @java.lang.Override + public java.lang.String getVerificationPhoneNumber() { + java.lang.Object ref = verificationPhoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verificationPhoneNumber_ = s; + return s; + } + } + /** + *
+     * verification_phone_number is the phone number used for the last verification.
+     * 
+ * + * string verification_phone_number = 9 [json_name = "verificationPhoneNumber"]; + * @return The bytes for verificationPhoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVerificationPhoneNumberBytes() { + java.lang.Object ref = verificationPhoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verificationPhoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_TIMEOUT_SETTINGS_FIELD_NUMBER = 10; + private io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings workspaceTimeoutSettings_; + /** + *
+     * user global workspace timeout settings
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + * @return Whether the workspaceTimeoutSettings field is set. + */ + @java.lang.Override + public boolean hasWorkspaceTimeoutSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * user global workspace timeout settings
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + * @return The workspaceTimeoutSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings getWorkspaceTimeoutSettings() { + return workspaceTimeoutSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.getDefaultInstance() : workspaceTimeoutSettings_; + } + /** + *
+     * user global workspace timeout settings
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettingsOrBuilder getWorkspaceTimeoutSettingsOrBuilder() { + return workspaceTimeoutSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.getDefaultInstance() : workspaceTimeoutSettings_; + } + + public static final int EMAIL_NOTIFICATION_SETTINGS_FIELD_NUMBER = 11; + private io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings emailNotificationSettings_; + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + * @return Whether the emailNotificationSettings field is set. + */ + @java.lang.Override + public boolean hasEmailNotificationSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + * @return The emailNotificationSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings getEmailNotificationSettings() { + return emailNotificationSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.getDefaultInstance() : emailNotificationSettings_; + } + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettingsOrBuilder getEmailNotificationSettingsOrBuilder() { + return emailNotificationSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.getDefaultInstance() : emailNotificationSettings_; + } + + public static final int EDITOR_SETTINGS_FIELD_NUMBER = 12; + private io.gitpod.publicapi.v1.Editor.EditorReference editorSettings_; + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + @java.lang.Override + public boolean hasEditorSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings() { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + /** + *
+     * +optional
+     * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder() { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + + public static final int DOTFILE_REPO_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object dotfileRepo_ = ""; + /** + *
+     * Git clone URL pointing to the user's dotfile repo
+     *
+     * // +optional
+     * 
+ * + * string dotfile_repo = 13 [json_name = "dotfileRepo"]; + * @return The dotfileRepo. + */ + @java.lang.Override + public java.lang.String getDotfileRepo() { + java.lang.Object ref = dotfileRepo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dotfileRepo_ = s; + return s; + } + } + /** + *
+     * Git clone URL pointing to the user's dotfile repo
+     *
+     * // +optional
+     * 
+ * + * string dotfile_repo = 13 [json_name = "dotfileRepo"]; + * @return The bytes for dotfileRepo. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDotfileRepoBytes() { + java.lang.Object ref = dotfileRepo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dotfileRepo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + *
+     * preferred workspace class
+     *
+     * +optional
+     * 
+ * + * string workspace_class = 14 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + *
+     * preferred workspace class
+     *
+     * +optional
+     * 
+ * + * string workspace_class = 14 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROFILE_FIELD_NUMBER = 15; + private io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails profile_; + /** + *
+     * additional user profile data
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + * @return Whether the profile field is set. + */ + @java.lang.Override + public boolean hasProfile() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * additional user profile data
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + * @return The profile. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails getProfile() { + return profile_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.getDefaultInstance() : profile_; + } + /** + *
+     * additional user profile data
+     *
+     * +optional
+     * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetailsOrBuilder getProfileOrBuilder() { + return profile_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.getDefaultInstance() : profile_; + } + + public static final int WORKSPACE_AUTOSTART_OPTIONS_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private java.util.List workspaceAutostartOptions_; + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public java.util.List getWorkspaceAutostartOptionsList() { + return workspaceAutostartOptions_; + } + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public java.util.List + getWorkspaceAutostartOptionsOrBuilderList() { + return workspaceAutostartOptions_; + } + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public int getWorkspaceAutostartOptionsCount() { + return workspaceAutostartOptions_.size(); + } + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption getWorkspaceAutostartOptions(int index) { + return workspaceAutostartOptions_.get(index); + } + /** + *
+     * remembered workspace auto start options
+     *
+     * +optional
+     * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOptionOrBuilder getWorkspaceAutostartOptionsOrBuilder( + int index) { + return workspaceAutostartOptions_.get(index); + } + + public static final int USAGE_ATTRIBUTION_ID_FIELD_NUMBER = 17; + @SuppressWarnings("serial") + private volatile java.lang.Object usageAttributionId_ = ""; + /** + *
+     * usage_attribution_id specifies the organization or account to which all of the
+     * user's workspace usage is attributed to, e.g. for billing purposes
+     * 
+ * + * string usage_attribution_id = 17 [json_name = "usageAttributionId"]; + * @return The usageAttributionId. + */ + @java.lang.Override + public java.lang.String getUsageAttributionId() { + java.lang.Object ref = usageAttributionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + usageAttributionId_ = s; + return s; + } + } + /** + *
+     * usage_attribution_id specifies the organization or account to which all of the
+     * user's workspace usage is attributed to, e.g. for billing purposes
+     * 
+ * + * string usage_attribution_id = 17 [json_name = "usageAttributionId"]; + * @return The bytes for usageAttributionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUsageAttributionIdBytes() { + java.lang.Object ref = usageAttributionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + usageAttributionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_FEATURE_FLAGS_FIELD_NUMBER = 18; + @SuppressWarnings("serial") + private java.util.List workspaceFeatureFlags_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag> workspaceFeatureFlags_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag>() { + public io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag convert(java.lang.Integer from) { + io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag result = io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag.forNumber(from); + return result == null ? io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag.UNRECOGNIZED : result; + } + }; + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return A list containing the workspaceFeatureFlags. + */ + @java.lang.Override + public java.util.List getWorkspaceFeatureFlagsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag>(workspaceFeatureFlags_, workspaceFeatureFlags_converter_); + } + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return The count of workspaceFeatureFlags. + */ + @java.lang.Override + public int getWorkspaceFeatureFlagsCount() { + return workspaceFeatureFlags_.size(); + } + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param index The index of the element to return. + * @return The workspaceFeatureFlags at the given index. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag getWorkspaceFeatureFlags(int index) { + return workspaceFeatureFlags_converter_.convert(workspaceFeatureFlags_.get(index)); + } + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return A list containing the enum numeric values on the wire for workspaceFeatureFlags. + */ + @java.lang.Override + public java.util.List + getWorkspaceFeatureFlagsValueList() { + return workspaceFeatureFlags_; + } + /** + *
+     * per-user settings to control workspace behavior
+     * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of workspaceFeatureFlags at the given index. + */ + @java.lang.Override + public int getWorkspaceFeatureFlagsValue(int index) { + return workspaceFeatureFlags_.get(index); + } + private int workspaceFeatureFlagsMemoizedSerializedSize; + + public static final int ROLES_OR_PERMISSIONS_FIELD_NUMBER = 19; + @SuppressWarnings("serial") + private java.util.List rolesOrPermissions_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission> rolesOrPermissions_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission>() { + public io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission convert(java.lang.Integer from) { + io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission result = io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission.forNumber(from); + return result == null ? io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission.UNRECOGNIZED : result; + } + }; + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return A list containing the rolesOrPermissions. + */ + @java.lang.Override + public java.util.List getRolesOrPermissionsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission>(rolesOrPermissions_, rolesOrPermissions_converter_); + } + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return The count of rolesOrPermissions. + */ + @java.lang.Override + public int getRolesOrPermissionsCount() { + return rolesOrPermissions_.size(); + } + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param index The index of the element to return. + * @return The rolesOrPermissions at the given index. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission getRolesOrPermissions(int index) { + return rolesOrPermissions_converter_.convert(rolesOrPermissions_.get(index)); + } + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return A list containing the enum numeric values on the wire for rolesOrPermissions. + */ + @java.lang.Override + public java.util.List + getRolesOrPermissionsValueList() { + return rolesOrPermissions_; + } + /** + *
+     * specifies the permissions and/or roles the user has
+     * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of rolesOrPermissions at the given index. + */ + @java.lang.Override + public int getRolesOrPermissionsValue(int index) { + return rolesOrPermissions_.get(index); + } + private int rolesOrPermissionsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, avatarUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreatedAt()); + } + for (int i = 0; i < identities_.size(); i++) { + output.writeMessage(6, identities_.get(i)); + } + if (blocked_ != false) { + output.writeBool(7, blocked_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getLastVerificationTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verificationPhoneNumber_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, verificationPhoneNumber_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getWorkspaceTimeoutSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(11, getEmailNotificationSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(12, getEditorSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dotfileRepo_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, dotfileRepo_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, workspaceClass_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(15, getProfile()); + } + for (int i = 0; i < workspaceAutostartOptions_.size(); i++) { + output.writeMessage(16, workspaceAutostartOptions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(usageAttributionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, usageAttributionId_); + } + if (getWorkspaceFeatureFlagsList().size() > 0) { + output.writeUInt32NoTag(146); + output.writeUInt32NoTag(workspaceFeatureFlagsMemoizedSerializedSize); + } + for (int i = 0; i < workspaceFeatureFlags_.size(); i++) { + output.writeEnumNoTag(workspaceFeatureFlags_.get(i)); + } + if (getRolesOrPermissionsList().size() > 0) { + output.writeUInt32NoTag(154); + output.writeUInt32NoTag(rolesOrPermissionsMemoizedSerializedSize); + } + for (int i = 0; i < rolesOrPermissions_.size(); i++) { + output.writeEnumNoTag(rolesOrPermissions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avatarUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, avatarUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreatedAt()); + } + for (int i = 0; i < identities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, identities_.get(i)); + } + if (blocked_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, blocked_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getLastVerificationTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verificationPhoneNumber_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, verificationPhoneNumber_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getWorkspaceTimeoutSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getEmailNotificationSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getEditorSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dotfileRepo_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, dotfileRepo_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, workspaceClass_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getProfile()); + } + for (int i = 0; i < workspaceAutostartOptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, workspaceAutostartOptions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(usageAttributionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(17, usageAttributionId_); + } + { + int dataSize = 0; + for (int i = 0; i < workspaceFeatureFlags_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(workspaceFeatureFlags_.get(i)); + } + size += dataSize; + if (!getWorkspaceFeatureFlagsList().isEmpty()) { size += 2; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }workspaceFeatureFlagsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < rolesOrPermissions_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(rolesOrPermissions_.get(i)); + } + size += dataSize; + if (!getRolesOrPermissionsList().isEmpty()) { size += 2; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }rolesOrPermissionsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.User)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.User other = (io.gitpod.publicapi.v1.UserOuterClass.User) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAvatarUrl() + .equals(other.getAvatarUrl())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (!getIdentitiesList() + .equals(other.getIdentitiesList())) return false; + if (getBlocked() + != other.getBlocked()) return false; + if (hasLastVerificationTime() != other.hasLastVerificationTime()) return false; + if (hasLastVerificationTime()) { + if (!getLastVerificationTime() + .equals(other.getLastVerificationTime())) return false; + } + if (!getVerificationPhoneNumber() + .equals(other.getVerificationPhoneNumber())) return false; + if (hasWorkspaceTimeoutSettings() != other.hasWorkspaceTimeoutSettings()) return false; + if (hasWorkspaceTimeoutSettings()) { + if (!getWorkspaceTimeoutSettings() + .equals(other.getWorkspaceTimeoutSettings())) return false; + } + if (hasEmailNotificationSettings() != other.hasEmailNotificationSettings()) return false; + if (hasEmailNotificationSettings()) { + if (!getEmailNotificationSettings() + .equals(other.getEmailNotificationSettings())) return false; + } + if (hasEditorSettings() != other.hasEditorSettings()) return false; + if (hasEditorSettings()) { + if (!getEditorSettings() + .equals(other.getEditorSettings())) return false; + } + if (!getDotfileRepo() + .equals(other.getDotfileRepo())) return false; + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + if (hasProfile() != other.hasProfile()) return false; + if (hasProfile()) { + if (!getProfile() + .equals(other.getProfile())) return false; + } + if (!getWorkspaceAutostartOptionsList() + .equals(other.getWorkspaceAutostartOptionsList())) return false; + if (!getUsageAttributionId() + .equals(other.getUsageAttributionId())) return false; + if (!workspaceFeatureFlags_.equals(other.workspaceFeatureFlags_)) return false; + if (!rolesOrPermissions_.equals(other.rolesOrPermissions_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AVATAR_URL_FIELD_NUMBER; + hash = (53 * hash) + getAvatarUrl().hashCode(); + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (getIdentitiesCount() > 0) { + hash = (37 * hash) + IDENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getIdentitiesList().hashCode(); + } + hash = (37 * hash) + BLOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlocked()); + if (hasLastVerificationTime()) { + hash = (37 * hash) + LAST_VERIFICATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastVerificationTime().hashCode(); + } + hash = (37 * hash) + VERIFICATION_PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getVerificationPhoneNumber().hashCode(); + if (hasWorkspaceTimeoutSettings()) { + hash = (37 * hash) + WORKSPACE_TIMEOUT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceTimeoutSettings().hashCode(); + } + if (hasEmailNotificationSettings()) { + hash = (37 * hash) + EMAIL_NOTIFICATION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEmailNotificationSettings().hashCode(); + } + if (hasEditorSettings()) { + hash = (37 * hash) + EDITOR_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEditorSettings().hashCode(); + } + hash = (37 * hash) + DOTFILE_REPO_FIELD_NUMBER; + hash = (53 * hash) + getDotfileRepo().hashCode(); + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + if (getWorkspaceAutostartOptionsCount() > 0) { + hash = (37 * hash) + WORKSPACE_AUTOSTART_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceAutostartOptionsList().hashCode(); + } + hash = (37 * hash) + USAGE_ATTRIBUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getUsageAttributionId().hashCode(); + if (getWorkspaceFeatureFlagsCount() > 0) { + hash = (37 * hash) + WORKSPACE_FEATURE_FLAGS_FIELD_NUMBER; + hash = (53 * hash) + workspaceFeatureFlags_.hashCode(); + } + if (getRolesOrPermissionsCount() > 0) { + hash = (37 * hash) + ROLES_OR_PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + rolesOrPermissions_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.User parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.User prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.User} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.User) + io.gitpod.publicapi.v1.UserOuterClass.UserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.User.class, io.gitpod.publicapi.v1.UserOuterClass.User.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.User.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + getIdentitiesFieldBuilder(); + getLastVerificationTimeFieldBuilder(); + getWorkspaceTimeoutSettingsFieldBuilder(); + getEmailNotificationSettingsFieldBuilder(); + getEditorSettingsFieldBuilder(); + getProfileFieldBuilder(); + getWorkspaceAutostartOptionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + organizationId_ = ""; + name_ = ""; + avatarUrl_ = ""; + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + if (identitiesBuilder_ == null) { + identities_ = java.util.Collections.emptyList(); + } else { + identities_ = null; + identitiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + blocked_ = false; + lastVerificationTime_ = null; + if (lastVerificationTimeBuilder_ != null) { + lastVerificationTimeBuilder_.dispose(); + lastVerificationTimeBuilder_ = null; + } + verificationPhoneNumber_ = ""; + workspaceTimeoutSettings_ = null; + if (workspaceTimeoutSettingsBuilder_ != null) { + workspaceTimeoutSettingsBuilder_.dispose(); + workspaceTimeoutSettingsBuilder_ = null; + } + emailNotificationSettings_ = null; + if (emailNotificationSettingsBuilder_ != null) { + emailNotificationSettingsBuilder_.dispose(); + emailNotificationSettingsBuilder_ = null; + } + editorSettings_ = null; + if (editorSettingsBuilder_ != null) { + editorSettingsBuilder_.dispose(); + editorSettingsBuilder_ = null; + } + dotfileRepo_ = ""; + workspaceClass_ = ""; + profile_ = null; + if (profileBuilder_ != null) { + profileBuilder_.dispose(); + profileBuilder_ = null; + } + if (workspaceAutostartOptionsBuilder_ == null) { + workspaceAutostartOptions_ = java.util.Collections.emptyList(); + } else { + workspaceAutostartOptions_ = null; + workspaceAutostartOptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00008000); + usageAttributionId_ = ""; + workspaceFeatureFlags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + rolesOrPermissions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_User_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User build() { + io.gitpod.publicapi.v1.UserOuterClass.User result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.User result = new io.gitpod.publicapi.v1.UserOuterClass.User(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.UserOuterClass.User result) { + if (identitiesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + identities_ = java.util.Collections.unmodifiableList(identities_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.identities_ = identities_; + } else { + result.identities_ = identitiesBuilder_.build(); + } + if (workspaceAutostartOptionsBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0)) { + workspaceAutostartOptions_ = java.util.Collections.unmodifiableList(workspaceAutostartOptions_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.workspaceAutostartOptions_ = workspaceAutostartOptions_; + } else { + result.workspaceAutostartOptions_ = workspaceAutostartOptionsBuilder_.build(); + } + if (((bitField0_ & 0x00020000) != 0)) { + workspaceFeatureFlags_ = java.util.Collections.unmodifiableList(workspaceFeatureFlags_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.workspaceFeatureFlags_ = workspaceFeatureFlags_; + if (((bitField0_ & 0x00040000) != 0)) { + rolesOrPermissions_ = java.util.Collections.unmodifiableList(rolesOrPermissions_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.rolesOrPermissions_ = rolesOrPermissions_; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.User result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.avatarUrl_ = avatarUrl_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.blocked_ = blocked_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.lastVerificationTime_ = lastVerificationTimeBuilder_ == null + ? lastVerificationTime_ + : lastVerificationTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.verificationPhoneNumber_ = verificationPhoneNumber_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.workspaceTimeoutSettings_ = workspaceTimeoutSettingsBuilder_ == null + ? workspaceTimeoutSettings_ + : workspaceTimeoutSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.emailNotificationSettings_ = emailNotificationSettingsBuilder_ == null + ? emailNotificationSettings_ + : emailNotificationSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.editorSettings_ = editorSettingsBuilder_ == null + ? editorSettings_ + : editorSettingsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.dotfileRepo_ = dotfileRepo_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.workspaceClass_ = workspaceClass_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.profile_ = profileBuilder_ == null + ? profile_ + : profileBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.usageAttributionId_ = usageAttributionId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.User) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.User)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.User other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.User.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAvatarUrl().isEmpty()) { + avatarUrl_ = other.avatarUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (identitiesBuilder_ == null) { + if (!other.identities_.isEmpty()) { + if (identities_.isEmpty()) { + identities_ = other.identities_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureIdentitiesIsMutable(); + identities_.addAll(other.identities_); + } + onChanged(); + } + } else { + if (!other.identities_.isEmpty()) { + if (identitiesBuilder_.isEmpty()) { + identitiesBuilder_.dispose(); + identitiesBuilder_ = null; + identities_ = other.identities_; + bitField0_ = (bitField0_ & ~0x00000020); + identitiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getIdentitiesFieldBuilder() : null; + } else { + identitiesBuilder_.addAllMessages(other.identities_); + } + } + } + if (other.getBlocked() != false) { + setBlocked(other.getBlocked()); + } + if (other.hasLastVerificationTime()) { + mergeLastVerificationTime(other.getLastVerificationTime()); + } + if (!other.getVerificationPhoneNumber().isEmpty()) { + verificationPhoneNumber_ = other.verificationPhoneNumber_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasWorkspaceTimeoutSettings()) { + mergeWorkspaceTimeoutSettings(other.getWorkspaceTimeoutSettings()); + } + if (other.hasEmailNotificationSettings()) { + mergeEmailNotificationSettings(other.getEmailNotificationSettings()); + } + if (other.hasEditorSettings()) { + mergeEditorSettings(other.getEditorSettings()); + } + if (!other.getDotfileRepo().isEmpty()) { + dotfileRepo_ = other.dotfileRepo_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getWorkspaceClass().isEmpty()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (workspaceAutostartOptionsBuilder_ == null) { + if (!other.workspaceAutostartOptions_.isEmpty()) { + if (workspaceAutostartOptions_.isEmpty()) { + workspaceAutostartOptions_ = other.workspaceAutostartOptions_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.addAll(other.workspaceAutostartOptions_); + } + onChanged(); + } + } else { + if (!other.workspaceAutostartOptions_.isEmpty()) { + if (workspaceAutostartOptionsBuilder_.isEmpty()) { + workspaceAutostartOptionsBuilder_.dispose(); + workspaceAutostartOptionsBuilder_ = null; + workspaceAutostartOptions_ = other.workspaceAutostartOptions_; + bitField0_ = (bitField0_ & ~0x00008000); + workspaceAutostartOptionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getWorkspaceAutostartOptionsFieldBuilder() : null; + } else { + workspaceAutostartOptionsBuilder_.addAllMessages(other.workspaceAutostartOptions_); + } + } + } + if (!other.getUsageAttributionId().isEmpty()) { + usageAttributionId_ = other.usageAttributionId_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (!other.workspaceFeatureFlags_.isEmpty()) { + if (workspaceFeatureFlags_.isEmpty()) { + workspaceFeatureFlags_ = other.workspaceFeatureFlags_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureWorkspaceFeatureFlagsIsMutable(); + workspaceFeatureFlags_.addAll(other.workspaceFeatureFlags_); + } + onChanged(); + } + if (!other.rolesOrPermissions_.isEmpty()) { + if (rolesOrPermissions_.isEmpty()) { + rolesOrPermissions_ = other.rolesOrPermissions_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.addAll(other.rolesOrPermissions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + avatarUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getCreatedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + io.gitpod.publicapi.v1.UserOuterClass.Identity m = + input.readMessage( + io.gitpod.publicapi.v1.UserOuterClass.Identity.parser(), + extensionRegistry); + if (identitiesBuilder_ == null) { + ensureIdentitiesIsMutable(); + identities_.add(m); + } else { + identitiesBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: { + blocked_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + input.readMessage( + getLastVerificationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + verificationPhoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getWorkspaceTimeoutSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + input.readMessage( + getEmailNotificationSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + input.readMessage( + getEditorSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + dotfileRepo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + input.readMessage( + getProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption m = + input.readMessage( + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.parser(), + extensionRegistry); + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(m); + } else { + workspaceAutostartOptionsBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: { + usageAttributionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 144: { + int tmpRaw = input.readEnum(); + ensureWorkspaceFeatureFlagsIsMutable(); + workspaceFeatureFlags_.add(tmpRaw); + break; + } // case 144 + case 146: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureWorkspaceFeatureFlagsIsMutable(); + workspaceFeatureFlags_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 146 + case 152: { + int tmpRaw = input.readEnum(); + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.add(tmpRaw); + break; + } // case 152 + case 154: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 154 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is a UUID of the user
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the id of the organization this account is owned by.
+       *
+       * +optional if not set, this account is owned by the installation.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the id of the organization this account is owned by.
+       *
+       * +optional if not set, this account is owned by the installation.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the id of the organization this account is owned by.
+       *
+       * +optional if not set, this account is owned by the installation.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * organization_id is the id of the organization this account is owned by.
+       *
+       * +optional if not set, this account is owned by the installation.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * organization_id is the id of the organization this account is owned by.
+       *
+       * +optional if not set, this account is owned by the installation.
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * name is the full name of the user
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the full name of the user
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the full name of the user
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * name is the full name of the user
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * name is the full name of the user
+       * 
+ * + * string name = 3 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object avatarUrl_ = ""; + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The avatarUrl. + */ + public java.lang.String getAvatarUrl() { + java.lang.Object ref = avatarUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return The bytes for avatarUrl. + */ + public com.google.protobuf.ByteString + getAvatarUrlBytes() { + java.lang.Object ref = avatarUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatarUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @param value The avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + avatarUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @return This builder for chaining. + */ + public Builder clearAvatarUrl() { + avatarUrl_ = getDefaultInstance().getAvatarUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * avatar_url is a link to the user avatar
+       * 
+ * + * string avatar_url = 4 [json_name = "avatarUrl"]; + * @param value The bytes for avatarUrl to set. + * @return This builder for chaining. + */ + public Builder setAvatarUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + avatarUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000010); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * created_at is the creation time
+       * 
+ * + * .google.protobuf.Timestamp created_at = 5 [json_name = "createdAt"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private java.util.List identities_ = + java.util.Collections.emptyList(); + private void ensureIdentitiesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + identities_ = new java.util.ArrayList(identities_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.Identity, io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder, io.gitpod.publicapi.v1.UserOuterClass.IdentityOrBuilder> identitiesBuilder_; + + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public java.util.List getIdentitiesList() { + if (identitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(identities_); + } else { + return identitiesBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public int getIdentitiesCount() { + if (identitiesBuilder_ == null) { + return identities_.size(); + } else { + return identitiesBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.Identity getIdentities(int index) { + if (identitiesBuilder_ == null) { + return identities_.get(index); + } else { + return identitiesBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public Builder setIdentities( + int index, io.gitpod.publicapi.v1.UserOuterClass.Identity value) { + if (identitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentitiesIsMutable(); + identities_.set(index, value); + onChanged(); + } else { + identitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public Builder setIdentities( + int index, io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder builderForValue) { + if (identitiesBuilder_ == null) { + ensureIdentitiesIsMutable(); + identities_.set(index, builderForValue.build()); + onChanged(); + } else { + identitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public Builder addIdentities(io.gitpod.publicapi.v1.UserOuterClass.Identity value) { + if (identitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentitiesIsMutable(); + identities_.add(value); + onChanged(); + } else { + identitiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public Builder addIdentities( + int index, io.gitpod.publicapi.v1.UserOuterClass.Identity value) { + if (identitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentitiesIsMutable(); + identities_.add(index, value); + onChanged(); + } else { + identitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public Builder addIdentities( + io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder builderForValue) { + if (identitiesBuilder_ == null) { + ensureIdentitiesIsMutable(); + identities_.add(builderForValue.build()); + onChanged(); + } else { + identitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public Builder addIdentities( + int index, io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder builderForValue) { + if (identitiesBuilder_ == null) { + ensureIdentitiesIsMutable(); + identities_.add(index, builderForValue.build()); + onChanged(); + } else { + identitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public Builder addAllIdentities( + java.lang.Iterable values) { + if (identitiesBuilder_ == null) { + ensureIdentitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, identities_); + onChanged(); + } else { + identitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public Builder clearIdentities() { + if (identitiesBuilder_ == null) { + identities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + identitiesBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public Builder removeIdentities(int index) { + if (identitiesBuilder_ == null) { + ensureIdentitiesIsMutable(); + identities_.remove(index); + onChanged(); + } else { + identitiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder getIdentitiesBuilder( + int index) { + return getIdentitiesFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.IdentityOrBuilder getIdentitiesOrBuilder( + int index) { + if (identitiesBuilder_ == null) { + return identities_.get(index); } else { + return identitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public java.util.List + getIdentitiesOrBuilderList() { + if (identitiesBuilder_ != null) { + return identitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(identities_); + } + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder addIdentitiesBuilder() { + return getIdentitiesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.UserOuterClass.Identity.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder addIdentitiesBuilder( + int index) { + return getIdentitiesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.UserOuterClass.Identity.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.Identity identities = 6 [json_name = "identities"]; + */ + public java.util.List + getIdentitiesBuilderList() { + return getIdentitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.Identity, io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder, io.gitpod.publicapi.v1.UserOuterClass.IdentityOrBuilder> + getIdentitiesFieldBuilder() { + if (identitiesBuilder_ == null) { + identitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.Identity, io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder, io.gitpod.publicapi.v1.UserOuterClass.IdentityOrBuilder>( + identities_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + identities_ = null; + } + return identitiesBuilder_; + } + + private boolean blocked_ ; + /** + *
+       * blocked indicates whether the account is blocked, e.g. due to vialoation of ToS.
+       * 
+ * + * bool blocked = 7 [json_name = "blocked"]; + * @return The blocked. + */ + @java.lang.Override + public boolean getBlocked() { + return blocked_; + } + /** + *
+       * blocked indicates whether the account is blocked, e.g. due to vialoation of ToS.
+       * 
+ * + * bool blocked = 7 [json_name = "blocked"]; + * @param value The blocked to set. + * @return This builder for chaining. + */ + public Builder setBlocked(boolean value) { + + blocked_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * blocked indicates whether the account is blocked, e.g. due to vialoation of ToS.
+       * 
+ * + * bool blocked = 7 [json_name = "blocked"]; + * @return This builder for chaining. + */ + public Builder clearBlocked() { + bitField0_ = (bitField0_ & ~0x00000040); + blocked_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastVerificationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastVerificationTimeBuilder_; + /** + *
+       * last_verification_time is the last time this account was verified.
+       *
+       * +optional if not set, this account is not verified.
+       * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + * @return Whether the lastVerificationTime field is set. + */ + public boolean hasLastVerificationTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+       * last_verification_time is the last time this account was verified.
+       *
+       * +optional if not set, this account is not verified.
+       * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + * @return The lastVerificationTime. + */ + public com.google.protobuf.Timestamp getLastVerificationTime() { + if (lastVerificationTimeBuilder_ == null) { + return lastVerificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; + } else { + return lastVerificationTimeBuilder_.getMessage(); + } + } + /** + *
+       * last_verification_time is the last time this account was verified.
+       *
+       * +optional if not set, this account is not verified.
+       * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + */ + public Builder setLastVerificationTime(com.google.protobuf.Timestamp value) { + if (lastVerificationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastVerificationTime_ = value; + } else { + lastVerificationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * last_verification_time is the last time this account was verified.
+       *
+       * +optional if not set, this account is not verified.
+       * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + */ + public Builder setLastVerificationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastVerificationTimeBuilder_ == null) { + lastVerificationTime_ = builderForValue.build(); + } else { + lastVerificationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * last_verification_time is the last time this account was verified.
+       *
+       * +optional if not set, this account is not verified.
+       * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + */ + public Builder mergeLastVerificationTime(com.google.protobuf.Timestamp value) { + if (lastVerificationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + lastVerificationTime_ != null && + lastVerificationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastVerificationTimeBuilder().mergeFrom(value); + } else { + lastVerificationTime_ = value; + } + } else { + lastVerificationTimeBuilder_.mergeFrom(value); + } + if (lastVerificationTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+       * last_verification_time is the last time this account was verified.
+       *
+       * +optional if not set, this account is not verified.
+       * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + */ + public Builder clearLastVerificationTime() { + bitField0_ = (bitField0_ & ~0x00000080); + lastVerificationTime_ = null; + if (lastVerificationTimeBuilder_ != null) { + lastVerificationTimeBuilder_.dispose(); + lastVerificationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * last_verification_time is the last time this account was verified.
+       *
+       * +optional if not set, this account is not verified.
+       * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getLastVerificationTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getLastVerificationTimeFieldBuilder().getBuilder(); + } + /** + *
+       * last_verification_time is the last time this account was verified.
+       *
+       * +optional if not set, this account is not verified.
+       * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder() { + if (lastVerificationTimeBuilder_ != null) { + return lastVerificationTimeBuilder_.getMessageOrBuilder(); + } else { + return lastVerificationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; + } + } + /** + *
+       * last_verification_time is the last time this account was verified.
+       *
+       * +optional if not set, this account is not verified.
+       * 
+ * + * .google.protobuf.Timestamp last_verification_time = 8 [json_name = "lastVerificationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getLastVerificationTimeFieldBuilder() { + if (lastVerificationTimeBuilder_ == null) { + lastVerificationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastVerificationTime(), + getParentForChildren(), + isClean()); + lastVerificationTime_ = null; + } + return lastVerificationTimeBuilder_; + } + + private java.lang.Object verificationPhoneNumber_ = ""; + /** + *
+       * verification_phone_number is the phone number used for the last verification.
+       * 
+ * + * string verification_phone_number = 9 [json_name = "verificationPhoneNumber"]; + * @return The verificationPhoneNumber. + */ + public java.lang.String getVerificationPhoneNumber() { + java.lang.Object ref = verificationPhoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verificationPhoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * verification_phone_number is the phone number used for the last verification.
+       * 
+ * + * string verification_phone_number = 9 [json_name = "verificationPhoneNumber"]; + * @return The bytes for verificationPhoneNumber. + */ + public com.google.protobuf.ByteString + getVerificationPhoneNumberBytes() { + java.lang.Object ref = verificationPhoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verificationPhoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * verification_phone_number is the phone number used for the last verification.
+       * 
+ * + * string verification_phone_number = 9 [json_name = "verificationPhoneNumber"]; + * @param value The verificationPhoneNumber to set. + * @return This builder for chaining. + */ + public Builder setVerificationPhoneNumber( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + verificationPhoneNumber_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * verification_phone_number is the phone number used for the last verification.
+       * 
+ * + * string verification_phone_number = 9 [json_name = "verificationPhoneNumber"]; + * @return This builder for chaining. + */ + public Builder clearVerificationPhoneNumber() { + verificationPhoneNumber_ = getDefaultInstance().getVerificationPhoneNumber(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+       * verification_phone_number is the phone number used for the last verification.
+       * 
+ * + * string verification_phone_number = 9 [json_name = "verificationPhoneNumber"]; + * @param value The bytes for verificationPhoneNumber to set. + * @return This builder for chaining. + */ + public Builder setVerificationPhoneNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + verificationPhoneNumber_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings workspaceTimeoutSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettingsOrBuilder> workspaceTimeoutSettingsBuilder_; + /** + *
+       * user global workspace timeout settings
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + * @return Whether the workspaceTimeoutSettings field is set. + */ + public boolean hasWorkspaceTimeoutSettings() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+       * user global workspace timeout settings
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + * @return The workspaceTimeoutSettings. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings getWorkspaceTimeoutSettings() { + if (workspaceTimeoutSettingsBuilder_ == null) { + return workspaceTimeoutSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.getDefaultInstance() : workspaceTimeoutSettings_; + } else { + return workspaceTimeoutSettingsBuilder_.getMessage(); + } + } + /** + *
+       * user global workspace timeout settings
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + */ + public Builder setWorkspaceTimeoutSettings(io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings value) { + if (workspaceTimeoutSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspaceTimeoutSettings_ = value; + } else { + workspaceTimeoutSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * user global workspace timeout settings
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + */ + public Builder setWorkspaceTimeoutSettings( + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.Builder builderForValue) { + if (workspaceTimeoutSettingsBuilder_ == null) { + workspaceTimeoutSettings_ = builderForValue.build(); + } else { + workspaceTimeoutSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * user global workspace timeout settings
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + */ + public Builder mergeWorkspaceTimeoutSettings(io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings value) { + if (workspaceTimeoutSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + workspaceTimeoutSettings_ != null && + workspaceTimeoutSettings_ != io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.getDefaultInstance()) { + getWorkspaceTimeoutSettingsBuilder().mergeFrom(value); + } else { + workspaceTimeoutSettings_ = value; + } + } else { + workspaceTimeoutSettingsBuilder_.mergeFrom(value); + } + if (workspaceTimeoutSettings_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+       * user global workspace timeout settings
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + */ + public Builder clearWorkspaceTimeoutSettings() { + bitField0_ = (bitField0_ & ~0x00000200); + workspaceTimeoutSettings_ = null; + if (workspaceTimeoutSettingsBuilder_ != null) { + workspaceTimeoutSettingsBuilder_.dispose(); + workspaceTimeoutSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * user global workspace timeout settings
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.Builder getWorkspaceTimeoutSettingsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getWorkspaceTimeoutSettingsFieldBuilder().getBuilder(); + } + /** + *
+       * user global workspace timeout settings
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettingsOrBuilder getWorkspaceTimeoutSettingsOrBuilder() { + if (workspaceTimeoutSettingsBuilder_ != null) { + return workspaceTimeoutSettingsBuilder_.getMessageOrBuilder(); + } else { + return workspaceTimeoutSettings_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.getDefaultInstance() : workspaceTimeoutSettings_; + } + } + /** + *
+       * user global workspace timeout settings
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.WorkspaceTimeoutSettings workspace_timeout_settings = 10 [json_name = "workspaceTimeoutSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettingsOrBuilder> + getWorkspaceTimeoutSettingsFieldBuilder() { + if (workspaceTimeoutSettingsBuilder_ == null) { + workspaceTimeoutSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceTimeoutSettingsOrBuilder>( + getWorkspaceTimeoutSettings(), + getParentForChildren(), + isClean()); + workspaceTimeoutSettings_ = null; + } + return workspaceTimeoutSettingsBuilder_; + } + + private io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings emailNotificationSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings, io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettingsOrBuilder> emailNotificationSettingsBuilder_; + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + * @return Whether the emailNotificationSettings field is set. + */ + public boolean hasEmailNotificationSettings() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + * @return The emailNotificationSettings. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings getEmailNotificationSettings() { + if (emailNotificationSettingsBuilder_ == null) { + return emailNotificationSettings_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.getDefaultInstance() : emailNotificationSettings_; + } else { + return emailNotificationSettingsBuilder_.getMessage(); + } + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + */ + public Builder setEmailNotificationSettings(io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings value) { + if (emailNotificationSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + emailNotificationSettings_ = value; + } else { + emailNotificationSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + */ + public Builder setEmailNotificationSettings( + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.Builder builderForValue) { + if (emailNotificationSettingsBuilder_ == null) { + emailNotificationSettings_ = builderForValue.build(); + } else { + emailNotificationSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + */ + public Builder mergeEmailNotificationSettings(io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings value) { + if (emailNotificationSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + emailNotificationSettings_ != null && + emailNotificationSettings_ != io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.getDefaultInstance()) { + getEmailNotificationSettingsBuilder().mergeFrom(value); + } else { + emailNotificationSettings_ = value; + } + } else { + emailNotificationSettingsBuilder_.mergeFrom(value); + } + if (emailNotificationSettings_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + */ + public Builder clearEmailNotificationSettings() { + bitField0_ = (bitField0_ & ~0x00000400); + emailNotificationSettings_ = null; + if (emailNotificationSettingsBuilder_ != null) { + emailNotificationSettingsBuilder_.dispose(); + emailNotificationSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.Builder getEmailNotificationSettingsBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getEmailNotificationSettingsFieldBuilder().getBuilder(); + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettingsOrBuilder getEmailNotificationSettingsOrBuilder() { + if (emailNotificationSettingsBuilder_ != null) { + return emailNotificationSettingsBuilder_.getMessageOrBuilder(); + } else { + return emailNotificationSettings_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.getDefaultInstance() : emailNotificationSettings_; + } + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.EmailNotificationSettings email_notification_settings = 11 [json_name = "emailNotificationSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings, io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettingsOrBuilder> + getEmailNotificationSettingsFieldBuilder() { + if (emailNotificationSettingsBuilder_ == null) { + emailNotificationSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings, io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettings.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.EmailNotificationSettingsOrBuilder>( + getEmailNotificationSettings(), + getParentForChildren(), + isClean()); + emailNotificationSettings_ = null; + } + return emailNotificationSettingsBuilder_; + } + + private io.gitpod.publicapi.v1.Editor.EditorReference editorSettings_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> editorSettingsBuilder_; + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + * @return Whether the editorSettings field is set. + */ + public boolean hasEditorSettings() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + * @return The editorSettings. + */ + public io.gitpod.publicapi.v1.Editor.EditorReference getEditorSettings() { + if (editorSettingsBuilder_ == null) { + return editorSettings_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } else { + return editorSettingsBuilder_.getMessage(); + } + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + */ + public Builder setEditorSettings(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + editorSettings_ = value; + } else { + editorSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + */ + public Builder setEditorSettings( + io.gitpod.publicapi.v1.Editor.EditorReference.Builder builderForValue) { + if (editorSettingsBuilder_ == null) { + editorSettings_ = builderForValue.build(); + } else { + editorSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + */ + public Builder mergeEditorSettings(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + editorSettings_ != null && + editorSettings_ != io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance()) { + getEditorSettingsBuilder().mergeFrom(value); + } else { + editorSettings_ = value; + } + } else { + editorSettingsBuilder_.mergeFrom(value); + } + if (editorSettings_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + */ + public Builder clearEditorSettings() { + bitField0_ = (bitField0_ & ~0x00000800); + editorSettings_ = null; + if (editorSettingsBuilder_ != null) { + editorSettingsBuilder_.dispose(); + editorSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReference.Builder getEditorSettingsBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getEditorSettingsFieldBuilder().getBuilder(); + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorSettingsOrBuilder() { + if (editorSettingsBuilder_ != null) { + return editorSettingsBuilder_.getMessageOrBuilder(); + } else { + return editorSettings_ == null ? + io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editorSettings_; + } + } + /** + *
+       * +optional
+       * 
+ * + * .gitpod.v1.EditorReference editor_settings = 12 [json_name = "editorSettings"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> + getEditorSettingsFieldBuilder() { + if (editorSettingsBuilder_ == null) { + editorSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder>( + getEditorSettings(), + getParentForChildren(), + isClean()); + editorSettings_ = null; + } + return editorSettingsBuilder_; + } + + private java.lang.Object dotfileRepo_ = ""; + /** + *
+       * Git clone URL pointing to the user's dotfile repo
+       *
+       * // +optional
+       * 
+ * + * string dotfile_repo = 13 [json_name = "dotfileRepo"]; + * @return The dotfileRepo. + */ + public java.lang.String getDotfileRepo() { + java.lang.Object ref = dotfileRepo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dotfileRepo_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Git clone URL pointing to the user's dotfile repo
+       *
+       * // +optional
+       * 
+ * + * string dotfile_repo = 13 [json_name = "dotfileRepo"]; + * @return The bytes for dotfileRepo. + */ + public com.google.protobuf.ByteString + getDotfileRepoBytes() { + java.lang.Object ref = dotfileRepo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dotfileRepo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Git clone URL pointing to the user's dotfile repo
+       *
+       * // +optional
+       * 
+ * + * string dotfile_repo = 13 [json_name = "dotfileRepo"]; + * @param value The dotfileRepo to set. + * @return This builder for chaining. + */ + public Builder setDotfileRepo( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + dotfileRepo_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+       * Git clone URL pointing to the user's dotfile repo
+       *
+       * // +optional
+       * 
+ * + * string dotfile_repo = 13 [json_name = "dotfileRepo"]; + * @return This builder for chaining. + */ + public Builder clearDotfileRepo() { + dotfileRepo_ = getDefaultInstance().getDotfileRepo(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + *
+       * Git clone URL pointing to the user's dotfile repo
+       *
+       * // +optional
+       * 
+ * + * string dotfile_repo = 13 [json_name = "dotfileRepo"]; + * @param value The bytes for dotfileRepo to set. + * @return This builder for chaining. + */ + public Builder setDotfileRepoBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + dotfileRepo_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object workspaceClass_ = ""; + /** + *
+       * preferred workspace class
+       *
+       * +optional
+       * 
+ * + * string workspace_class = 14 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * preferred workspace class
+       *
+       * +optional
+       * 
+ * + * string workspace_class = 14 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * preferred workspace class
+       *
+       * +optional
+       * 
+ * + * string workspace_class = 14 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+       * preferred workspace class
+       *
+       * +optional
+       * 
+ * + * string workspace_class = 14 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + *
+       * preferred workspace class
+       *
+       * +optional
+       * 
+ * + * string workspace_class = 14 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails profile_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails, io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetailsOrBuilder> profileBuilder_; + /** + *
+       * additional user profile data
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + * @return Whether the profile field is set. + */ + public boolean hasProfile() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+       * additional user profile data
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + * @return The profile. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails getProfile() { + if (profileBuilder_ == null) { + return profile_ == null ? io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.getDefaultInstance() : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + *
+       * additional user profile data
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + */ + public Builder setProfile(io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + } else { + profileBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+       * additional user profile data
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + */ + public Builder setProfile( + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+       * additional user profile data
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + */ + public Builder mergeProfile(io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails value) { + if (profileBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + profile_ != null && + profile_ != io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.getDefaultInstance()) { + getProfileBuilder().mergeFrom(value); + } else { + profile_ = value; + } + } else { + profileBuilder_.mergeFrom(value); + } + if (profile_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + *
+       * additional user profile data
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + */ + public Builder clearProfile() { + bitField0_ = (bitField0_ & ~0x00004000); + profile_ = null; + if (profileBuilder_ != null) { + profileBuilder_.dispose(); + profileBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * additional user profile data
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.Builder getProfileBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + *
+       * additional user profile data
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetailsOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null ? + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.getDefaultInstance() : profile_; + } + } + /** + *
+       * additional user profile data
+       *
+       * +optional
+       * 
+ * + * .gitpod.v1.User.ProfileDetails profile = 15 [json_name = "profile"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails, io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetailsOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails, io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetails.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.ProfileDetailsOrBuilder>( + getProfile(), + getParentForChildren(), + isClean()); + profile_ = null; + } + return profileBuilder_; + } + + private java.util.List workspaceAutostartOptions_ = + java.util.Collections.emptyList(); + private void ensureWorkspaceAutostartOptionsIsMutable() { + if (!((bitField0_ & 0x00008000) != 0)) { + workspaceAutostartOptions_ = new java.util.ArrayList(workspaceAutostartOptions_); + bitField0_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOptionOrBuilder> workspaceAutostartOptionsBuilder_; + + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public java.util.List getWorkspaceAutostartOptionsList() { + if (workspaceAutostartOptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workspaceAutostartOptions_); + } else { + return workspaceAutostartOptionsBuilder_.getMessageList(); + } + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public int getWorkspaceAutostartOptionsCount() { + if (workspaceAutostartOptionsBuilder_ == null) { + return workspaceAutostartOptions_.size(); + } else { + return workspaceAutostartOptionsBuilder_.getCount(); + } + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption getWorkspaceAutostartOptions(int index) { + if (workspaceAutostartOptionsBuilder_ == null) { + return workspaceAutostartOptions_.get(index); + } else { + return workspaceAutostartOptionsBuilder_.getMessage(index); + } + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public Builder setWorkspaceAutostartOptions( + int index, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption value) { + if (workspaceAutostartOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.set(index, value); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public Builder setWorkspaceAutostartOptions( + int index, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder builderForValue) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.set(index, builderForValue.build()); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addWorkspaceAutostartOptions(io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption value) { + if (workspaceAutostartOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(value); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addWorkspaceAutostartOptions( + int index, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption value) { + if (workspaceAutostartOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(index, value); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addWorkspaceAutostartOptions( + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder builderForValue) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(builderForValue.build()); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addWorkspaceAutostartOptions( + int index, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder builderForValue) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.add(index, builderForValue.build()); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public Builder addAllWorkspaceAutostartOptions( + java.lang.Iterable values) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workspaceAutostartOptions_); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public Builder clearWorkspaceAutostartOptions() { + if (workspaceAutostartOptionsBuilder_ == null) { + workspaceAutostartOptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.clear(); + } + return this; + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public Builder removeWorkspaceAutostartOptions(int index) { + if (workspaceAutostartOptionsBuilder_ == null) { + ensureWorkspaceAutostartOptionsIsMutable(); + workspaceAutostartOptions_.remove(index); + onChanged(); + } else { + workspaceAutostartOptionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder getWorkspaceAutostartOptionsBuilder( + int index) { + return getWorkspaceAutostartOptionsFieldBuilder().getBuilder(index); + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOptionOrBuilder getWorkspaceAutostartOptionsOrBuilder( + int index) { + if (workspaceAutostartOptionsBuilder_ == null) { + return workspaceAutostartOptions_.get(index); } else { + return workspaceAutostartOptionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public java.util.List + getWorkspaceAutostartOptionsOrBuilderList() { + if (workspaceAutostartOptionsBuilder_ != null) { + return workspaceAutostartOptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workspaceAutostartOptions_); + } + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder addWorkspaceAutostartOptionsBuilder() { + return getWorkspaceAutostartOptionsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.getDefaultInstance()); + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder addWorkspaceAutostartOptionsBuilder( + int index) { + return getWorkspaceAutostartOptionsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.getDefaultInstance()); + } + /** + *
+       * remembered workspace auto start options
+       *
+       * +optional
+       * 
+ * + * repeated .gitpod.v1.User.WorkspaceAutostartOption workspace_autostart_options = 16 [json_name = "workspaceAutostartOptions"]; + */ + public java.util.List + getWorkspaceAutostartOptionsBuilderList() { + return getWorkspaceAutostartOptionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOptionOrBuilder> + getWorkspaceAutostartOptionsFieldBuilder() { + if (workspaceAutostartOptionsBuilder_ == null) { + workspaceAutostartOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOption.Builder, io.gitpod.publicapi.v1.UserOuterClass.User.WorkspaceAutostartOptionOrBuilder>( + workspaceAutostartOptions_, + ((bitField0_ & 0x00008000) != 0), + getParentForChildren(), + isClean()); + workspaceAutostartOptions_ = null; + } + return workspaceAutostartOptionsBuilder_; + } + + private java.lang.Object usageAttributionId_ = ""; + /** + *
+       * usage_attribution_id specifies the organization or account to which all of the
+       * user's workspace usage is attributed to, e.g. for billing purposes
+       * 
+ * + * string usage_attribution_id = 17 [json_name = "usageAttributionId"]; + * @return The usageAttributionId. + */ + public java.lang.String getUsageAttributionId() { + java.lang.Object ref = usageAttributionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + usageAttributionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * usage_attribution_id specifies the organization or account to which all of the
+       * user's workspace usage is attributed to, e.g. for billing purposes
+       * 
+ * + * string usage_attribution_id = 17 [json_name = "usageAttributionId"]; + * @return The bytes for usageAttributionId. + */ + public com.google.protobuf.ByteString + getUsageAttributionIdBytes() { + java.lang.Object ref = usageAttributionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + usageAttributionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * usage_attribution_id specifies the organization or account to which all of the
+       * user's workspace usage is attributed to, e.g. for billing purposes
+       * 
+ * + * string usage_attribution_id = 17 [json_name = "usageAttributionId"]; + * @param value The usageAttributionId to set. + * @return This builder for chaining. + */ + public Builder setUsageAttributionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + usageAttributionId_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+       * usage_attribution_id specifies the organization or account to which all of the
+       * user's workspace usage is attributed to, e.g. for billing purposes
+       * 
+ * + * string usage_attribution_id = 17 [json_name = "usageAttributionId"]; + * @return This builder for chaining. + */ + public Builder clearUsageAttributionId() { + usageAttributionId_ = getDefaultInstance().getUsageAttributionId(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + *
+       * usage_attribution_id specifies the organization or account to which all of the
+       * user's workspace usage is attributed to, e.g. for billing purposes
+       * 
+ * + * string usage_attribution_id = 17 [json_name = "usageAttributionId"]; + * @param value The bytes for usageAttributionId to set. + * @return This builder for chaining. + */ + public Builder setUsageAttributionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + usageAttributionId_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.util.List workspaceFeatureFlags_ = + java.util.Collections.emptyList(); + private void ensureWorkspaceFeatureFlagsIsMutable() { + if (!((bitField0_ & 0x00020000) != 0)) { + workspaceFeatureFlags_ = new java.util.ArrayList(workspaceFeatureFlags_); + bitField0_ |= 0x00020000; + } + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return A list containing the workspaceFeatureFlags. + */ + public java.util.List getWorkspaceFeatureFlagsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag>(workspaceFeatureFlags_, workspaceFeatureFlags_converter_); + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return The count of workspaceFeatureFlags. + */ + public int getWorkspaceFeatureFlagsCount() { + return workspaceFeatureFlags_.size(); + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param index The index of the element to return. + * @return The workspaceFeatureFlags at the given index. + */ + public io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag getWorkspaceFeatureFlags(int index) { + return workspaceFeatureFlags_converter_.convert(workspaceFeatureFlags_.get(index)); + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param index The index to set the value at. + * @param value The workspaceFeatureFlags to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceFeatureFlags( + int index, io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceFeatureFlagsIsMutable(); + workspaceFeatureFlags_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param value The workspaceFeatureFlags to add. + * @return This builder for chaining. + */ + public Builder addWorkspaceFeatureFlags(io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceFeatureFlagsIsMutable(); + workspaceFeatureFlags_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param values The workspaceFeatureFlags to add. + * @return This builder for chaining. + */ + public Builder addAllWorkspaceFeatureFlags( + java.lang.Iterable values) { + ensureWorkspaceFeatureFlagsIsMutable(); + for (io.gitpod.publicapi.v1.UserOuterClass.User.UserFeatureFlag value : values) { + workspaceFeatureFlags_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceFeatureFlags() { + workspaceFeatureFlags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @return A list containing the enum numeric values on the wire for workspaceFeatureFlags. + */ + public java.util.List + getWorkspaceFeatureFlagsValueList() { + return java.util.Collections.unmodifiableList(workspaceFeatureFlags_); + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of workspaceFeatureFlags at the given index. + */ + public int getWorkspaceFeatureFlagsValue(int index) { + return workspaceFeatureFlags_.get(index); + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for workspaceFeatureFlags to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceFeatureFlagsValue( + int index, int value) { + ensureWorkspaceFeatureFlagsIsMutable(); + workspaceFeatureFlags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param value The enum numeric value on the wire for workspaceFeatureFlags to add. + * @return This builder for chaining. + */ + public Builder addWorkspaceFeatureFlagsValue(int value) { + ensureWorkspaceFeatureFlagsIsMutable(); + workspaceFeatureFlags_.add(value); + onChanged(); + return this; + } + /** + *
+       * per-user settings to control workspace behavior
+       * 
+ * + * repeated .gitpod.v1.User.UserFeatureFlag workspace_feature_flags = 18 [json_name = "workspaceFeatureFlags"]; + * @param values The enum numeric values on the wire for workspaceFeatureFlags to add. + * @return This builder for chaining. + */ + public Builder addAllWorkspaceFeatureFlagsValue( + java.lang.Iterable values) { + ensureWorkspaceFeatureFlagsIsMutable(); + for (int value : values) { + workspaceFeatureFlags_.add(value); + } + onChanged(); + return this; + } + + private java.util.List rolesOrPermissions_ = + java.util.Collections.emptyList(); + private void ensureRolesOrPermissionsIsMutable() { + if (!((bitField0_ & 0x00040000) != 0)) { + rolesOrPermissions_ = new java.util.ArrayList(rolesOrPermissions_); + bitField0_ |= 0x00040000; + } + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return A list containing the rolesOrPermissions. + */ + public java.util.List getRolesOrPermissionsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission>(rolesOrPermissions_, rolesOrPermissions_converter_); + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return The count of rolesOrPermissions. + */ + public int getRolesOrPermissionsCount() { + return rolesOrPermissions_.size(); + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param index The index of the element to return. + * @return The rolesOrPermissions at the given index. + */ + public io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission getRolesOrPermissions(int index) { + return rolesOrPermissions_converter_.convert(rolesOrPermissions_.get(index)); + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param index The index to set the value at. + * @param value The rolesOrPermissions to set. + * @return This builder for chaining. + */ + public Builder setRolesOrPermissions( + int index, io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param value The rolesOrPermissions to add. + * @return This builder for chaining. + */ + public Builder addRolesOrPermissions(io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param values The rolesOrPermissions to add. + * @return This builder for chaining. + */ + public Builder addAllRolesOrPermissions( + java.lang.Iterable values) { + ensureRolesOrPermissionsIsMutable(); + for (io.gitpod.publicapi.v1.UserOuterClass.RoleOrPermission value : values) { + rolesOrPermissions_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return This builder for chaining. + */ + public Builder clearRolesOrPermissions() { + rolesOrPermissions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @return A list containing the enum numeric values on the wire for rolesOrPermissions. + */ + public java.util.List + getRolesOrPermissionsValueList() { + return java.util.Collections.unmodifiableList(rolesOrPermissions_); + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of rolesOrPermissions at the given index. + */ + public int getRolesOrPermissionsValue(int index) { + return rolesOrPermissions_.get(index); + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for rolesOrPermissions to set. + * @return This builder for chaining. + */ + public Builder setRolesOrPermissionsValue( + int index, int value) { + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param value The enum numeric value on the wire for rolesOrPermissions to add. + * @return This builder for chaining. + */ + public Builder addRolesOrPermissionsValue(int value) { + ensureRolesOrPermissionsIsMutable(); + rolesOrPermissions_.add(value); + onChanged(); + return this; + } + /** + *
+       * specifies the permissions and/or roles the user has
+       * 
+ * + * repeated .gitpod.v1.RoleOrPermission roles_or_permissions = 19 [json_name = "rolesOrPermissions"]; + * @param values The enum numeric values on the wire for rolesOrPermissions to add. + * @return This builder for chaining. + */ + public Builder addAllRolesOrPermissionsValue( + java.lang.Iterable values) { + ensureRolesOrPermissionsIsMutable(); + for (int value : values) { + rolesOrPermissions_.add(value); + } + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.User) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.User) + private static final io.gitpod.publicapi.v1.UserOuterClass.User DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.User(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.User getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.User getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IdentityOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.Identity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The id of the auth provider this identity was created with.
+     * 
+ * + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + java.lang.String getAuthProviderId(); + /** + *
+     * The id of the auth provider this identity was created with.
+     * 
+ * + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + com.google.protobuf.ByteString + getAuthProviderIdBytes(); + + /** + *
+     * The external account id this identity was created for.
+     * 
+ * + * string auth_id = 2 [json_name = "authId"]; + * @return The authId. + */ + java.lang.String getAuthId(); + /** + *
+     * The external account id this identity was created for.
+     * 
+ * + * string auth_id = 2 [json_name = "authId"]; + * @return The bytes for authId. + */ + com.google.protobuf.ByteString + getAuthIdBytes(); + + /** + *
+     * The external account name this identity was created for.
+     * 
+ * + * string auth_name = 3 [json_name = "authName"]; + * @return The authName. + */ + java.lang.String getAuthName(); + /** + *
+     * The external account name this identity was created for.
+     * 
+ * + * string auth_name = 3 [json_name = "authName"]; + * @return The bytes for authName. + */ + com.google.protobuf.ByteString + getAuthNameBytes(); + + /** + *
+     * The primary email of the external account.
+     * 
+ * + * string primary_email = 4 [json_name = "primaryEmail"]; + * @return The primaryEmail. + */ + java.lang.String getPrimaryEmail(); + /** + *
+     * The primary email of the external account.
+     * 
+ * + * string primary_email = 4 [json_name = "primaryEmail"]; + * @return The bytes for primaryEmail. + */ + com.google.protobuf.ByteString + getPrimaryEmailBytes(); + + /** + *
+     * The time of last signin.
+     *
+     * +optional
+     * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + * @return Whether the lastSigninTime field is set. + */ + boolean hasLastSigninTime(); + /** + *
+     * The time of last signin.
+     *
+     * +optional
+     * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + * @return The lastSigninTime. + */ + com.google.protobuf.Timestamp getLastSigninTime(); + /** + *
+     * The time of last signin.
+     *
+     * +optional
+     * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + */ + com.google.protobuf.TimestampOrBuilder getLastSigninTimeOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.Identity} + */ + public static final class Identity extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.Identity) + IdentityOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Identity.class.getName()); + } + // Use Identity.newBuilder() to construct. + private Identity(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Identity() { + authProviderId_ = ""; + authId_ = ""; + authName_ = ""; + primaryEmail_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_Identity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_Identity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.Identity.class, io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder.class); + } + + private int bitField0_; + public static final int AUTH_PROVIDER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object authProviderId_ = ""; + /** + *
+     * The id of the auth provider this identity was created with.
+     * 
+ * + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + @java.lang.Override + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } + } + /** + *
+     * The id of the auth provider this identity was created with.
+     * 
+ * + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object authId_ = ""; + /** + *
+     * The external account id this identity was created for.
+     * 
+ * + * string auth_id = 2 [json_name = "authId"]; + * @return The authId. + */ + @java.lang.Override + public java.lang.String getAuthId() { + java.lang.Object ref = authId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authId_ = s; + return s; + } + } + /** + *
+     * The external account id this identity was created for.
+     * 
+ * + * string auth_id = 2 [json_name = "authId"]; + * @return The bytes for authId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthIdBytes() { + java.lang.Object ref = authId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object authName_ = ""; + /** + *
+     * The external account name this identity was created for.
+     * 
+ * + * string auth_name = 3 [json_name = "authName"]; + * @return The authName. + */ + @java.lang.Override + public java.lang.String getAuthName() { + java.lang.Object ref = authName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authName_ = s; + return s; + } + } + /** + *
+     * The external account name this identity was created for.
+     * 
+ * + * string auth_name = 3 [json_name = "authName"]; + * @return The bytes for authName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthNameBytes() { + java.lang.Object ref = authName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIMARY_EMAIL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object primaryEmail_ = ""; + /** + *
+     * The primary email of the external account.
+     * 
+ * + * string primary_email = 4 [json_name = "primaryEmail"]; + * @return The primaryEmail. + */ + @java.lang.Override + public java.lang.String getPrimaryEmail() { + java.lang.Object ref = primaryEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryEmail_ = s; + return s; + } + } + /** + *
+     * The primary email of the external account.
+     * 
+ * + * string primary_email = 4 [json_name = "primaryEmail"]; + * @return The bytes for primaryEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrimaryEmailBytes() { + java.lang.Object ref = primaryEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_SIGNIN_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp lastSigninTime_; + /** + *
+     * The time of last signin.
+     *
+     * +optional
+     * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + * @return Whether the lastSigninTime field is set. + */ + @java.lang.Override + public boolean hasLastSigninTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The time of last signin.
+     *
+     * +optional
+     * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + * @return The lastSigninTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastSigninTime() { + return lastSigninTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSigninTime_; + } + /** + *
+     * The time of last signin.
+     *
+     * +optional
+     * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastSigninTimeOrBuilder() { + return lastSigninTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSigninTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authProviderId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, authId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(primaryEmail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, primaryEmail_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getLastSigninTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authProviderId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, authId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(primaryEmail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, primaryEmail_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLastSigninTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.UserOuterClass.Identity)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.UserOuterClass.Identity other = (io.gitpod.publicapi.v1.UserOuterClass.Identity) obj; + + if (!getAuthProviderId() + .equals(other.getAuthProviderId())) return false; + if (!getAuthId() + .equals(other.getAuthId())) return false; + if (!getAuthName() + .equals(other.getAuthName())) return false; + if (!getPrimaryEmail() + .equals(other.getPrimaryEmail())) return false; + if (hasLastSigninTime() != other.hasLastSigninTime()) return false; + if (hasLastSigninTime()) { + if (!getLastSigninTime() + .equals(other.getLastSigninTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUTH_PROVIDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderId().hashCode(); + hash = (37 * hash) + AUTH_ID_FIELD_NUMBER; + hash = (53 * hash) + getAuthId().hashCode(); + hash = (37 * hash) + AUTH_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAuthName().hashCode(); + hash = (37 * hash) + PRIMARY_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryEmail().hashCode(); + if (hasLastSigninTime()) { + hash = (37 * hash) + LAST_SIGNIN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastSigninTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.UserOuterClass.Identity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.UserOuterClass.Identity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.Identity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.Identity) + io.gitpod.publicapi.v1.UserOuterClass.IdentityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_Identity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_Identity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.UserOuterClass.Identity.class, io.gitpod.publicapi.v1.UserOuterClass.Identity.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.UserOuterClass.Identity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getLastSigninTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProviderId_ = ""; + authId_ = ""; + authName_ = ""; + primaryEmail_ = ""; + lastSigninTime_ = null; + if (lastSigninTimeBuilder_ != null) { + lastSigninTimeBuilder_.dispose(); + lastSigninTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.UserOuterClass.internal_static_gitpod_v1_Identity_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.Identity getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.UserOuterClass.Identity.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.Identity build() { + io.gitpod.publicapi.v1.UserOuterClass.Identity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.Identity buildPartial() { + io.gitpod.publicapi.v1.UserOuterClass.Identity result = new io.gitpod.publicapi.v1.UserOuterClass.Identity(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.UserOuterClass.Identity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProviderId_ = authProviderId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authId_ = authId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authName_ = authName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.primaryEmail_ = primaryEmail_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lastSigninTime_ = lastSigninTimeBuilder_ == null + ? lastSigninTime_ + : lastSigninTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.UserOuterClass.Identity) { + return mergeFrom((io.gitpod.publicapi.v1.UserOuterClass.Identity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.UserOuterClass.Identity other) { + if (other == io.gitpod.publicapi.v1.UserOuterClass.Identity.getDefaultInstance()) return this; + if (!other.getAuthProviderId().isEmpty()) { + authProviderId_ = other.authProviderId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAuthId().isEmpty()) { + authId_ = other.authId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAuthName().isEmpty()) { + authName_ = other.authName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPrimaryEmail().isEmpty()) { + primaryEmail_ = other.primaryEmail_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasLastSigninTime()) { + mergeLastSigninTime(other.getLastSigninTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + authProviderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + authId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + authName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + primaryEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + input.readMessage( + getLastSigninTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object authProviderId_ = ""; + /** + *
+       * The id of the auth provider this identity was created with.
+       * 
+ * + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The authProviderId. + */ + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The id of the auth provider this identity was created with.
+       * 
+ * + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return The bytes for authProviderId. + */ + public com.google.protobuf.ByteString + getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The id of the auth provider this identity was created with.
+       * 
+ * + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @param value The authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authProviderId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The id of the auth provider this identity was created with.
+       * 
+ * + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @return This builder for chaining. + */ + public Builder clearAuthProviderId() { + authProviderId_ = getDefaultInstance().getAuthProviderId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The id of the auth provider this identity was created with.
+       * 
+ * + * string auth_provider_id = 1 [json_name = "authProviderId"]; + * @param value The bytes for authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authProviderId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object authId_ = ""; + /** + *
+       * The external account id this identity was created for.
+       * 
+ * + * string auth_id = 2 [json_name = "authId"]; + * @return The authId. + */ + public java.lang.String getAuthId() { + java.lang.Object ref = authId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The external account id this identity was created for.
+       * 
+ * + * string auth_id = 2 [json_name = "authId"]; + * @return The bytes for authId. + */ + public com.google.protobuf.ByteString + getAuthIdBytes() { + java.lang.Object ref = authId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The external account id this identity was created for.
+       * 
+ * + * string auth_id = 2 [json_name = "authId"]; + * @param value The authId to set. + * @return This builder for chaining. + */ + public Builder setAuthId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The external account id this identity was created for.
+       * 
+ * + * string auth_id = 2 [json_name = "authId"]; + * @return This builder for chaining. + */ + public Builder clearAuthId() { + authId_ = getDefaultInstance().getAuthId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * The external account id this identity was created for.
+       * 
+ * + * string auth_id = 2 [json_name = "authId"]; + * @param value The bytes for authId to set. + * @return This builder for chaining. + */ + public Builder setAuthIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object authName_ = ""; + /** + *
+       * The external account name this identity was created for.
+       * 
+ * + * string auth_name = 3 [json_name = "authName"]; + * @return The authName. + */ + public java.lang.String getAuthName() { + java.lang.Object ref = authName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The external account name this identity was created for.
+       * 
+ * + * string auth_name = 3 [json_name = "authName"]; + * @return The bytes for authName. + */ + public com.google.protobuf.ByteString + getAuthNameBytes() { + java.lang.Object ref = authName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The external account name this identity was created for.
+       * 
+ * + * string auth_name = 3 [json_name = "authName"]; + * @param value The authName to set. + * @return This builder for chaining. + */ + public Builder setAuthName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The external account name this identity was created for.
+       * 
+ * + * string auth_name = 3 [json_name = "authName"]; + * @return This builder for chaining. + */ + public Builder clearAuthName() { + authName_ = getDefaultInstance().getAuthName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * The external account name this identity was created for.
+       * 
+ * + * string auth_name = 3 [json_name = "authName"]; + * @param value The bytes for authName to set. + * @return This builder for chaining. + */ + public Builder setAuthNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object primaryEmail_ = ""; + /** + *
+       * The primary email of the external account.
+       * 
+ * + * string primary_email = 4 [json_name = "primaryEmail"]; + * @return The primaryEmail. + */ + public java.lang.String getPrimaryEmail() { + java.lang.Object ref = primaryEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The primary email of the external account.
+       * 
+ * + * string primary_email = 4 [json_name = "primaryEmail"]; + * @return The bytes for primaryEmail. + */ + public com.google.protobuf.ByteString + getPrimaryEmailBytes() { + java.lang.Object ref = primaryEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The primary email of the external account.
+       * 
+ * + * string primary_email = 4 [json_name = "primaryEmail"]; + * @param value The primaryEmail to set. + * @return This builder for chaining. + */ + public Builder setPrimaryEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + primaryEmail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The primary email of the external account.
+       * 
+ * + * string primary_email = 4 [json_name = "primaryEmail"]; + * @return This builder for chaining. + */ + public Builder clearPrimaryEmail() { + primaryEmail_ = getDefaultInstance().getPrimaryEmail(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * The primary email of the external account.
+       * 
+ * + * string primary_email = 4 [json_name = "primaryEmail"]; + * @param value The bytes for primaryEmail to set. + * @return This builder for chaining. + */ + public Builder setPrimaryEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + primaryEmail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastSigninTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSigninTimeBuilder_; + /** + *
+       * The time of last signin.
+       *
+       * +optional
+       * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + * @return Whether the lastSigninTime field is set. + */ + public boolean hasLastSigninTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * The time of last signin.
+       *
+       * +optional
+       * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + * @return The lastSigninTime. + */ + public com.google.protobuf.Timestamp getLastSigninTime() { + if (lastSigninTimeBuilder_ == null) { + return lastSigninTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSigninTime_; + } else { + return lastSigninTimeBuilder_.getMessage(); + } + } + /** + *
+       * The time of last signin.
+       *
+       * +optional
+       * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + */ + public Builder setLastSigninTime(com.google.protobuf.Timestamp value) { + if (lastSigninTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastSigninTime_ = value; + } else { + lastSigninTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * The time of last signin.
+       *
+       * +optional
+       * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + */ + public Builder setLastSigninTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastSigninTimeBuilder_ == null) { + lastSigninTime_ = builderForValue.build(); + } else { + lastSigninTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * The time of last signin.
+       *
+       * +optional
+       * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + */ + public Builder mergeLastSigninTime(com.google.protobuf.Timestamp value) { + if (lastSigninTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + lastSigninTime_ != null && + lastSigninTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastSigninTimeBuilder().mergeFrom(value); + } else { + lastSigninTime_ = value; + } + } else { + lastSigninTimeBuilder_.mergeFrom(value); + } + if (lastSigninTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+       * The time of last signin.
+       *
+       * +optional
+       * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + */ + public Builder clearLastSigninTime() { + bitField0_ = (bitField0_ & ~0x00000010); + lastSigninTime_ = null; + if (lastSigninTimeBuilder_ != null) { + lastSigninTimeBuilder_.dispose(); + lastSigninTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The time of last signin.
+       *
+       * +optional
+       * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + */ + public com.google.protobuf.Timestamp.Builder getLastSigninTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getLastSigninTimeFieldBuilder().getBuilder(); + } + /** + *
+       * The time of last signin.
+       *
+       * +optional
+       * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getLastSigninTimeOrBuilder() { + if (lastSigninTimeBuilder_ != null) { + return lastSigninTimeBuilder_.getMessageOrBuilder(); + } else { + return lastSigninTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastSigninTime_; + } + } + /** + *
+       * The time of last signin.
+       *
+       * +optional
+       * 
+ * + * .google.protobuf.Timestamp last_signin_time = 6 [json_name = "lastSigninTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getLastSigninTimeFieldBuilder() { + if (lastSigninTimeBuilder_ == null) { + lastSigninTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastSigninTime(), + getParentForChildren(), + isClean()); + lastSigninTime_ = null; + } + return lastSigninTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.Identity) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.Identity) + private static final io.gitpod.publicapi.v1.UserOuterClass.Identity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.UserOuterClass.Identity(); + } + + public static io.gitpod.publicapi.v1.UserOuterClass.Identity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Identity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.UserOuterClass.Identity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetAuthenticatedUserRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetAuthenticatedUserRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetAuthenticatedUserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetAuthenticatedUserResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateUserRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateUserRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_CoachmarksDismissalsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_CoachmarksDismissalsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateUserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateUserResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteUserRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteUserRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteUserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteUserResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_VerifyUserRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_VerifyUserRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_VerifyUserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_VerifyUserResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_BlockUserRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_BlockUserRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_BlockUserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_BlockUserResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListUsersRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListUsersRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListUsersResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListUsersResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetUserRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetUserRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetUserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetUserResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SetRolesOrPermissionsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SetRolesOrPermissionsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SetRolesOrPermissionsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SetRolesOrPermissionsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_User_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_User_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_User_EmailNotificationSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_User_EmailNotificationSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_User_ProfileDetails_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_User_ProfileDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_User_ProfileDetails_CoachmarksDismissalsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_User_ProfileDetails_CoachmarksDismissalsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_User_WorkspaceAutostartOption_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_User_WorkspaceAutostartOption_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_Identity_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_Identity_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\024gitpod/v1/user.proto\022\tgitpod.v1\032\026gitpo" + + "d/v1/editor.proto\032\032gitpod/v1/pagination." + + "proto\032\027gitpod/v1/sorting.proto\032\036google/p" + + "rotobuf/duration.proto\032 google/protobuf/" + + "field_mask.proto\032\037google/protobuf/timest" + + "amp.proto\"\035\n\033GetAuthenticatedUserRequest" + + "\"C\n\034GetAuthenticatedUserResponse\022#\n\004user" + + "\030\001 \001(\0132\017.gitpod.v1.UserR\004user\"\363\003\n#SetWor" + + "kspaceAutoStartOptionsRequest\022\027\n\007user_id" + + "\030\001 \001(\tR\006userId\022\207\001\n\033workspace_autostart_o" + + "ptions\030\002 \003(\0132G.gitpod.v1.SetWorkspaceAut" + + "oStartOptionsRequest.WorkspaceAutostartO" + + "ptionR\031workspaceAutostartOptions\032\250\002\n\030Wor" + + "kspaceAutostartOption\022\033\n\tclone_url\030\001 \001(\t" + + "R\010cloneUrl\022\'\n\017organization_id\030\002 \001(\tR\016org" + + "anizationId\022,\n\017workspace_class\030\003 \001(\tH\000R\016" + + "workspaceClass\210\001\001\022H\n\017editor_settings\030\004 \001" + + "(\0132\032.gitpod.v1.EditorReferenceH\001R\016editor" + + "Settings\210\001\001\022\033\n\006region\030\005 \001(\tH\002R\006region\210\001\001" + + "B\022\n\020_workspace_classB\022\n\020_editor_settings" + + "B\t\n\007_region\"&\n$SetWorkspaceAutoStartOpti" + + "onsResponse\"\206\021\n\021UpdateUserRequest\022\027\n\007use" + + "r_id\030\001 \001(\tR\006userId\022\027\n\004name\030\002 \001(\tH\000R\004name" + + "\210\001\001\022D\n\034accepted_privacy_policy_date\030\003 \001(" + + "\tH\001R\031acceptedPrivacyPolicyDate\210\001\001\022J\n\007pro" + + "file\030\004 \001(\0132+.gitpod.v1.UpdateUserRequest" + + ".ProfileDetailsH\002R\007profile\210\001\001\022(\n\remail_a" + + "ddress\030\005 \001(\tH\003R\014emailAddress\210\001\001\022H\n\017edito" + + "r_settings\030\006 \001(\0132\032.gitpod.v1.EditorRefer" + + "enceH\004R\016editorSettings\210\001\001\022{\n\033email_notif" + + "ication_settings\030\007 \001(\01326.gitpod.v1.Updat" + + "eUserRequest.EmailNotificationSettingsH\005" + + "R\031emailNotificationSettings\210\001\001\022x\n\032worksp" + + "ace_timeout_settings\030\010 \001(\01325.gitpod.v1.U" + + "pdateUserRequest.WorkspaceTimeoutSetting" + + "sH\006R\030workspaceTimeoutSettings\210\001\001\022&\n\014dotf" + + "ile_repo\030\t \001(\tH\007R\013dotfileRepo\210\001\001\032\242\007\n\016Pro" + + "fileDetails\022@\n\032last_updated_details_nudg" + + "e\030\001 \001(\tH\000R\027lastUpdatedDetailsNudge\210\001\001\022D\n" + + "\034accepted_privacy_policy_date\030\002 \001(\tH\001R\031a" + + "cceptedPrivacyPolicyDate\210\001\001\022&\n\014company_n" + + "ame\030\003 \001(\tH\002R\013companyName\210\001\001\022(\n\remail_add" + + "ress\030\004 \001(\tH\003R\014emailAddress\210\001\001\022\036\n\010job_rol" + + "e\030\005 \001(\tH\004R\007jobRole\210\001\001\022)\n\016job_role_other\030" + + "\006 \001(\tH\005R\014jobRoleOther\210\001\001\022/\n\023exploration_" + + "reasons\030\007 \003(\tR\022explorationReasons\022!\n\014sig" + + "nup_goals\030\010 \003(\tR\013signupGoals\0221\n\022signup_g" + + "oals_other\030\n \001(\tH\006R\020signupGoalsOther\210\001\001\022" + + "4\n\023onboarded_timestamp\030\013 \001(\tH\007R\022onboarde" + + "dTimestamp\210\001\001\022&\n\014company_size\030\014 \001(\tH\010R\013c" + + "ompanySize\210\001\001\022z\n\025coachmarks_dismissals\030\r" + + " \003(\0132E.gitpod.v1.UpdateUserRequest.Profi" + + "leDetails.CoachmarksDismissalsEntryR\024coa" + + "chmarksDismissals\032G\n\031CoachmarksDismissal" + + "sEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR" + + "\005value:\0028\001B\035\n\033_last_updated_details_nudg" + + "eB\037\n\035_accepted_privacy_policy_dateB\017\n\r_c" + + "ompany_nameB\020\n\016_email_addressB\013\n\t_job_ro" + + "leB\021\n\017_job_role_otherB\025\n\023_signup_goals_o" + + "therB\026\n\024_onboarded_timestampB\017\n\r_company" + + "_size\032\210\002\n\031EmailNotificationSettings\0227\n\025a" + + "llows_changelog_mail\030\001 \001(\010H\000R\023allowsChan" + + "gelogMail\210\001\001\022-\n\020allows_devx_mail\030\002 \001(\010H\001" + + "R\016allowsDevxMail\210\001\001\0229\n\026allows_onboarding" + + "_mail\030\003 \001(\010H\002R\024allowsOnboardingMail\210\001\001B\030" + + "\n\026_allows_changelog_mailB\023\n\021_allows_devx" + + "_mailB\031\n\027_allows_onboarding_mail\032\275\001\n\030Wor" + + "kspaceTimeoutSettings\022>\n\ninactivity\030\001 \001(" + + "\0132\031.google.protobuf.DurationH\000R\ninactivi" + + "ty\210\001\001\0228\n\025disabled_disconnected\030\002 \001(\010H\001R\024" + + "disabledDisconnected\210\001\001B\r\n\013_inactivityB\030" + + "\n\026_disabled_disconnectedB\007\n\005_nameB\037\n\035_ac" + + "cepted_privacy_policy_dateB\n\n\010_profileB\020" + + "\n\016_email_addressB\022\n\020_editor_settingsB\036\n\034" + + "_email_notification_settingsB\035\n\033_workspa" + + "ce_timeout_settingsB\017\n\r_dotfile_repo\"9\n\022" + + "UpdateUserResponse\022#\n\004user\030\001 \001(\0132\017.gitpo" + + "d.v1.UserR\004user\",\n\021DeleteUserRequest\022\027\n\007" + + "user_id\030\001 \001(\tR\006userId\"\024\n\022DeleteUserRespo" + + "nse\",\n\021VerifyUserRequest\022\027\n\007user_id\030\001 \001(" + + "\tR\006userId\"9\n\022VerifyUserResponse\022#\n\004user\030" + + "\001 \001(\0132\017.gitpod.v1.UserR\004user\"E\n\020BlockUse" + + "rRequest\022\027\n\007user_id\030\001 \001(\tR\006userId\022\030\n\007blo" + + "cked\030\002 \001(\010R\007blocked\"8\n\021BlockUserResponse" + + "\022#\n\004user\030\001 \001(\0132\017.gitpod.v1.UserR\004user\"\226\001" + + "\n\020ListUsersRequest\022\037\n\013search_term\030\001 \001(\tR" + + "\nsearchTerm\022<\n\npagination\030\002 \001(\0132\034.gitpod" + + ".v1.PaginationRequestR\npagination\022#\n\004sor" + + "t\030\003 \003(\0132\017.gitpod.v1.SortR\004sort\"y\n\021ListUs" + + "ersResponse\022%\n\005users\030\001 \003(\0132\017.gitpod.v1.U" + + "serR\005users\022=\n\npagination\030\002 \001(\0132\035.gitpod." + + "v1.PaginationResponseR\npagination\")\n\016Get" + + "UserRequest\022\027\n\007user_id\030\001 \001(\tR\006userId\"6\n\017" + + "GetUserResponse\022#\n\004user\030\001 \001(\0132\017.gitpod.v" + + "1.UserR\004user\"\301\001\n\034SetRolesOrPermissionsRe" + + "quest\022\027\n\007user_id\030\001 \001(\tR\006userId\022M\n\024roles_" + + "or_permissions\030\002 \003(\0162\033.gitpod.v1.RoleOrP" + + "ermissionR\022rolesOrPermissions\0229\n\nreset_m" + + "ask\030\003 \001(\0132\032.google.protobuf.FieldMaskR\tr" + + "esetMask\"D\n\035SetRolesOrPermissionsRespons" + + "e\022#\n\004user\030\001 \001(\0132\017.gitpod.v1.UserR\004user\"\252" + + "\024\n\004User\022\016\n\002id\030\001 \001(\tR\002id\022\'\n\017organization_" + + "id\030\002 \001(\tR\016organizationId\022\022\n\004name\030\003 \001(\tR\004" + + "name\022\035\n\navatar_url\030\004 \001(\tR\tavatarUrl\0229\n\nc" + + "reated_at\030\005 \001(\0132\032.google.protobuf.Timest" + + "ampR\tcreatedAt\0223\n\nidentities\030\006 \003(\0132\023.git" + + "pod.v1.IdentityR\nidentities\022\030\n\007blocked\030\007" + + " \001(\010R\007blocked\022P\n\026last_verification_time\030" + + "\010 \001(\0132\032.google.protobuf.TimestampR\024lastV" + + "erificationTime\022:\n\031verification_phone_nu" + + "mber\030\t \001(\tR\027verificationPhoneNumber\022f\n\032w" + + "orkspace_timeout_settings\030\n \001(\0132(.gitpod" + + ".v1.User.WorkspaceTimeoutSettingsR\030works" + + "paceTimeoutSettings\022i\n\033email_notificatio" + + "n_settings\030\013 \001(\0132).gitpod.v1.User.EmailN" + + "otificationSettingsR\031emailNotificationSe" + + "ttings\022C\n\017editor_settings\030\014 \001(\0132\032.gitpod" + + ".v1.EditorReferenceR\016editorSettings\022!\n\014d" + + "otfile_repo\030\r \001(\tR\013dotfileRepo\022\'\n\017worksp" + + "ace_class\030\016 \001(\tR\016workspaceClass\0228\n\007profi" + + "le\030\017 \001(\0132\036.gitpod.v1.User.ProfileDetails" + + "R\007profile\022h\n\033workspace_autostart_options" + + "\030\020 \003(\0132(.gitpod.v1.User.WorkspaceAutosta" + + "rtOptionR\031workspaceAutostartOptions\0220\n\024u" + + "sage_attribution_id\030\021 \001(\tR\022usageAttribut" + + "ionId\022W\n\027workspace_feature_flags\030\022 \003(\0162\037" + + ".gitpod.v1.User.UserFeatureFlagR\025workspa" + + "ceFeatureFlags\022M\n\024roles_or_permissions\030\023" + + " \003(\0162\033.gitpod.v1.RoleOrPermissionR\022roles" + + "OrPermissions\032\212\001\n\030WorkspaceTimeoutSettin" + + "gs\0229\n\ninactivity\030\001 \001(\0132\031.google.protobuf" + + ".DurationR\ninactivity\0223\n\025disabled_discon" + + "nected\030\002 \001(\010R\024disabledDisconnected\032\257\001\n\031E" + + "mailNotificationSettings\0222\n\025allows_chang" + + "elog_mail\030\001 \001(\010R\023allowsChangelogMail\022(\n\020" + + "allows_devx_mail\030\002 \001(\010R\016allowsDevxMail\0224" + + "\n\026allows_onboarding_mail\030\003 \001(\010R\024allowsOn" + + "boardingMail\032\245\005\n\016ProfileDetails\022;\n\032last_" + + "updated_details_nudge\030\001 \001(\tR\027lastUpdated" + + "DetailsNudge\022?\n\034accepted_privacy_policy_" + + "date\030\002 \001(\tR\031acceptedPrivacyPolicyDate\022!\n" + + "\014company_name\030\003 \001(\tR\013companyName\022#\n\remai" + + "l_address\030\004 \001(\tR\014emailAddress\022\031\n\010job_rol" + + "e\030\005 \001(\tR\007jobRole\022$\n\016job_role_other\030\006 \001(\t" + + "R\014jobRoleOther\022/\n\023exploration_reasons\030\007 " + + "\003(\tR\022explorationReasons\022!\n\014signup_goals\030" + + "\010 \003(\tR\013signupGoals\022,\n\022signup_goals_other" + + "\030\n \001(\tR\020signupGoalsOther\022/\n\023onboarded_ti" + + "mestamp\030\013 \001(\tR\022onboardedTimestamp\022!\n\014com" + + "pany_size\030\014 \001(\tR\013companySize\022m\n\025coachmar" + + "ks_dismissals\030\r \003(\01328.gitpod.v1.User.Pro" + + "fileDetails.CoachmarksDismissalsEntryR\024c" + + "oachmarksDismissals\032G\n\031CoachmarksDismiss" + + "alsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(" + + "\tR\005value:\0028\001\032\346\001\n\030WorkspaceAutostartOptio" + + "n\022\033\n\tclone_url\030\001 \001(\tR\010cloneUrl\022\'\n\017organi" + + "zation_id\030\002 \001(\tR\016organizationId\022\'\n\017works" + + "pace_class\030\003 \001(\tR\016workspaceClass\022C\n\017edit" + + "or_settings\030\004 \001(\0132\032.gitpod.v1.EditorRefe" + + "renceR\016editorSettings\022\026\n\006region\030\005 \001(\tR\006r" + + "egion\"\353\001\n\017UserFeatureFlag\022!\n\035USER_FEATUR" + + "E_FLAG_UNSPECIFIED\020\000\022+\n\'USER_FEATURE_FLA" + + "G_FULL_WORKSPACE_BACKUP\020\001\022.\n*USER_FEATUR" + + "E_FLAG_WORKSPACE_CLASS_LIMITING\020\002\0223\n/USE" + + "R_FEATURE_FLAG_WORKSPACE_CONNECTION_LIMI" + + "TING\020\003\022#\n\037USER_FEATURE_FLAG_WORKSPACE_PS" + + "I\020\004\"\325\001\n\010Identity\022(\n\020auth_provider_id\030\001 \001" + + "(\tR\016authProviderId\022\027\n\007auth_id\030\002 \001(\tR\006aut" + + "hId\022\033\n\tauth_name\030\003 \001(\tR\010authName\022#\n\rprim" + + "ary_email\030\004 \001(\tR\014primaryEmail\022D\n\020last_si" + + "gnin_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "ampR\016lastSigninTime*\330\003\n\020RoleOrPermission" + + "\022\"\n\036ROLE_OR_PERMISSION_UNSPECIFIED\020\000\022\035\n\031" + + "ROLE_OR_PERMISSION_DEVOPS\020\001\022\035\n\031ROLE_OR_P" + + "ERMISSION_VIEWER\020\002\022\034\n\030ROLE_OR_PERMISSION" + + "_ADMIN\020\003\022 \n\034ROLE_OR_PERMISSION_DEVELOPER" + + "\020\004\022&\n\"ROLE_OR_PERMISSION_REGISTRY_ACCESS" + + "\020\005\022(\n$ROLE_OR_PERMISSION_ADMIN_PERMISSIO" + + "NS\020\006\022\"\n\036ROLE_OR_PERMISSION_ADMIN_USERS\020\007" + + "\022.\n*ROLE_OR_PERMISSION_ADMIN_WORKSPACE_C" + + "ONTENT\020\010\022\'\n#ROLE_OR_PERMISSION_ADMIN_WOR" + + "KSPACES\020\t\022%\n!ROLE_OR_PERMISSION_ADMIN_PR" + + "OJECTS\020\n\022,\n(ROLE_OR_PERMISSION_NEW_WORKS" + + "PACE_CLUSTER\020\0132\251\006\n\013UserService\022i\n\024GetAut" + + "henticatedUser\022&.gitpod.v1.GetAuthentica" + + "tedUserRequest\032\'.gitpod.v1.GetAuthentica" + + "tedUserResponse\"\000\022K\n\nUpdateUser\022\034.gitpod" + + ".v1.UpdateUserRequest\032\035.gitpod.v1.Update" + + "UserResponse\"\000\022\201\001\n\034SetWorkspaceAutoStart" + + "Options\022..gitpod.v1.SetWorkspaceAutoStar" + + "tOptionsRequest\032/.gitpod.v1.SetWorkspace" + + "AutoStartOptionsResponse\"\000\022K\n\nDeleteUser" + + "\022\034.gitpod.v1.DeleteUserRequest\032\035.gitpod." + + "v1.DeleteUserResponse\"\000\022K\n\nVerifyUser\022\034." + + "gitpod.v1.VerifyUserRequest\032\035.gitpod.v1." + + "VerifyUserResponse\"\000\022H\n\tBlockUser\022\033.gitp" + + "od.v1.BlockUserRequest\032\034.gitpod.v1.Block" + + "UserResponse\"\000\022H\n\tListUsers\022\033.gitpod.v1." + + "ListUsersRequest\032\034.gitpod.v1.ListUsersRe" + + "sponse\"\000\022B\n\007GetUser\022\031.gitpod.v1.GetUserR" + + "equest\032\032.gitpod.v1.GetUserResponse\"\000\022l\n\025" + + "SetRolesOrPermissions\022\'.gitpod.v1.SetRol" + + "esOrPermissionsRequest\032(.gitpod.v1.SetRo" + + "lesOrPermissionsResponse\"\000BQ\n\026io.gitpod." + + "publicapi.v1Z7github.com/gitpod-io/gitpo" + + "d/components/public-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Editor.getDescriptor(), + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + io.gitpod.publicapi.v1.Sorting.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_v1_GetAuthenticatedUserRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_GetAuthenticatedUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetAuthenticatedUserRequest_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_GetAuthenticatedUserResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_GetAuthenticatedUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetAuthenticatedUserResponse_descriptor, + new java.lang.String[] { "User", }); + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_descriptor, + new java.lang.String[] { "UserId", "WorkspaceAutostartOptions", }); + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_descriptor = + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsRequest_WorkspaceAutostartOption_descriptor, + new java.lang.String[] { "CloneUrl", "OrganizationId", "WorkspaceClass", "EditorSettings", "Region", }); + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SetWorkspaceAutoStartOptionsResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_UpdateUserRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_UpdateUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateUserRequest_descriptor, + new java.lang.String[] { "UserId", "Name", "AcceptedPrivacyPolicyDate", "Profile", "EmailAddress", "EditorSettings", "EmailNotificationSettings", "WorkspaceTimeoutSettings", "DotfileRepo", }); + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_descriptor = + internal_static_gitpod_v1_UpdateUserRequest_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_descriptor, + new java.lang.String[] { "LastUpdatedDetailsNudge", "AcceptedPrivacyPolicyDate", "CompanyName", "EmailAddress", "JobRole", "JobRoleOther", "ExplorationReasons", "SignupGoals", "SignupGoalsOther", "OnboardedTimestamp", "CompanySize", "CoachmarksDismissals", }); + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_CoachmarksDismissalsEntry_descriptor = + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_CoachmarksDismissalsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateUserRequest_ProfileDetails_CoachmarksDismissalsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_descriptor = + internal_static_gitpod_v1_UpdateUserRequest_descriptor.getNestedTypes().get(1); + internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateUserRequest_EmailNotificationSettings_descriptor, + new java.lang.String[] { "AllowsChangelogMail", "AllowsDevxMail", "AllowsOnboardingMail", }); + internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_descriptor = + internal_static_gitpod_v1_UpdateUserRequest_descriptor.getNestedTypes().get(2); + internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateUserRequest_WorkspaceTimeoutSettings_descriptor, + new java.lang.String[] { "Inactivity", "DisabledDisconnected", }); + internal_static_gitpod_v1_UpdateUserResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_UpdateUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateUserResponse_descriptor, + new java.lang.String[] { "User", }); + internal_static_gitpod_v1_DeleteUserRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_DeleteUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteUserRequest_descriptor, + new java.lang.String[] { "UserId", }); + internal_static_gitpod_v1_DeleteUserResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_DeleteUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteUserResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_VerifyUserRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_VerifyUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_VerifyUserRequest_descriptor, + new java.lang.String[] { "UserId", }); + internal_static_gitpod_v1_VerifyUserResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_VerifyUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_VerifyUserResponse_descriptor, + new java.lang.String[] { "User", }); + internal_static_gitpod_v1_BlockUserRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_BlockUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_BlockUserRequest_descriptor, + new java.lang.String[] { "UserId", "Blocked", }); + internal_static_gitpod_v1_BlockUserResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_v1_BlockUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_BlockUserResponse_descriptor, + new java.lang.String[] { "User", }); + internal_static_gitpod_v1_ListUsersRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_v1_ListUsersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListUsersRequest_descriptor, + new java.lang.String[] { "SearchTerm", "Pagination", "Sort", }); + internal_static_gitpod_v1_ListUsersResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_v1_ListUsersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListUsersResponse_descriptor, + new java.lang.String[] { "Users", "Pagination", }); + internal_static_gitpod_v1_GetUserRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_v1_GetUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetUserRequest_descriptor, + new java.lang.String[] { "UserId", }); + internal_static_gitpod_v1_GetUserResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_v1_GetUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetUserResponse_descriptor, + new java.lang.String[] { "User", }); + internal_static_gitpod_v1_SetRolesOrPermissionsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_gitpod_v1_SetRolesOrPermissionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SetRolesOrPermissionsRequest_descriptor, + new java.lang.String[] { "UserId", "RolesOrPermissions", "ResetMask", }); + internal_static_gitpod_v1_SetRolesOrPermissionsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_gitpod_v1_SetRolesOrPermissionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SetRolesOrPermissionsResponse_descriptor, + new java.lang.String[] { "User", }); + internal_static_gitpod_v1_User_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_gitpod_v1_User_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_User_descriptor, + new java.lang.String[] { "Id", "OrganizationId", "Name", "AvatarUrl", "CreatedAt", "Identities", "Blocked", "LastVerificationTime", "VerificationPhoneNumber", "WorkspaceTimeoutSettings", "EmailNotificationSettings", "EditorSettings", "DotfileRepo", "WorkspaceClass", "Profile", "WorkspaceAutostartOptions", "UsageAttributionId", "WorkspaceFeatureFlags", "RolesOrPermissions", }); + internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_descriptor = + internal_static_gitpod_v1_User_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_User_WorkspaceTimeoutSettings_descriptor, + new java.lang.String[] { "Inactivity", "DisabledDisconnected", }); + internal_static_gitpod_v1_User_EmailNotificationSettings_descriptor = + internal_static_gitpod_v1_User_descriptor.getNestedTypes().get(1); + internal_static_gitpod_v1_User_EmailNotificationSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_User_EmailNotificationSettings_descriptor, + new java.lang.String[] { "AllowsChangelogMail", "AllowsDevxMail", "AllowsOnboardingMail", }); + internal_static_gitpod_v1_User_ProfileDetails_descriptor = + internal_static_gitpod_v1_User_descriptor.getNestedTypes().get(2); + internal_static_gitpod_v1_User_ProfileDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_User_ProfileDetails_descriptor, + new java.lang.String[] { "LastUpdatedDetailsNudge", "AcceptedPrivacyPolicyDate", "CompanyName", "EmailAddress", "JobRole", "JobRoleOther", "ExplorationReasons", "SignupGoals", "SignupGoalsOther", "OnboardedTimestamp", "CompanySize", "CoachmarksDismissals", }); + internal_static_gitpod_v1_User_ProfileDetails_CoachmarksDismissalsEntry_descriptor = + internal_static_gitpod_v1_User_ProfileDetails_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_User_ProfileDetails_CoachmarksDismissalsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_User_ProfileDetails_CoachmarksDismissalsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_gitpod_v1_User_WorkspaceAutostartOption_descriptor = + internal_static_gitpod_v1_User_descriptor.getNestedTypes().get(3); + internal_static_gitpod_v1_User_WorkspaceAutostartOption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_User_WorkspaceAutostartOption_descriptor, + new java.lang.String[] { "CloneUrl", "OrganizationId", "WorkspaceClass", "EditorSettings", "Region", }); + internal_static_gitpod_v1_Identity_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_gitpod_v1_Identity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_Identity_descriptor, + new java.lang.String[] { "AuthProviderId", "AuthId", "AuthName", "PrimaryEmail", "LastSigninTime", }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Editor.getDescriptor(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + io.gitpod.publicapi.v1.Sorting.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserServiceClient.kt new file mode 100644 index 00000000000000..4df67a4d909b65 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserServiceClient.kt @@ -0,0 +1,173 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/user.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class UserServiceClient( + private val client: ProtocolClientInterface, +) : UserServiceClientInterface { + /** + * GetAuthenticatedUser allows to retrieve the current user. + */ + override suspend fun getAuthenticatedUser(request: UserOuterClass.GetAuthenticatedUserRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.UserService/GetAuthenticatedUser", + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserRequest::class, + io.gitpod.publicapi.v1.UserOuterClass.GetAuthenticatedUserResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateUser updates the properties of a user. + */ + override suspend fun updateUser(request: UserOuterClass.UpdateUserRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.UserService/UpdateUser", + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserRequest::class, + io.gitpod.publicapi.v1.UserOuterClass.UpdateUserResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * SetWorkspaceAutoStartOptions updates the auto start options for the Gitpod Dashboard. + * +internal - only used by the Gitpod Dashboard. + */ + override suspend + fun setWorkspaceAutoStartOptions(request: UserOuterClass.SetWorkspaceAutoStartOptionsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.UserService/SetWorkspaceAutoStartOptions", + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsRequest::class, + io.gitpod.publicapi.v1.UserOuterClass.SetWorkspaceAutoStartOptionsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteUser deletes the specified user. + */ + override suspend fun deleteUser(request: UserOuterClass.DeleteUserRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.UserService/DeleteUser", + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserRequest::class, + io.gitpod.publicapi.v1.UserOuterClass.DeleteUserResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * VerifyUser markes the specified user as verified. + * +admin – only to be used by installation admins + */ + override suspend fun verifyUser(request: UserOuterClass.VerifyUserRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.UserService/VerifyUser", + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserRequest::class, + io.gitpod.publicapi.v1.UserOuterClass.VerifyUserResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * BlockUser markes the specified user as blocked. + * +admin – only to be used by installation admins + */ + override suspend fun blockUser(request: UserOuterClass.BlockUserRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.UserService/BlockUser", + io.gitpod.publicapi.v1.UserOuterClass.BlockUserRequest::class, + io.gitpod.publicapi.v1.UserOuterClass.BlockUserResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListUsers markes the specified user as blocked. + * +admin – only to be used by installation admins + */ + override suspend fun listUsers(request: UserOuterClass.ListUsersRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.UserService/ListUsers", + io.gitpod.publicapi.v1.UserOuterClass.ListUsersRequest::class, + io.gitpod.publicapi.v1.UserOuterClass.ListUsersResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetUser allows to retrieve the specified user. + * +admin – only to be used by installation admins + */ + override suspend fun getUser(request: UserOuterClass.GetUserRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.UserService/GetUser", + io.gitpod.publicapi.v1.UserOuterClass.GetUserRequest::class, + io.gitpod.publicapi.v1.UserOuterClass.GetUserResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * SetRolesOrPermissions allows to set roles or permissions for the specified user. + * +admin – only to be used by installation admins + */ + override suspend fun setRolesOrPermissions(request: UserOuterClass.SetRolesOrPermissionsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.UserService/SetRolesOrPermissions", + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsRequest::class, + io.gitpod.publicapi.v1.UserOuterClass.SetRolesOrPermissionsResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserServiceClientInterface.kt new file mode 100644 index 00000000000000..eeba3497fb860b --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/UserServiceClientInterface.kt @@ -0,0 +1,76 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/user.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface UserServiceClientInterface { + /** + * GetAuthenticatedUser allows to retrieve the current user. + */ + public suspend fun getAuthenticatedUser(request: UserOuterClass.GetAuthenticatedUserRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * UpdateUser updates the properties of a user. + */ + public suspend fun updateUser(request: UserOuterClass.UpdateUserRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * SetWorkspaceAutoStartOptions updates the auto start options for the Gitpod Dashboard. + * +internal - only used by the Gitpod Dashboard. + */ + public suspend + fun setWorkspaceAutoStartOptions(request: UserOuterClass.SetWorkspaceAutoStartOptionsRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * DeleteUser deletes the specified user. + */ + public suspend fun deleteUser(request: UserOuterClass.DeleteUserRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * VerifyUser markes the specified user as verified. + * +admin – only to be used by installation admins + */ + public suspend fun verifyUser(request: UserOuterClass.VerifyUserRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * BlockUser markes the specified user as blocked. + * +admin – only to be used by installation admins + */ + public suspend fun blockUser(request: UserOuterClass.BlockUserRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * ListUsers markes the specified user as blocked. + * +admin – only to be used by installation admins + */ + public suspend fun listUsers(request: UserOuterClass.ListUsersRequest, headers: Headers = + emptyMap()): ResponseMessage + + /** + * GetUser allows to retrieve the specified user. + * +admin – only to be used by installation admins + */ + public suspend fun getUser(request: UserOuterClass.GetUserRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * SetRolesOrPermissions allows to set roles or permissions for the specified user. + * +admin – only to be used by installation admins + */ + public suspend fun setRolesOrPermissions(request: UserOuterClass.SetRolesOrPermissionsRequest, + headers: Headers = emptyMap()): ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Verification.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Verification.java new file mode 100644 index 00000000000000..fce19d5f7d2303 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/Verification.java @@ -0,0 +1,2600 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/verification.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class Verification { + private Verification() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Verification.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SendPhoneNumberVerificationTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SendPhoneNumberVerificationTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * phone_number in E.164 format
+     * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + /** + *
+     * phone_number in E.164 format
+     * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString + getPhoneNumberBytes(); + } + /** + *
+   * Required fields:
+   * - phone_number
+   * 
+ * + * Protobuf type {@code gitpod.v1.SendPhoneNumberVerificationTokenRequest} + */ + public static final class SendPhoneNumberVerificationTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SendPhoneNumberVerificationTokenRequest) + SendPhoneNumberVerificationTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SendPhoneNumberVerificationTokenRequest.class.getName()); + } + // Use SendPhoneNumberVerificationTokenRequest.newBuilder() to construct. + private SendPhoneNumberVerificationTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SendPhoneNumberVerificationTokenRequest() { + phoneNumber_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest.class, io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest.Builder.class); + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object phoneNumber_ = ""; + /** + *
+     * phone_number in E.164 format
+     * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } + } + /** + *
+     * phone_number in E.164 format
+     * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, phoneNumber_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, phoneNumber_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest other = (io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest) obj; + + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Required fields:
+     * - phone_number
+     * 
+ * + * Protobuf type {@code gitpod.v1.SendPhoneNumberVerificationTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SendPhoneNumberVerificationTokenRequest) + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest.class, io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phoneNumber_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest build() { + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest buildPartial() { + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest result = new io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phoneNumber_ = phoneNumber_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest other) { + if (other == io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest.getDefaultInstance()) return this; + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object phoneNumber_ = ""; + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + phoneNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + phoneNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SendPhoneNumberVerificationTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SendPhoneNumberVerificationTokenRequest) + private static final io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest(); + } + + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendPhoneNumberVerificationTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SendPhoneNumberVerificationTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SendPhoneNumberVerificationTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * verification_id is used to VerifyPhoneNumberVerificationToken
+     * 
+ * + * string verification_id = 1 [json_name = "verificationId"]; + * @return The verificationId. + */ + java.lang.String getVerificationId(); + /** + *
+     * verification_id is used to VerifyPhoneNumberVerificationToken
+     * 
+ * + * string verification_id = 1 [json_name = "verificationId"]; + * @return The bytes for verificationId. + */ + com.google.protobuf.ByteString + getVerificationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.SendPhoneNumberVerificationTokenResponse} + */ + public static final class SendPhoneNumberVerificationTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SendPhoneNumberVerificationTokenResponse) + SendPhoneNumberVerificationTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SendPhoneNumberVerificationTokenResponse.class.getName()); + } + // Use SendPhoneNumberVerificationTokenResponse.newBuilder() to construct. + private SendPhoneNumberVerificationTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SendPhoneNumberVerificationTokenResponse() { + verificationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse.class, io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse.Builder.class); + } + + public static final int VERIFICATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object verificationId_ = ""; + /** + *
+     * verification_id is used to VerifyPhoneNumberVerificationToken
+     * 
+ * + * string verification_id = 1 [json_name = "verificationId"]; + * @return The verificationId. + */ + @java.lang.Override + public java.lang.String getVerificationId() { + java.lang.Object ref = verificationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verificationId_ = s; + return s; + } + } + /** + *
+     * verification_id is used to VerifyPhoneNumberVerificationToken
+     * 
+ * + * string verification_id = 1 [json_name = "verificationId"]; + * @return The bytes for verificationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVerificationIdBytes() { + java.lang.Object ref = verificationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verificationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verificationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, verificationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verificationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, verificationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse other = (io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse) obj; + + if (!getVerificationId() + .equals(other.getVerificationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERIFICATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getVerificationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SendPhoneNumberVerificationTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SendPhoneNumberVerificationTokenResponse) + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse.class, io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + verificationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse build() { + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse buildPartial() { + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse result = new io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.verificationId_ = verificationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse other) { + if (other == io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse.getDefaultInstance()) return this; + if (!other.getVerificationId().isEmpty()) { + verificationId_ = other.verificationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + verificationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object verificationId_ = ""; + /** + *
+       * verification_id is used to VerifyPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 1 [json_name = "verificationId"]; + * @return The verificationId. + */ + public java.lang.String getVerificationId() { + java.lang.Object ref = verificationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verificationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * verification_id is used to VerifyPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 1 [json_name = "verificationId"]; + * @return The bytes for verificationId. + */ + public com.google.protobuf.ByteString + getVerificationIdBytes() { + java.lang.Object ref = verificationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verificationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * verification_id is used to VerifyPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 1 [json_name = "verificationId"]; + * @param value The verificationId to set. + * @return This builder for chaining. + */ + public Builder setVerificationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + verificationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * verification_id is used to VerifyPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 1 [json_name = "verificationId"]; + * @return This builder for chaining. + */ + public Builder clearVerificationId() { + verificationId_ = getDefaultInstance().getVerificationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * verification_id is used to VerifyPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 1 [json_name = "verificationId"]; + * @param value The bytes for verificationId to set. + * @return This builder for chaining. + */ + public Builder setVerificationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + verificationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SendPhoneNumberVerificationTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SendPhoneNumberVerificationTokenResponse) + private static final io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse(); + } + + public static io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendPhoneNumberVerificationTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VerifyPhoneNumberVerificationTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.VerifyPhoneNumberVerificationTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * phone_number in E.164 format
+     * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + /** + *
+     * phone_number in E.164 format
+     * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString + getPhoneNumberBytes(); + + /** + *
+     * verification_id is returned by SendPhoneNumberVerificationToken
+     * 
+ * + * string verification_id = 2 [json_name = "verificationId"]; + * @return The verificationId. + */ + java.lang.String getVerificationId(); + /** + *
+     * verification_id is returned by SendPhoneNumberVerificationToken
+     * 
+ * + * string verification_id = 2 [json_name = "verificationId"]; + * @return The bytes for verificationId. + */ + com.google.protobuf.ByteString + getVerificationIdBytes(); + + /** + *
+     * token is the verification token from providers
+     * 
+ * + * string token = 3 [json_name = "token"]; + * @return The token. + */ + java.lang.String getToken(); + /** + *
+     * token is the verification token from providers
+     * 
+ * + * string token = 3 [json_name = "token"]; + * @return The bytes for token. + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Required fields:
+   * - phone_number
+   * - verification_id
+   * - token
+   * 
+ * + * Protobuf type {@code gitpod.v1.VerifyPhoneNumberVerificationTokenRequest} + */ + public static final class VerifyPhoneNumberVerificationTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.VerifyPhoneNumberVerificationTokenRequest) + VerifyPhoneNumberVerificationTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + VerifyPhoneNumberVerificationTokenRequest.class.getName()); + } + // Use VerifyPhoneNumberVerificationTokenRequest.newBuilder() to construct. + private VerifyPhoneNumberVerificationTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private VerifyPhoneNumberVerificationTokenRequest() { + phoneNumber_ = ""; + verificationId_ = ""; + token_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest.class, io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest.Builder.class); + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object phoneNumber_ = ""; + /** + *
+     * phone_number in E.164 format
+     * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } + } + /** + *
+     * phone_number in E.164 format
+     * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERIFICATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object verificationId_ = ""; + /** + *
+     * verification_id is returned by SendPhoneNumberVerificationToken
+     * 
+ * + * string verification_id = 2 [json_name = "verificationId"]; + * @return The verificationId. + */ + @java.lang.Override + public java.lang.String getVerificationId() { + java.lang.Object ref = verificationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verificationId_ = s; + return s; + } + } + /** + *
+     * verification_id is returned by SendPhoneNumberVerificationToken
+     * 
+ * + * string verification_id = 2 [json_name = "verificationId"]; + * @return The bytes for verificationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVerificationIdBytes() { + java.lang.Object ref = verificationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verificationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + *
+     * token is the verification token from providers
+     * 
+ * + * string token = 3 [json_name = "token"]; + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * token is the verification token from providers
+     * 
+ * + * string token = 3 [json_name = "token"]; + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, phoneNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verificationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, verificationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, token_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, phoneNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verificationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, verificationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, token_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest other = (io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest) obj; + + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; + if (!getVerificationId() + .equals(other.getVerificationId())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (37 * hash) + VERIFICATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getVerificationId().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Required fields:
+     * - phone_number
+     * - verification_id
+     * - token
+     * 
+ * + * Protobuf type {@code gitpod.v1.VerifyPhoneNumberVerificationTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.VerifyPhoneNumberVerificationTokenRequest) + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest.class, io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phoneNumber_ = ""; + verificationId_ = ""; + token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest build() { + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest buildPartial() { + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest result = new io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phoneNumber_ = phoneNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.verificationId_ = verificationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.token_ = token_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest) { + return mergeFrom((io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest other) { + if (other == io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest.getDefaultInstance()) return this; + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVerificationId().isEmpty()) { + verificationId_ = other.verificationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + verificationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object phoneNumber_ = ""; + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + phoneNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * phone_number in E.164 format
+       * 
+ * + * string phone_number = 1 [json_name = "phoneNumber"]; + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + phoneNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object verificationId_ = ""; + /** + *
+       * verification_id is returned by SendPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 2 [json_name = "verificationId"]; + * @return The verificationId. + */ + public java.lang.String getVerificationId() { + java.lang.Object ref = verificationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verificationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * verification_id is returned by SendPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 2 [json_name = "verificationId"]; + * @return The bytes for verificationId. + */ + public com.google.protobuf.ByteString + getVerificationIdBytes() { + java.lang.Object ref = verificationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verificationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * verification_id is returned by SendPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 2 [json_name = "verificationId"]; + * @param value The verificationId to set. + * @return This builder for chaining. + */ + public Builder setVerificationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + verificationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * verification_id is returned by SendPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 2 [json_name = "verificationId"]; + * @return This builder for chaining. + */ + public Builder clearVerificationId() { + verificationId_ = getDefaultInstance().getVerificationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * verification_id is returned by SendPhoneNumberVerificationToken
+       * 
+ * + * string verification_id = 2 [json_name = "verificationId"]; + * @param value The bytes for verificationId to set. + * @return This builder for chaining. + */ + public Builder setVerificationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + verificationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * token is the verification token from providers
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * token is the verification token from providers
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @return The bytes for token. + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * token is the verification token from providers
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + token_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * token is the verification token from providers
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * token is the verification token from providers
+       * 
+ * + * string token = 3 [json_name = "token"]; + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.VerifyPhoneNumberVerificationTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.VerifyPhoneNumberVerificationTokenRequest) + private static final io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest(); + } + + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyPhoneNumberVerificationTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VerifyPhoneNumberVerificationTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.VerifyPhoneNumberVerificationTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * verified indicates if the verification was successful
+     * 
+ * + * bool verified = 1 [json_name = "verified"]; + * @return The verified. + */ + boolean getVerified(); + } + /** + * Protobuf type {@code gitpod.v1.VerifyPhoneNumberVerificationTokenResponse} + */ + public static final class VerifyPhoneNumberVerificationTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.VerifyPhoneNumberVerificationTokenResponse) + VerifyPhoneNumberVerificationTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + VerifyPhoneNumberVerificationTokenResponse.class.getName()); + } + // Use VerifyPhoneNumberVerificationTokenResponse.newBuilder() to construct. + private VerifyPhoneNumberVerificationTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private VerifyPhoneNumberVerificationTokenResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse.class, io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse.Builder.class); + } + + public static final int VERIFIED_FIELD_NUMBER = 1; + private boolean verified_ = false; + /** + *
+     * verified indicates if the verification was successful
+     * 
+ * + * bool verified = 1 [json_name = "verified"]; + * @return The verified. + */ + @java.lang.Override + public boolean getVerified() { + return verified_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (verified_ != false) { + output.writeBool(1, verified_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (verified_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, verified_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse other = (io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse) obj; + + if (getVerified() + != other.getVerified()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerified()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.VerifyPhoneNumberVerificationTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.VerifyPhoneNumberVerificationTokenResponse) + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse.class, io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + verified_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.Verification.internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse build() { + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse buildPartial() { + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse result = new io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.verified_ = verified_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse) { + return mergeFrom((io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse other) { + if (other == io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse.getDefaultInstance()) return this; + if (other.getVerified() != false) { + setVerified(other.getVerified()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + verified_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean verified_ ; + /** + *
+       * verified indicates if the verification was successful
+       * 
+ * + * bool verified = 1 [json_name = "verified"]; + * @return The verified. + */ + @java.lang.Override + public boolean getVerified() { + return verified_; + } + /** + *
+       * verified indicates if the verification was successful
+       * 
+ * + * bool verified = 1 [json_name = "verified"]; + * @param value The verified to set. + * @return This builder for chaining. + */ + public Builder setVerified(boolean value) { + + verified_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * verified indicates if the verification was successful
+       * 
+ * + * bool verified = 1 [json_name = "verified"]; + * @return This builder for chaining. + */ + public Builder clearVerified() { + bitField0_ = (bitField0_ & ~0x00000001); + verified_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.VerifyPhoneNumberVerificationTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.VerifyPhoneNumberVerificationTokenResponse) + private static final io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse(); + } + + public static io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyPhoneNumberVerificationTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034gitpod/v1/verification.proto\022\tgitpod.v" + + "1\"L\n\'SendPhoneNumberVerificationTokenReq" + + "uest\022!\n\014phone_number\030\001 \001(\tR\013phoneNumber\"" + + "S\n(SendPhoneNumberVerificationTokenRespo" + + "nse\022\'\n\017verification_id\030\001 \001(\tR\016verificati" + + "onId\"\215\001\n)VerifyPhoneNumberVerificationTo" + + "kenRequest\022!\n\014phone_number\030\001 \001(\tR\013phoneN" + + "umber\022\'\n\017verification_id\030\002 \001(\tR\016verifica" + + "tionId\022\024\n\005token\030\003 \001(\tR\005token\"H\n*VerifyPh" + + "oneNumberVerificationTokenResponse\022\032\n\010ve" + + "rified\030\001 \001(\010R\010verified2\273\002\n\023VerificationS" + + "ervice\022\215\001\n SendPhoneNumberVerificationTo" + + "ken\0222.gitpod.v1.SendPhoneNumberVerificat" + + "ionTokenRequest\0323.gitpod.v1.SendPhoneNum" + + "berVerificationTokenResponse\"\000\022\223\001\n\"Verif" + + "yPhoneNumberVerificationToken\0224.gitpod.v" + + "1.VerifyPhoneNumberVerificationTokenRequ" + + "est\0325.gitpod.v1.VerifyPhoneNumberVerific" + + "ationTokenResponse\"\000BQ\n\026io.gitpod.public" + + "api.v1Z7github.com/gitpod-io/gitpod/comp" + + "onents/public-api/go/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenRequest_descriptor, + new java.lang.String[] { "PhoneNumber", }); + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SendPhoneNumberVerificationTokenResponse_descriptor, + new java.lang.String[] { "VerificationId", }); + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenRequest_descriptor, + new java.lang.String[] { "PhoneNumber", "VerificationId", "Token", }); + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_VerifyPhoneNumberVerificationTokenResponse_descriptor, + new java.lang.String[] { "Verified", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/VerificationServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/VerificationServiceClient.kt new file mode 100644 index 00000000000000..71825378e46fa1 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/VerificationServiceClient.kt @@ -0,0 +1,57 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/verification.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.StreamType + +public class VerificationServiceClient( + private val client: ProtocolClientInterface, +) : VerificationServiceClientInterface { + /** + * SendPhoneNumberVerificationToken sends a verification token to the + * specified phone number. + */ + override suspend + fun sendPhoneNumberVerificationToken(request: Verification.SendPhoneNumberVerificationTokenRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.VerificationService/SendPhoneNumberVerificationToken", + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenRequest::class, + io.gitpod.publicapi.v1.Verification.SendPhoneNumberVerificationTokenResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * VerifyPhoneNumberVerificationToken verifies the specified verification + * token. + */ + override suspend + fun verifyPhoneNumberVerificationToken(request: Verification.VerifyPhoneNumberVerificationTokenRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.VerificationService/VerifyPhoneNumberVerificationToken", + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenRequest::class, + io.gitpod.publicapi.v1.Verification.VerifyPhoneNumberVerificationTokenResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/VerificationServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/VerificationServiceClientInterface.kt new file mode 100644 index 00000000000000..35e39cb7869158 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/VerificationServiceClientInterface.kt @@ -0,0 +1,32 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/verification.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage + +public interface VerificationServiceClientInterface { + /** + * SendPhoneNumberVerificationToken sends a verification token to the + * specified phone number. + */ + public suspend + fun sendPhoneNumberVerificationToken(request: Verification.SendPhoneNumberVerificationTokenRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * VerifyPhoneNumberVerificationToken verifies the specified verification + * token. + */ + public suspend + fun verifyPhoneNumberVerificationToken(request: Verification.VerifyPhoneNumberVerificationTokenRequest, + headers: Headers = emptyMap()): + ResponseMessage +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceOuterClass.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceOuterClass.java new file mode 100644 index 00000000000000..49b949bb58dd91 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceOuterClass.java @@ -0,0 +1,61036 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: gitpod/v1/workspace.proto +// Protobuf Java Version: 4.27.1 + +package io.gitpod.publicapi.v1; + +public final class WorkspaceOuterClass { + private WorkspaceOuterClass() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceOuterClass.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Admission level describes who can access a workspace instance and its ports.
+   * 
+ * + * Protobuf enum {@code gitpod.v1.AdmissionLevel} + */ + public enum AdmissionLevel + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ADMISSION_LEVEL_UNSPECIFIED = 0; + */ + ADMISSION_LEVEL_UNSPECIFIED(0), + /** + *
+     * ADMISSION_LEVEL_OWNER_ONLY means the workspace can only be accessed using
+     * the owner token
+     * 
+ * + * ADMISSION_LEVEL_OWNER_ONLY = 1; + */ + ADMISSION_LEVEL_OWNER_ONLY(1), + /** + *
+     * ADMISSION_LEVEL_EVERYONE means the workspace (including ports) can be
+     * accessed by everyone.
+     * 
+ * + * ADMISSION_LEVEL_EVERYONE = 2; + */ + ADMISSION_LEVEL_EVERYONE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + AdmissionLevel.class.getName()); + } + /** + * ADMISSION_LEVEL_UNSPECIFIED = 0; + */ + public static final int ADMISSION_LEVEL_UNSPECIFIED_VALUE = 0; + /** + *
+     * ADMISSION_LEVEL_OWNER_ONLY means the workspace can only be accessed using
+     * the owner token
+     * 
+ * + * ADMISSION_LEVEL_OWNER_ONLY = 1; + */ + public static final int ADMISSION_LEVEL_OWNER_ONLY_VALUE = 1; + /** + *
+     * ADMISSION_LEVEL_EVERYONE means the workspace (including ports) can be
+     * accessed by everyone.
+     * 
+ * + * ADMISSION_LEVEL_EVERYONE = 2; + */ + public static final int ADMISSION_LEVEL_EVERYONE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AdmissionLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AdmissionLevel forNumber(int value) { + switch (value) { + case 0: return ADMISSION_LEVEL_UNSPECIFIED; + case 1: return ADMISSION_LEVEL_OWNER_ONLY; + case 2: return ADMISSION_LEVEL_EVERYONE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AdmissionLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AdmissionLevel findValueByNumber(int number) { + return AdmissionLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final AdmissionLevel[] VALUES = values(); + + public static AdmissionLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AdmissionLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.AdmissionLevel) + } + + public interface UpdateWorkspacePortRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateWorkspacePortRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies the workspace to update port
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies the workspace to update port
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + *
+     * port number
+     *
+     * +required
+     * 
+ * + * uint64 port = 2 [json_name = "port"]; + * @return The port. + */ + long getPort(); + + /** + *
+     * admission controls the policy of this port
+     * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return Whether the admission field is set. + */ + boolean hasAdmission(); + /** + *
+     * admission controls the policy of this port
+     * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + int getAdmissionValue(); + /** + *
+     * admission controls the policy of this port
+     * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return The admission. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission(); + + /** + *
+     * backend protocol of this port
+     * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return Whether the protocol field is set. + */ + boolean hasProtocol(); + /** + *
+     * backend protocol of this port
+     * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + int getProtocolValue(); + /** + *
+     * backend protocol of this port
+     * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The protocol. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol getProtocol(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspacePortRequest} + */ + public static final class UpdateWorkspacePortRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateWorkspacePortRequest) + UpdateWorkspacePortRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateWorkspacePortRequest.class.getName()); + } + // Use UpdateWorkspacePortRequest.newBuilder() to construct. + private UpdateWorkspacePortRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateWorkspacePortRequest() { + workspaceId_ = ""; + admission_ = 0; + protocol_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies the workspace to update port
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies the workspace to update port
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private long port_ = 0L; + /** + *
+     * port number
+     *
+     * +required
+     * 
+ * + * uint64 port = 2 [json_name = "port"]; + * @return The port. + */ + @java.lang.Override + public long getPort() { + return port_; + } + + public static final int ADMISSION_FIELD_NUMBER = 3; + private int admission_ = 0; + /** + *
+     * admission controls the policy of this port
+     * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return Whether the admission field is set. + */ + @java.lang.Override public boolean hasAdmission() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * admission controls the policy of this port
+     * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+     * admission controls the policy of this port
+     * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel result = io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.UNRECOGNIZED : result; + } + + public static final int PROTOCOL_FIELD_NUMBER = 4; + private int protocol_ = 0; + /** + *
+     * backend protocol of this port
+     * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return Whether the protocol field is set. + */ + @java.lang.Override public boolean hasProtocol() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * backend protocol of this port
+     * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override public int getProtocolValue() { + return protocol_; + } + /** + *
+     * backend protocol of this port
+     * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The protocol. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol getProtocol() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.forNumber(protocol_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + if (port_ != 0L) { + output.writeUInt64(2, port_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(3, admission_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(4, protocol_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + if (port_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, port_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, admission_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, protocol_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (getPort() + != other.getPort()) return false; + if (hasAdmission() != other.hasAdmission()) return false; + if (hasAdmission()) { + if (admission_ != other.admission_) return false; + } + if (hasProtocol() != other.hasProtocol()) return false; + if (hasProtocol()) { + if (protocol_ != other.protocol_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPort()); + if (hasAdmission()) { + hash = (37 * hash) + ADMISSION_FIELD_NUMBER; + hash = (53 * hash) + admission_; + } + if (hasProtocol()) { + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + protocol_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspacePortRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateWorkspacePortRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + port_ = 0L; + admission_ = 0; + protocol_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = port_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.admission_ = admission_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.protocol_ = protocol_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPort() != 0L) { + setPort(other.getPort()); + } + if (other.hasAdmission()) { + setAdmission(other.getAdmission()); + } + if (other.hasProtocol()) { + setProtocol(other.getProtocol()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + port_ = input.readUInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + admission_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + protocol_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies the workspace to update port
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to update port
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to update port
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to update port
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to update port
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long port_ ; + /** + *
+       * port number
+       *
+       * +required
+       * 
+ * + * uint64 port = 2 [json_name = "port"]; + * @return The port. + */ + @java.lang.Override + public long getPort() { + return port_; + } + /** + *
+       * port number
+       *
+       * +required
+       * 
+ * + * uint64 port = 2 [json_name = "port"]; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(long value) { + + port_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * port number
+       *
+       * +required
+       * 
+ * + * uint64 port = 2 [json_name = "port"]; + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0L; + onChanged(); + return this; + } + + private int admission_ = 0; + /** + *
+       * admission controls the policy of this port
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return Whether the admission field is set. + */ + @java.lang.Override public boolean hasAdmission() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * admission controls the policy of this port
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+       * admission controls the policy of this port
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @param value The enum numeric value on the wire for admission to set. + * @return This builder for chaining. + */ + public Builder setAdmissionValue(int value) { + admission_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * admission controls the policy of this port
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel result = io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.UNRECOGNIZED : result; + } + /** + *
+       * admission controls the policy of this port
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @param value The admission to set. + * @return This builder for chaining. + */ + public Builder setAdmission(io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + admission_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * admission controls the policy of this port
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 3 [json_name = "admission"]; + * @return This builder for chaining. + */ + public Builder clearAdmission() { + bitField0_ = (bitField0_ & ~0x00000004); + admission_ = 0; + onChanged(); + return this; + } + + private int protocol_ = 0; + /** + *
+       * backend protocol of this port
+       * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return Whether the protocol field is set. + */ + @java.lang.Override public boolean hasProtocol() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override public int getProtocolValue() { + return protocol_; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @param value The enum numeric value on the wire for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolValue(int value) { + protocol_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The protocol. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol getProtocol() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.forNumber(protocol_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.UNRECOGNIZED : result; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + protocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * optional .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return This builder for chaining. + */ + public Builder clearProtocol() { + bitField0_ = (bitField0_ & ~0x00000008); + protocol_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateWorkspacePortRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateWorkspacePortRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkspacePortRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateWorkspacePortResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateWorkspacePortResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspacePortResponse} + */ + public static final class UpdateWorkspacePortResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateWorkspacePortResponse) + UpdateWorkspacePortResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateWorkspacePortResponse.class.getName()); + } + // Use UpdateWorkspacePortResponse.newBuilder() to construct. + private UpdateWorkspacePortResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateWorkspacePortResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspacePortResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateWorkspacePortResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspacePortResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateWorkspacePortResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateWorkspacePortResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkspacePortResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies the workspace to get
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies the workspace to get
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceRequest} + */ + public static final class GetWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetWorkspaceRequest) + GetWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceRequest.class.getName()); + } + // Use GetWorkspaceRequest.newBuilder() to construct. + private GetWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies the workspace to get
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies the workspace to get
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetWorkspaceRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies the workspace to get
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to get
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to get
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to get
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to get
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetWorkspaceRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + boolean hasWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceResponse} + */ + public static final class GetWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetWorkspaceResponse) + GetWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceResponse.class.getName()); + } + // Use GetWorkspaceResponse.newBuilder() to construct. + private GetWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + @java.lang.Override + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getWorkspace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkspace()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse) obj; + + if (hasWorkspace() != other.hasWorkspace()) return false; + if (hasWorkspace()) { + if (!getWorkspace() + .equals(other.getWorkspace())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkspace()) { + hash = (37 * hash) + WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getWorkspace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetWorkspaceResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getWorkspaceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspace_ = workspaceBuilder_ == null + ? workspace_ + : workspaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse.getDefaultInstance()) return this; + if (other.hasWorkspace()) { + mergeWorkspace(other.getWorkspace()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getWorkspaceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> workspaceBuilder_; + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + if (workspaceBuilder_ == null) { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } else { + return workspaceBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder setWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspace_ = value; + } else { + workspaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder setWorkspace( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder builderForValue) { + if (workspaceBuilder_ == null) { + workspace_ = builderForValue.build(); + } else { + workspaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder mergeWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + workspace_ != null && + workspace_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance()) { + getWorkspaceBuilder().mergeFrom(value); + } else { + workspace_ = value; + } + } else { + workspaceBuilder_.mergeFrom(value); + } + if (workspace_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder clearWorkspace() { + bitField0_ = (bitField0_ & ~0x00000001); + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder getWorkspaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWorkspaceFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + if (workspaceBuilder_ != null) { + return workspaceBuilder_.getMessageOrBuilder(); + } else { + return workspace_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> + getWorkspaceFieldBuilder() { + if (workspaceBuilder_ == null) { + workspaceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder>( + getWorkspace(), + getParentForChildren(), + isClean()); + workspace_ = null; + } + return workspaceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetWorkspaceResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WatchWorkspaceStatusRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WatchWorkspaceStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies the workspace to watch
+     *
+     * +optional if empty then watch all workspaces
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies the workspace to watch
+     *
+     * +optional if empty then watch all workspaces
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.WatchWorkspaceStatusRequest} + */ + public static final class WatchWorkspaceStatusRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WatchWorkspaceStatusRequest) + WatchWorkspaceStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WatchWorkspaceStatusRequest.class.getName()); + } + // Use WatchWorkspaceStatusRequest.newBuilder() to construct. + private WatchWorkspaceStatusRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WatchWorkspaceStatusRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies the workspace to watch
+     *
+     * +optional if empty then watch all workspaces
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies the workspace to watch
+     *
+     * +optional if empty then watch all workspaces
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WatchWorkspaceStatusRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WatchWorkspaceStatusRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies the workspace to watch
+       *
+       * +optional if empty then watch all workspaces
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to watch
+       *
+       * +optional if empty then watch all workspaces
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to watch
+       *
+       * +optional if empty then watch all workspaces
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to watch
+       *
+       * +optional if empty then watch all workspaces
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to watch
+       *
+       * +optional if empty then watch all workspaces
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WatchWorkspaceStatusRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WatchWorkspaceStatusRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WatchWorkspaceStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WatchWorkspaceStatusResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WatchWorkspaceStatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id is the ID of the workspace that has status updated
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id is the ID of the workspace that has status updated
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + *
+     * status is the updated status of workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+     * status is the updated status of workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + * @return The status. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus getStatus(); + /** + *
+     * status is the updated status of workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder getStatusOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.WatchWorkspaceStatusResponse} + */ + public static final class WatchWorkspaceStatusResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WatchWorkspaceStatusResponse) + WatchWorkspaceStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WatchWorkspaceStatusResponse.class.getName()); + } + // Use WatchWorkspaceStatusResponse.newBuilder() to construct. + private WatchWorkspaceStatusResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WatchWorkspaceStatusResponse() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id is the ID of the workspace that has status updated
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id is the ID of the workspace that has status updated
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus status_; + /** + *
+     * status is the updated status of workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * status is the updated status of workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus getStatus() { + return status_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance() : status_; + } + /** + *
+     * status is the updated status of workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WatchWorkspaceStatusResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WatchWorkspaceStatusResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WatchWorkspaceStatusResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id is the ID of the workspace that has status updated
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id is the ID of the workspace that has status updated
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id is the ID of the workspace that has status updated
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id is the ID of the workspace that has status updated
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id is the ID of the workspace that has status updated
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus status_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder> statusBuilder_; + /** + *
+       * status is the updated status of workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * status is the updated status of workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + * @return The status. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * status is the updated status of workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + */ + public Builder setStatus(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * status is the updated status of workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + */ + public Builder setStatus( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * status is the updated status of workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + */ + public Builder mergeStatus(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + status_ != null && + status_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * status is the updated status of workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * status is the updated status of workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * status is the updated status of workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance() : status_; + } + } + /** + *
+       * status is the updated status of workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 2 [json_name = "status"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WatchWorkspaceStatusResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WatchWorkspaceStatusResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WatchWorkspaceStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListWorkspacesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListWorkspacesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + *
+     * organization_id is the ID of the organization that contains the workspaces
+     *
+     * +required
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization that contains the workspaces
+     *
+     * +required
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + *
+     * pinned indicates whether to list only pinned workspaces
+     * 
+ * + * bool pinned = 3 [json_name = "pinned"]; + * @return The pinned. + */ + boolean getPinned(); + + /** + *
+     * search_term is a search term to filter workspaces by name
+     * 
+ * + * string search_term = 4 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + java.lang.String getSearchTerm(); + /** + *
+     * search_term is a search term to filter workspaces by name
+     * 
+ * + * string search_term = 4 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + com.google.protobuf.ByteString + getSearchTermBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspacesRequest} + */ + public static final class ListWorkspacesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListWorkspacesRequest) + ListWorkspacesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspacesRequest.class.getName()); + } + // Use ListWorkspacesRequest.newBuilder() to construct. + private ListWorkspacesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspacesRequest() { + organizationId_ = ""; + searchTerm_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization that contains the workspaces
+     *
+     * +required
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization that contains the workspaces
+     *
+     * +required
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PINNED_FIELD_NUMBER = 3; + private boolean pinned_ = false; + /** + *
+     * pinned indicates whether to list only pinned workspaces
+     * 
+ * + * bool pinned = 3 [json_name = "pinned"]; + * @return The pinned. + */ + @java.lang.Override + public boolean getPinned() { + return pinned_; + } + + public static final int SEARCH_TERM_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object searchTerm_ = ""; + /** + *
+     * search_term is a search term to filter workspaces by name
+     * 
+ * + * string search_term = 4 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + @java.lang.Override + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } + } + /** + *
+     * search_term is a search term to filter workspaces by name
+     * 
+ * + * string search_term = 4 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (pinned_ != false) { + output.writeBool(3, pinned_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, searchTerm_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (pinned_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, pinned_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchTerm_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, searchTerm_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (getPinned() + != other.getPinned()) return false; + if (!getSearchTerm() + .equals(other.getSearchTerm())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + PINNED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinned()); + hash = (37 * hash) + SEARCH_TERM_FIELD_NUMBER; + hash = (53 * hash) + getSearchTerm().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspacesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListWorkspacesRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + organizationId_ = ""; + pinned_ = false; + searchTerm_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pinned_ = pinned_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.searchTerm_ = searchTerm_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPinned() != false) { + setPinned(other.getPinned()); + } + if (!other.getSearchTerm().isEmpty()) { + searchTerm_ = other.searchTerm_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pinned_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + searchTerm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean pinned_ ; + /** + *
+       * pinned indicates whether to list only pinned workspaces
+       * 
+ * + * bool pinned = 3 [json_name = "pinned"]; + * @return The pinned. + */ + @java.lang.Override + public boolean getPinned() { + return pinned_; + } + /** + *
+       * pinned indicates whether to list only pinned workspaces
+       * 
+ * + * bool pinned = 3 [json_name = "pinned"]; + * @param value The pinned to set. + * @return This builder for chaining. + */ + public Builder setPinned(boolean value) { + + pinned_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * pinned indicates whether to list only pinned workspaces
+       * 
+ * + * bool pinned = 3 [json_name = "pinned"]; + * @return This builder for chaining. + */ + public Builder clearPinned() { + bitField0_ = (bitField0_ & ~0x00000004); + pinned_ = false; + onChanged(); + return this; + } + + private java.lang.Object searchTerm_ = ""; + /** + *
+       * search_term is a search term to filter workspaces by name
+       * 
+ * + * string search_term = 4 [json_name = "searchTerm"]; + * @return The searchTerm. + */ + public java.lang.String getSearchTerm() { + java.lang.Object ref = searchTerm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTerm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * search_term is a search term to filter workspaces by name
+       * 
+ * + * string search_term = 4 [json_name = "searchTerm"]; + * @return The bytes for searchTerm. + */ + public com.google.protobuf.ByteString + getSearchTermBytes() { + java.lang.Object ref = searchTerm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + searchTerm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * search_term is a search term to filter workspaces by name
+       * 
+ * + * string search_term = 4 [json_name = "searchTerm"]; + * @param value The searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTerm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + searchTerm_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * search_term is a search term to filter workspaces by name
+       * 
+ * + * string search_term = 4 [json_name = "searchTerm"]; + * @return This builder for chaining. + */ + public Builder clearSearchTerm() { + searchTerm_ = getDefaultInstance().getSearchTerm(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * search_term is a search term to filter workspaces by name
+       * 
+ * + * string search_term = 4 [json_name = "searchTerm"]; + * @param value The bytes for searchTerm to set. + * @return This builder for chaining. + */ + public Builder setSearchTermBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + searchTerm_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListWorkspacesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListWorkspacesRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspacesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListWorkspacesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListWorkspacesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + java.util.List + getWorkspacesList(); + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspaces(int index); + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + int getWorkspacesCount(); + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + java.util.List + getWorkspacesOrBuilderList(); + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspacesOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspacesResponse} + */ + public static final class ListWorkspacesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListWorkspacesResponse) + ListWorkspacesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspacesResponse.class.getName()); + } + // Use ListWorkspacesResponse.newBuilder() to construct. + private ListWorkspacesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspacesResponse() { + workspaces_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + public static final int WORKSPACES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List workspaces_; + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + @java.lang.Override + public java.util.List getWorkspacesList() { + return workspaces_; + } + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + @java.lang.Override + public java.util.List + getWorkspacesOrBuilderList() { + return workspaces_; + } + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + @java.lang.Override + public int getWorkspacesCount() { + return workspaces_.size(); + } + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspaces(int index) { + return workspaces_.get(index); + } + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspacesOrBuilder( + int index) { + return workspaces_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < workspaces_.size(); i++) { + output.writeMessage(2, workspaces_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < workspaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, workspaces_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getWorkspacesList() + .equals(other.getWorkspacesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getWorkspacesCount() > 0) { + hash = (37 * hash) + WORKSPACES_FIELD_NUMBER; + hash = (53 * hash) + getWorkspacesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspacesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListWorkspacesResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getWorkspacesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (workspacesBuilder_ == null) { + workspaces_ = java.util.Collections.emptyList(); + } else { + workspaces_ = null; + workspacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspacesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse result) { + if (workspacesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + workspaces_ = java.util.Collections.unmodifiableList(workspaces_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.workspaces_ = workspaces_; + } else { + result.workspaces_ = workspacesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (workspacesBuilder_ == null) { + if (!other.workspaces_.isEmpty()) { + if (workspaces_.isEmpty()) { + workspaces_ = other.workspaces_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureWorkspacesIsMutable(); + workspaces_.addAll(other.workspaces_); + } + onChanged(); + } + } else { + if (!other.workspaces_.isEmpty()) { + if (workspacesBuilder_.isEmpty()) { + workspacesBuilder_.dispose(); + workspacesBuilder_ = null; + workspaces_ = other.workspaces_; + bitField0_ = (bitField0_ & ~0x00000002); + workspacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getWorkspacesFieldBuilder() : null; + } else { + workspacesBuilder_.addAllMessages(other.workspaces_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace m = + input.readMessage( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.parser(), + extensionRegistry); + if (workspacesBuilder_ == null) { + ensureWorkspacesIsMutable(); + workspaces_.add(m); + } else { + workspacesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List workspaces_ = + java.util.Collections.emptyList(); + private void ensureWorkspacesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + workspaces_ = new java.util.ArrayList(workspaces_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> workspacesBuilder_; + + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public java.util.List getWorkspacesList() { + if (workspacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(workspaces_); + } else { + return workspacesBuilder_.getMessageList(); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public int getWorkspacesCount() { + if (workspacesBuilder_ == null) { + return workspaces_.size(); + } else { + return workspacesBuilder_.getCount(); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspaces(int index) { + if (workspacesBuilder_ == null) { + return workspaces_.get(index); + } else { + return workspacesBuilder_.getMessage(index); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public Builder setWorkspaces( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspacesIsMutable(); + workspaces_.set(index, value); + onChanged(); + } else { + workspacesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public Builder setWorkspaces( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder builderForValue) { + if (workspacesBuilder_ == null) { + ensureWorkspacesIsMutable(); + workspaces_.set(index, builderForValue.build()); + onChanged(); + } else { + workspacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public Builder addWorkspaces(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspacesIsMutable(); + workspaces_.add(value); + onChanged(); + } else { + workspacesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public Builder addWorkspaces( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspacesIsMutable(); + workspaces_.add(index, value); + onChanged(); + } else { + workspacesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public Builder addWorkspaces( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder builderForValue) { + if (workspacesBuilder_ == null) { + ensureWorkspacesIsMutable(); + workspaces_.add(builderForValue.build()); + onChanged(); + } else { + workspacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public Builder addWorkspaces( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder builderForValue) { + if (workspacesBuilder_ == null) { + ensureWorkspacesIsMutable(); + workspaces_.add(index, builderForValue.build()); + onChanged(); + } else { + workspacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public Builder addAllWorkspaces( + java.lang.Iterable values) { + if (workspacesBuilder_ == null) { + ensureWorkspacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workspaces_); + onChanged(); + } else { + workspacesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public Builder clearWorkspaces() { + if (workspacesBuilder_ == null) { + workspaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + workspacesBuilder_.clear(); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public Builder removeWorkspaces(int index) { + if (workspacesBuilder_ == null) { + ensureWorkspacesIsMutable(); + workspaces_.remove(index); + onChanged(); + } else { + workspacesBuilder_.remove(index); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder getWorkspacesBuilder( + int index) { + return getWorkspacesFieldBuilder().getBuilder(index); + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspacesOrBuilder( + int index) { + if (workspacesBuilder_ == null) { + return workspaces_.get(index); } else { + return workspacesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public java.util.List + getWorkspacesOrBuilderList() { + if (workspacesBuilder_ != null) { + return workspacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workspaces_); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder addWorkspacesBuilder() { + return getWorkspacesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance()); + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder addWorkspacesBuilder( + int index) { + return getWorkspacesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance()); + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.Workspace workspaces = 2 [json_name = "workspaces"]; + */ + public java.util.List + getWorkspacesBuilderList() { + return getWorkspacesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> + getWorkspacesFieldBuilder() { + if (workspacesBuilder_ == null) { + workspacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder>( + workspaces_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + workspaces_ = null; + } + return workspacesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListWorkspacesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListWorkspacesResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspacesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListWorkspaceSessionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListWorkspaceSessionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + + /** + *
+     * organization_id is the ID of the organization that contains the workspaces
+     *
+     * +required
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization that contains the workspaces
+     *
+     * +required
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + *
+     * from specifies the starting time range for this request.
+     * All sessions which existed starting at from will be returned.
+     * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + * @return Whether the from field is set. + */ + boolean hasFrom(); + /** + *
+     * from specifies the starting time range for this request.
+     * All sessions which existed starting at from will be returned.
+     * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + * @return The from. + */ + com.google.protobuf.Timestamp getFrom(); + /** + *
+     * from specifies the starting time range for this request.
+     * All sessions which existed starting at from will be returned.
+     * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + */ + com.google.protobuf.TimestampOrBuilder getFromOrBuilder(); + + /** + *
+     * to specifies the end time range for this request.
+     * All sessions which existed ending at to will be returned.
+     * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + * @return Whether the to field is set. + */ + boolean hasTo(); + /** + *
+     * to specifies the end time range for this request.
+     * All sessions which existed ending at to will be returned.
+     * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + * @return The to. + */ + com.google.protobuf.Timestamp getTo(); + /** + *
+     * to specifies the end time range for this request.
+     * All sessions which existed ending at to will be returned.
+     * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + */ + com.google.protobuf.TimestampOrBuilder getToOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspaceSessionsRequest} + */ + public static final class ListWorkspaceSessionsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListWorkspaceSessionsRequest) + ListWorkspaceSessionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspaceSessionsRequest.class.getName()); + } + // Use ListWorkspaceSessionsRequest.newBuilder() to construct. + private ListWorkspaceSessionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspaceSessionsRequest() { + organizationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization that contains the workspaces
+     *
+     * +required
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization that contains the workspaces
+     *
+     * +required
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FROM_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp from_; + /** + *
+     * from specifies the starting time range for this request.
+     * All sessions which existed starting at from will be returned.
+     * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + * @return Whether the from field is set. + */ + @java.lang.Override + public boolean hasFrom() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * from specifies the starting time range for this request.
+     * All sessions which existed starting at from will be returned.
+     * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + * @return The from. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFrom() { + return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_; + } + /** + *
+     * from specifies the starting time range for this request.
+     * All sessions which existed starting at from will be returned.
+     * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFromOrBuilder() { + return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_; + } + + public static final int TO_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp to_; + /** + *
+     * to specifies the end time range for this request.
+     * All sessions which existed ending at to will be returned.
+     * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + * @return Whether the to field is set. + */ + @java.lang.Override + public boolean hasTo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * to specifies the end time range for this request.
+     * All sessions which existed ending at to will be returned.
+     * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + * @return The to. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTo() { + return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_; + } + /** + *
+     * to specifies the end time range for this request.
+     * All sessions which existed ending at to will be returned.
+     * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getToOrBuilder() { + return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getFrom()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getTo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFrom()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (hasFrom() != other.hasFrom()) return false; + if (hasFrom()) { + if (!getFrom() + .equals(other.getFrom())) return false; + } + if (hasTo() != other.hasTo()) return false; + if (hasTo()) { + if (!getTo() + .equals(other.getTo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + if (hasFrom()) { + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + } + if (hasTo()) { + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspaceSessionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListWorkspaceSessionsRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getFromFieldBuilder(); + getToFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + organizationId_ = ""; + from_ = null; + if (fromBuilder_ != null) { + fromBuilder_.dispose(); + fromBuilder_ = null; + } + to_ = null; + if (toBuilder_ != null) { + toBuilder_.dispose(); + toBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.from_ = fromBuilder_ == null + ? from_ + : fromBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.to_ = toBuilder_ == null + ? to_ + : toBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFrom()) { + mergeFrom(other.getFrom()); + } + if (other.hasTo()) { + mergeTo(other.getTo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getFromFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getToFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization that contains the workspaces
+       *
+       * +required
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp from_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> fromBuilder_; + /** + *
+       * from specifies the starting time range for this request.
+       * All sessions which existed starting at from will be returned.
+       * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + * @return Whether the from field is set. + */ + public boolean hasFrom() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * from specifies the starting time range for this request.
+       * All sessions which existed starting at from will be returned.
+       * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + * @return The from. + */ + public com.google.protobuf.Timestamp getFrom() { + if (fromBuilder_ == null) { + return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_; + } else { + return fromBuilder_.getMessage(); + } + } + /** + *
+       * from specifies the starting time range for this request.
+       * All sessions which existed starting at from will be returned.
+       * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + */ + public Builder setFrom(com.google.protobuf.Timestamp value) { + if (fromBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + from_ = value; + } else { + fromBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * from specifies the starting time range for this request.
+       * All sessions which existed starting at from will be returned.
+       * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + */ + public Builder setFrom( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (fromBuilder_ == null) { + from_ = builderForValue.build(); + } else { + fromBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * from specifies the starting time range for this request.
+       * All sessions which existed starting at from will be returned.
+       * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + */ + public Builder mergeFrom(com.google.protobuf.Timestamp value) { + if (fromBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + from_ != null && + from_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFromBuilder().mergeFrom(value); + } else { + from_ = value; + } + } else { + fromBuilder_.mergeFrom(value); + } + if (from_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * from specifies the starting time range for this request.
+       * All sessions which existed starting at from will be returned.
+       * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + */ + public Builder clearFrom() { + bitField0_ = (bitField0_ & ~0x00000004); + from_ = null; + if (fromBuilder_ != null) { + fromBuilder_.dispose(); + fromBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * from specifies the starting time range for this request.
+       * All sessions which existed starting at from will be returned.
+       * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + */ + public com.google.protobuf.Timestamp.Builder getFromBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFromFieldBuilder().getBuilder(); + } + /** + *
+       * from specifies the starting time range for this request.
+       * All sessions which existed starting at from will be returned.
+       * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + */ + public com.google.protobuf.TimestampOrBuilder getFromOrBuilder() { + if (fromBuilder_ != null) { + return fromBuilder_.getMessageOrBuilder(); + } else { + return from_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : from_; + } + } + /** + *
+       * from specifies the starting time range for this request.
+       * All sessions which existed starting at from will be returned.
+       * 
+ * + * .google.protobuf.Timestamp from = 3 [json_name = "from"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getFromFieldBuilder() { + if (fromBuilder_ == null) { + fromBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getFrom(), + getParentForChildren(), + isClean()); + from_ = null; + } + return fromBuilder_; + } + + private com.google.protobuf.Timestamp to_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> toBuilder_; + /** + *
+       * to specifies the end time range for this request.
+       * All sessions which existed ending at to will be returned.
+       * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + * @return Whether the to field is set. + */ + public boolean hasTo() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * to specifies the end time range for this request.
+       * All sessions which existed ending at to will be returned.
+       * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + * @return The to. + */ + public com.google.protobuf.Timestamp getTo() { + if (toBuilder_ == null) { + return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_; + } else { + return toBuilder_.getMessage(); + } + } + /** + *
+       * to specifies the end time range for this request.
+       * All sessions which existed ending at to will be returned.
+       * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + */ + public Builder setTo(com.google.protobuf.Timestamp value) { + if (toBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + to_ = value; + } else { + toBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * to specifies the end time range for this request.
+       * All sessions which existed ending at to will be returned.
+       * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + */ + public Builder setTo( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (toBuilder_ == null) { + to_ = builderForValue.build(); + } else { + toBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * to specifies the end time range for this request.
+       * All sessions which existed ending at to will be returned.
+       * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + */ + public Builder mergeTo(com.google.protobuf.Timestamp value) { + if (toBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + to_ != null && + to_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getToBuilder().mergeFrom(value); + } else { + to_ = value; + } + } else { + toBuilder_.mergeFrom(value); + } + if (to_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * to specifies the end time range for this request.
+       * All sessions which existed ending at to will be returned.
+       * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + */ + public Builder clearTo() { + bitField0_ = (bitField0_ & ~0x00000008); + to_ = null; + if (toBuilder_ != null) { + toBuilder_.dispose(); + toBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * to specifies the end time range for this request.
+       * All sessions which existed ending at to will be returned.
+       * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + */ + public com.google.protobuf.Timestamp.Builder getToBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getToFieldBuilder().getBuilder(); + } + /** + *
+       * to specifies the end time range for this request.
+       * All sessions which existed ending at to will be returned.
+       * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + */ + public com.google.protobuf.TimestampOrBuilder getToOrBuilder() { + if (toBuilder_ != null) { + return toBuilder_.getMessageOrBuilder(); + } else { + return to_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : to_; + } + } + /** + *
+       * to specifies the end time range for this request.
+       * All sessions which existed ending at to will be returned.
+       * 
+ * + * .google.protobuf.Timestamp to = 4 [json_name = "to"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getToFieldBuilder() { + if (toBuilder_ == null) { + toBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getTo(), + getParentForChildren(), + isClean()); + to_ = null; + } + return toBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListWorkspaceSessionsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListWorkspaceSessionsRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspaceSessionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListWorkspaceSessionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListWorkspaceSessionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + java.util.List + getWorkspaceSessionsList(); + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getWorkspaceSessions(int index); + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + int getWorkspaceSessionsCount(); + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + java.util.List + getWorkspaceSessionsOrBuilderList(); + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSessionOrBuilder getWorkspaceSessionsOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspaceSessionsResponse} + */ + public static final class ListWorkspaceSessionsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListWorkspaceSessionsResponse) + ListWorkspaceSessionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspaceSessionsResponse.class.getName()); + } + // Use ListWorkspaceSessionsResponse.newBuilder() to construct. + private ListWorkspaceSessionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspaceSessionsResponse() { + workspaceSessions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + *
+     * pagination contains the pagination options for listing workspaces
+     * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + public static final int WORKSPACE_SESSIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List workspaceSessions_; + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + @java.lang.Override + public java.util.List getWorkspaceSessionsList() { + return workspaceSessions_; + } + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + @java.lang.Override + public java.util.List + getWorkspaceSessionsOrBuilderList() { + return workspaceSessions_; + } + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + @java.lang.Override + public int getWorkspaceSessionsCount() { + return workspaceSessions_.size(); + } + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getWorkspaceSessions(int index) { + return workspaceSessions_.get(index); + } + /** + *
+     * workspaces are the workspaces that matched the query
+     * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSessionOrBuilder getWorkspaceSessionsOrBuilder( + int index) { + return workspaceSessions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < workspaceSessions_.size(); i++) { + output.writeMessage(2, workspaceSessions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < workspaceSessions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, workspaceSessions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getWorkspaceSessionsList() + .equals(other.getWorkspaceSessionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getWorkspaceSessionsCount() > 0) { + hash = (37 * hash) + WORKSPACE_SESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceSessionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspaceSessionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListWorkspaceSessionsResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getWorkspaceSessionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (workspaceSessionsBuilder_ == null) { + workspaceSessions_ = java.util.Collections.emptyList(); + } else { + workspaceSessions_ = null; + workspaceSessionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceSessionsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse result) { + if (workspaceSessionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + workspaceSessions_ = java.util.Collections.unmodifiableList(workspaceSessions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.workspaceSessions_ = workspaceSessions_; + } else { + result.workspaceSessions_ = workspaceSessionsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (workspaceSessionsBuilder_ == null) { + if (!other.workspaceSessions_.isEmpty()) { + if (workspaceSessions_.isEmpty()) { + workspaceSessions_ = other.workspaceSessions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureWorkspaceSessionsIsMutable(); + workspaceSessions_.addAll(other.workspaceSessions_); + } + onChanged(); + } + } else { + if (!other.workspaceSessions_.isEmpty()) { + if (workspaceSessionsBuilder_.isEmpty()) { + workspaceSessionsBuilder_.dispose(); + workspaceSessionsBuilder_ = null; + workspaceSessions_ = other.workspaceSessions_; + bitField0_ = (bitField0_ & ~0x00000002); + workspaceSessionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getWorkspaceSessionsFieldBuilder() : null; + } else { + workspaceSessionsBuilder_.addAllMessages(other.workspaceSessions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession m = + input.readMessage( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.parser(), + extensionRegistry); + if (workspaceSessionsBuilder_ == null) { + ensureWorkspaceSessionsIsMutable(); + workspaceSessions_.add(m); + } else { + workspaceSessionsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + *
+       * pagination contains the pagination options for listing workspaces
+       * 
+ * + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List workspaceSessions_ = + java.util.Collections.emptyList(); + private void ensureWorkspaceSessionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + workspaceSessions_ = new java.util.ArrayList(workspaceSessions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSessionOrBuilder> workspaceSessionsBuilder_; + + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public java.util.List getWorkspaceSessionsList() { + if (workspaceSessionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workspaceSessions_); + } else { + return workspaceSessionsBuilder_.getMessageList(); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public int getWorkspaceSessionsCount() { + if (workspaceSessionsBuilder_ == null) { + return workspaceSessions_.size(); + } else { + return workspaceSessionsBuilder_.getCount(); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getWorkspaceSessions(int index) { + if (workspaceSessionsBuilder_ == null) { + return workspaceSessions_.get(index); + } else { + return workspaceSessionsBuilder_.getMessage(index); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public Builder setWorkspaceSessions( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession value) { + if (workspaceSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceSessionsIsMutable(); + workspaceSessions_.set(index, value); + onChanged(); + } else { + workspaceSessionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public Builder setWorkspaceSessions( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder builderForValue) { + if (workspaceSessionsBuilder_ == null) { + ensureWorkspaceSessionsIsMutable(); + workspaceSessions_.set(index, builderForValue.build()); + onChanged(); + } else { + workspaceSessionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public Builder addWorkspaceSessions(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession value) { + if (workspaceSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceSessionsIsMutable(); + workspaceSessions_.add(value); + onChanged(); + } else { + workspaceSessionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public Builder addWorkspaceSessions( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession value) { + if (workspaceSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceSessionsIsMutable(); + workspaceSessions_.add(index, value); + onChanged(); + } else { + workspaceSessionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public Builder addWorkspaceSessions( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder builderForValue) { + if (workspaceSessionsBuilder_ == null) { + ensureWorkspaceSessionsIsMutable(); + workspaceSessions_.add(builderForValue.build()); + onChanged(); + } else { + workspaceSessionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public Builder addWorkspaceSessions( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder builderForValue) { + if (workspaceSessionsBuilder_ == null) { + ensureWorkspaceSessionsIsMutable(); + workspaceSessions_.add(index, builderForValue.build()); + onChanged(); + } else { + workspaceSessionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public Builder addAllWorkspaceSessions( + java.lang.Iterable values) { + if (workspaceSessionsBuilder_ == null) { + ensureWorkspaceSessionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workspaceSessions_); + onChanged(); + } else { + workspaceSessionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public Builder clearWorkspaceSessions() { + if (workspaceSessionsBuilder_ == null) { + workspaceSessions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + workspaceSessionsBuilder_.clear(); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public Builder removeWorkspaceSessions(int index) { + if (workspaceSessionsBuilder_ == null) { + ensureWorkspaceSessionsIsMutable(); + workspaceSessions_.remove(index); + onChanged(); + } else { + workspaceSessionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder getWorkspaceSessionsBuilder( + int index) { + return getWorkspaceSessionsFieldBuilder().getBuilder(index); + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSessionOrBuilder getWorkspaceSessionsOrBuilder( + int index) { + if (workspaceSessionsBuilder_ == null) { + return workspaceSessions_.get(index); } else { + return workspaceSessionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public java.util.List + getWorkspaceSessionsOrBuilderList() { + if (workspaceSessionsBuilder_ != null) { + return workspaceSessionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workspaceSessions_); + } + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder addWorkspaceSessionsBuilder() { + return getWorkspaceSessionsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.getDefaultInstance()); + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder addWorkspaceSessionsBuilder( + int index) { + return getWorkspaceSessionsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.getDefaultInstance()); + } + /** + *
+       * workspaces are the workspaces that matched the query
+       * 
+ * + * repeated .gitpod.v1.WorkspaceSession workspace_sessions = 2 [json_name = "workspaceSessions"]; + */ + public java.util.List + getWorkspaceSessionsBuilderList() { + return getWorkspaceSessionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSessionOrBuilder> + getWorkspaceSessionsFieldBuilder() { + if (workspaceSessionsBuilder_ == null) { + workspaceSessionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSessionOrBuilder>( + workspaceSessions_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + workspaceSessions_ = null; + } + return workspaceSessionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListWorkspaceSessionsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListWorkspaceSessionsResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspaceSessionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateAndStartWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateAndStartWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return The metadata. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getMetadata(); + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * context_url is the URL from which the workspace is created
+     * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + * @return Whether the contextUrl field is set. + */ + boolean hasContextUrl(); + /** + *
+     * context_url is the URL from which the workspace is created
+     * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL getContextUrl(); + /** + *
+     * context_url is the URL from which the workspace is created
+     * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURLOrBuilder getContextUrlOrBuilder(); + + /** + *
+     * spec is the configuration of the workspace that's required for the to
+     * start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + boolean hasSpec(); + /** + *
+     * spec is the configuration of the workspace that's required for the to
+     * start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return The spec. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getSpec(); + /** + *
+     * spec is the configuration of the workspace that's required for the to
+     * start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * force_default_config indicates that the workspace should be created with
+     * the default configuration instead of the configuration provided in
+     * `.gitpod.yml` file
+     * 
+ * + * bool force_default_config = 4 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.CreateAndStartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=208 + * @return The forceDefaultConfig. + */ + @java.lang.Deprecated boolean getForceDefaultConfig(); + + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.SourceCase getSourceCase(); + } + /** + *
+   * Required fields:
+   * - metadata.organization_id
+   * - metadata.configuration_id
+   * 
+ * + * Protobuf type {@code gitpod.v1.CreateAndStartWorkspaceRequest} + */ + public static final class CreateAndStartWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateAndStartWorkspaceRequest) + CreateAndStartWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateAndStartWorkspaceRequest.class.getName()); + } + // Use CreateAndStartWorkspaceRequest.newBuilder() to construct. + private CreateAndStartWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateAndStartWorkspaceRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.Builder.class); + } + + public interface ContextURLOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * url is the URL from which the workspace is created
+       * 
+ * + * string url = 1 [json_name = "url"]; + * @return The url. + */ + java.lang.String getUrl(); + /** + *
+       * url is the URL from which the workspace is created
+       * 
+ * + * string url = 1 [json_name = "url"]; + * @return The bytes for url. + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + *
+       * workspace_class is the class of the workspace we ought to start
+       * 
+ * + * string workspace_class = 2 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + java.lang.String getWorkspaceClass(); + /** + *
+       * workspace_class is the class of the workspace we ought to start
+       * 
+ * + * string workspace_class = 2 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + com.google.protobuf.ByteString + getWorkspaceClassBytes(); + + /** + *
+       * editor specifies the editor that will be used with this workspace.
+       * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + boolean hasEditor(); + /** + *
+       * editor specifies the editor that will be used with this workspace.
+       * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + * @return The editor. + */ + io.gitpod.publicapi.v1.Editor.EditorReference getEditor(); + /** + *
+       * editor specifies the editor that will be used with this workspace.
+       * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + */ + io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL} + */ + public static final class ContextURL extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL) + ContextURLOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ContextURL.class.getName()); + } + // Use ContextURL.newBuilder() to construct. + private ContextURL(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ContextURL() { + url_ = ""; + workspaceClass_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.Builder.class); + } + + private int bitField0_; + public static final int URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + *
+       * url is the URL from which the workspace is created
+       * 
+ * + * string url = 1 [json_name = "url"]; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + *
+       * url is the URL from which the workspace is created
+       * 
+ * + * string url = 1 [json_name = "url"]; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_CLASS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceClass_ = ""; + /** + *
+       * workspace_class is the class of the workspace we ought to start
+       * 
+ * + * string workspace_class = 2 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + @java.lang.Override + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } + } + /** + *
+       * workspace_class is the class of the workspace we ought to start
+       * 
+ * + * string workspace_class = 2 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EDITOR_FIELD_NUMBER = 3; + private io.gitpod.publicapi.v1.Editor.EditorReference editor_; + /** + *
+       * editor specifies the editor that will be used with this workspace.
+       * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + @java.lang.Override + public boolean hasEditor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * editor specifies the editor that will be used with this workspace.
+       * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + * @return The editor. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference getEditor() { + return editor_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editor_; + } + /** + *
+       * editor specifies the editor that will be used with this workspace.
+       * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorOrBuilder() { + return editor_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editor_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, workspaceClass_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getEditor()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceClass_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workspaceClass_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEditor()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) obj; + + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getWorkspaceClass() + .equals(other.getWorkspaceClass())) return false; + if (hasEditor() != other.hasEditor()) return false; + if (hasEditor()) { + if (!getEditor() + .equals(other.getEditor())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + WORKSPACE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClass().hashCode(); + if (hasEditor()) { + hash = (37 * hash) + EDITOR_FIELD_NUMBER; + hash = (53 * hash) + getEditor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL) + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURLOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getEditorFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + url_ = ""; + workspaceClass_ = ""; + editor_ = null; + if (editorBuilder_ != null) { + editorBuilder_.dispose(); + editorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspaceClass_ = workspaceClass_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.editor_ = editorBuilder_ == null + ? editor_ + : editorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkspaceClass().isEmpty()) { + workspaceClass_ = other.workspaceClass_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasEditor()) { + mergeEditor(other.getEditor()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workspaceClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getEditorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object url_ = ""; + /** + *
+         * url is the URL from which the workspace is created
+         * 
+ * + * string url = 1 [json_name = "url"]; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * url is the URL from which the workspace is created
+         * 
+ * + * string url = 1 [json_name = "url"]; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * url is the URL from which the workspace is created
+         * 
+ * + * string url = 1 [json_name = "url"]; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * url is the URL from which the workspace is created
+         * 
+ * + * string url = 1 [json_name = "url"]; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * url is the URL from which the workspace is created
+         * 
+ * + * string url = 1 [json_name = "url"]; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workspaceClass_ = ""; + /** + *
+         * workspace_class is the class of the workspace we ought to start
+         * 
+ * + * string workspace_class = 2 [json_name = "workspaceClass"]; + * @return The workspaceClass. + */ + public java.lang.String getWorkspaceClass() { + java.lang.Object ref = workspaceClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * workspace_class is the class of the workspace we ought to start
+         * 
+ * + * string workspace_class = 2 [json_name = "workspaceClass"]; + * @return The bytes for workspaceClass. + */ + public com.google.protobuf.ByteString + getWorkspaceClassBytes() { + java.lang.Object ref = workspaceClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * workspace_class is the class of the workspace we ought to start
+         * 
+ * + * string workspace_class = 2 [json_name = "workspaceClass"]; + * @param value The workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceClass_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * workspace_class is the class of the workspace we ought to start
+         * 
+ * + * string workspace_class = 2 [json_name = "workspaceClass"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceClass() { + workspaceClass_ = getDefaultInstance().getWorkspaceClass(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * workspace_class is the class of the workspace we ought to start
+         * 
+ * + * string workspace_class = 2 [json_name = "workspaceClass"]; + * @param value The bytes for workspaceClass to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceClass_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Editor.EditorReference editor_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> editorBuilder_; + /** + *
+         * editor specifies the editor that will be used with this workspace.
+         * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + public boolean hasEditor() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * editor specifies the editor that will be used with this workspace.
+         * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + * @return The editor. + */ + public io.gitpod.publicapi.v1.Editor.EditorReference getEditor() { + if (editorBuilder_ == null) { + return editor_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editor_; + } else { + return editorBuilder_.getMessage(); + } + } + /** + *
+         * editor specifies the editor that will be used with this workspace.
+         * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + */ + public Builder setEditor(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + editor_ = value; + } else { + editorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * editor specifies the editor that will be used with this workspace.
+         * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + */ + public Builder setEditor( + io.gitpod.publicapi.v1.Editor.EditorReference.Builder builderForValue) { + if (editorBuilder_ == null) { + editor_ = builderForValue.build(); + } else { + editorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * editor specifies the editor that will be used with this workspace.
+         * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + */ + public Builder mergeEditor(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + editor_ != null && + editor_ != io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance()) { + getEditorBuilder().mergeFrom(value); + } else { + editor_ = value; + } + } else { + editorBuilder_.mergeFrom(value); + } + if (editor_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+         * editor specifies the editor that will be used with this workspace.
+         * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + */ + public Builder clearEditor() { + bitField0_ = (bitField0_ & ~0x00000004); + editor_ = null; + if (editorBuilder_ != null) { + editorBuilder_.dispose(); + editorBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * editor specifies the editor that will be used with this workspace.
+         * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReference.Builder getEditorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEditorFieldBuilder().getBuilder(); + } + /** + *
+         * editor specifies the editor that will be used with this workspace.
+         * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorOrBuilder() { + if (editorBuilder_ != null) { + return editorBuilder_.getMessageOrBuilder(); + } else { + return editor_ == null ? + io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editor_; + } + } + /** + *
+         * editor specifies the editor that will be used with this workspace.
+         * 
+ * + * .gitpod.v1.EditorReference editor = 3 [json_name = "editor"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> + getEditorFieldBuilder() { + if (editorBuilder_ == null) { + editorBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder>( + getEditor(), + getParentForChildren(), + isClean()); + editor_ = null; + } + return editorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContextURL parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + private int sourceCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object source_; + public enum SourceCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTEXT_URL(2), + SPEC(3), + SOURCE_NOT_SET(0); + private final int value; + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: return CONTEXT_URL; + case 3: return SPEC; + case 0: return SOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public static final int METADATA_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata metadata_; + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return The metadata. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getMetadata() { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } + + public static final int CONTEXT_URL_FIELD_NUMBER = 2; + /** + *
+     * context_url is the URL from which the workspace is created
+     * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + * @return Whether the contextUrl field is set. + */ + @java.lang.Override + public boolean hasContextUrl() { + return sourceCase_ == 2; + } + /** + *
+     * context_url is the URL from which the workspace is created
+     * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL getContextUrl() { + if (sourceCase_ == 2) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) source_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.getDefaultInstance(); + } + /** + *
+     * context_url is the URL from which the workspace is created
+     * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURLOrBuilder getContextUrlOrBuilder() { + if (sourceCase_ == 2) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) source_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.getDefaultInstance(); + } + + public static final int SPEC_FIELD_NUMBER = 3; + /** + *
+     * spec is the configuration of the workspace that's required for the to
+     * start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return sourceCase_ == 3; + } + /** + *
+     * spec is the configuration of the workspace that's required for the to
+     * start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return The spec. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getSpec() { + if (sourceCase_ == 3) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) source_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance(); + } + /** + *
+     * spec is the configuration of the workspace that's required for the to
+     * start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder getSpecOrBuilder() { + if (sourceCase_ == 3) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) source_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance(); + } + + public static final int FORCE_DEFAULT_CONFIG_FIELD_NUMBER = 4; + private boolean forceDefaultConfig_ = false; + /** + *
+     * force_default_config indicates that the workspace should be created with
+     * the default configuration instead of the configuration provided in
+     * `.gitpod.yml` file
+     * 
+ * + * bool force_default_config = 4 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.CreateAndStartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=208 + * @return The forceDefaultConfig. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getForceDefaultConfig() { + return forceDefaultConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetadata()); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) source_); + } + if (forceDefaultConfig_ != false) { + output.writeBool(4, forceDefaultConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) source_); + } + if (sourceCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) source_); + } + if (forceDefaultConfig_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, forceDefaultConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (getForceDefaultConfig() + != other.getForceDefaultConfig()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getContextUrl() + .equals(other.getContextUrl())) return false; + break; + case 3: + if (!getSpec() + .equals(other.getSpec())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + FORCE_DEFAULT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForceDefaultConfig()); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + CONTEXT_URL_FIELD_NUMBER; + hash = (53 * hash) + getContextUrl().hashCode(); + break; + case 3: + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Required fields:
+     * - metadata.organization_id
+     * - metadata.configuration_id
+     * 
+ * + * Protobuf type {@code gitpod.v1.CreateAndStartWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateAndStartWorkspaceRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + if (contextUrlBuilder_ != null) { + contextUrlBuilder_.clear(); + } + if (specBuilder_ != null) { + specBuilder_.clear(); + } + forceDefaultConfig_ = false; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.forceDefaultConfig_ = forceDefaultConfig_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && + contextUrlBuilder_ != null) { + result.source_ = contextUrlBuilder_.build(); + } + if (sourceCase_ == 3 && + specBuilder_ != null) { + result.source_ = specBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.getForceDefaultConfig() != false) { + setForceDefaultConfig(other.getForceDefaultConfig()); + } + switch (other.getSourceCase()) { + case CONTEXT_URL: { + mergeContextUrl(other.getContextUrl()); + break; + } + case SPEC: { + mergeSpec(other.getSpec()); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getContextUrlFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getSpecFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 32: { + forceDefaultConfig_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int sourceCase_ = 0; + private java.lang.Object source_; + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder> metadataBuilder_; + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return The metadata. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public Builder setMetadata(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public Builder setMetadata( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public Builder mergeMetadata(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + metadata_ != null && + metadata_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURLOrBuilder> contextUrlBuilder_; + /** + *
+       * context_url is the URL from which the workspace is created
+       * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + * @return Whether the contextUrl field is set. + */ + @java.lang.Override + public boolean hasContextUrl() { + return sourceCase_ == 2; + } + /** + *
+       * context_url is the URL from which the workspace is created
+       * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL getContextUrl() { + if (contextUrlBuilder_ == null) { + if (sourceCase_ == 2) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) source_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return contextUrlBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.getDefaultInstance(); + } + } + /** + *
+       * context_url is the URL from which the workspace is created
+       * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + */ + public Builder setContextUrl(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL value) { + if (contextUrlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + contextUrlBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + *
+       * context_url is the URL from which the workspace is created
+       * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + */ + public Builder setContextUrl( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.Builder builderForValue) { + if (contextUrlBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + contextUrlBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + *
+       * context_url is the URL from which the workspace is created
+       * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + */ + public Builder mergeContextUrl(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL value) { + if (contextUrlBuilder_ == null) { + if (sourceCase_ == 2 && + source_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.getDefaultInstance()) { + source_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.newBuilder((io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + contextUrlBuilder_.mergeFrom(value); + } else { + contextUrlBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + *
+       * context_url is the URL from which the workspace is created
+       * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + */ + public Builder clearContextUrl() { + if (contextUrlBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + contextUrlBuilder_.clear(); + } + return this; + } + /** + *
+       * context_url is the URL from which the workspace is created
+       * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.Builder getContextUrlBuilder() { + return getContextUrlFieldBuilder().getBuilder(); + } + /** + *
+       * context_url is the URL from which the workspace is created
+       * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURLOrBuilder getContextUrlOrBuilder() { + if ((sourceCase_ == 2) && (contextUrlBuilder_ != null)) { + return contextUrlBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) source_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.getDefaultInstance(); + } + } + /** + *
+       * context_url is the URL from which the workspace is created
+       * 
+ * + * .gitpod.v1.CreateAndStartWorkspaceRequest.ContextURL context_url = 2 [json_name = "contextUrl"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURLOrBuilder> + getContextUrlFieldBuilder() { + if (contextUrlBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.getDefaultInstance(); + } + contextUrlBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURLOrBuilder>( + (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest.ContextURL) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return contextUrlBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder> specBuilder_; + /** + *
+       * spec is the configuration of the workspace that's required for the to
+       * start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return sourceCase_ == 3; + } + /** + *
+       * spec is the configuration of the workspace that's required for the to
+       * start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return The spec. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getSpec() { + if (specBuilder_ == null) { + if (sourceCase_ == 3) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) source_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return specBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance(); + } + } + /** + *
+       * spec is the configuration of the workspace that's required for the to
+       * start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder setSpec(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + *
+       * spec is the configuration of the workspace that's required for the to
+       * start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder setSpec( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder builderForValue) { + if (specBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + *
+       * spec is the configuration of the workspace that's required for the to
+       * start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder mergeSpec(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec value) { + if (specBuilder_ == null) { + if (sourceCase_ == 3 && + source_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance()) { + source_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.newBuilder((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + specBuilder_.mergeFrom(value); + } else { + specBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + /** + *
+       * spec is the configuration of the workspace that's required for the to
+       * start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + specBuilder_.clear(); + } + return this; + } + /** + *
+       * spec is the configuration of the workspace that's required for the to
+       * start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder getSpecBuilder() { + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * spec is the configuration of the workspace that's required for the to
+       * start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder getSpecOrBuilder() { + if ((sourceCase_ == 3) && (specBuilder_ != null)) { + return specBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) source_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance(); + } + } + /** + *
+       * spec is the configuration of the workspace that's required for the to
+       * start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance(); + } + specBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder>( + (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return specBuilder_; + } + + private boolean forceDefaultConfig_ ; + /** + *
+       * force_default_config indicates that the workspace should be created with
+       * the default configuration instead of the configuration provided in
+       * `.gitpod.yml` file
+       * 
+ * + * bool force_default_config = 4 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.CreateAndStartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=208 + * @return The forceDefaultConfig. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getForceDefaultConfig() { + return forceDefaultConfig_; + } + /** + *
+       * force_default_config indicates that the workspace should be created with
+       * the default configuration instead of the configuration provided in
+       * `.gitpod.yml` file
+       * 
+ * + * bool force_default_config = 4 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.CreateAndStartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=208 + * @param value The forceDefaultConfig to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setForceDefaultConfig(boolean value) { + + forceDefaultConfig_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * force_default_config indicates that the workspace should be created with
+       * the default configuration instead of the configuration provided in
+       * `.gitpod.yml` file
+       * 
+ * + * bool force_default_config = 4 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.CreateAndStartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=208 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearForceDefaultConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + forceDefaultConfig_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateAndStartWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateAndStartWorkspaceRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAndStartWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateAndStartWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateAndStartWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + boolean hasWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateAndStartWorkspaceResponse} + */ + public static final class CreateAndStartWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateAndStartWorkspaceResponse) + CreateAndStartWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateAndStartWorkspaceResponse.class.getName()); + } + // Use CreateAndStartWorkspaceResponse.newBuilder() to construct. + private CreateAndStartWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateAndStartWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + @java.lang.Override + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getWorkspace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkspace()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse) obj; + + if (hasWorkspace() != other.hasWorkspace()) return false; + if (hasWorkspace()) { + if (!getWorkspace() + .equals(other.getWorkspace())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkspace()) { + hash = (37 * hash) + WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getWorkspace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateAndStartWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateAndStartWorkspaceResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getWorkspaceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspace_ = workspaceBuilder_ == null + ? workspace_ + : workspaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse.getDefaultInstance()) return this; + if (other.hasWorkspace()) { + mergeWorkspace(other.getWorkspace()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getWorkspaceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> workspaceBuilder_; + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + if (workspaceBuilder_ == null) { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } else { + return workspaceBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder setWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspace_ = value; + } else { + workspaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder setWorkspace( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder builderForValue) { + if (workspaceBuilder_ == null) { + workspace_ = builderForValue.build(); + } else { + workspaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder mergeWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + workspace_ != null && + workspace_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance()) { + getWorkspaceBuilder().mergeFrom(value); + } else { + workspace_ = value; + } + } else { + workspaceBuilder_.mergeFrom(value); + } + if (workspace_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder clearWorkspace() { + bitField0_ = (bitField0_ & ~0x00000001); + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder getWorkspaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWorkspaceFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + if (workspaceBuilder_ != null) { + return workspaceBuilder_.getMessageOrBuilder(); + } else { + return workspace_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> + getWorkspaceFieldBuilder() { + if (workspaceBuilder_ == null) { + workspaceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder>( + getWorkspace(), + getParentForChildren(), + isClean()); + workspace_ = null; + } + return workspaceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateAndStartWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateAndStartWorkspaceResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAndStartWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StartWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.StartWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies the workspace that is going to start
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies the workspace that is going to start
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + * bool force_default_config = 2 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.StartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=221 + * @return The forceDefaultConfig. + */ + @java.lang.Deprecated boolean getForceDefaultConfig(); + } + /** + * Protobuf type {@code gitpod.v1.StartWorkspaceRequest} + */ + public static final class StartWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.StartWorkspaceRequest) + StartWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StartWorkspaceRequest.class.getName()); + } + // Use StartWorkspaceRequest.newBuilder() to construct. + private StartWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StartWorkspaceRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies the workspace that is going to start
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies the workspace that is going to start
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_DEFAULT_CONFIG_FIELD_NUMBER = 2; + private boolean forceDefaultConfig_ = false; + /** + * bool force_default_config = 2 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.StartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=221 + * @return The forceDefaultConfig. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getForceDefaultConfig() { + return forceDefaultConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + if (forceDefaultConfig_ != false) { + output.writeBool(2, forceDefaultConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + if (forceDefaultConfig_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, forceDefaultConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (getForceDefaultConfig() + != other.getForceDefaultConfig()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (37 * hash) + FORCE_DEFAULT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForceDefaultConfig()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.StartWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.StartWorkspaceRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + forceDefaultConfig_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.forceDefaultConfig_ = forceDefaultConfig_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForceDefaultConfig() != false) { + setForceDefaultConfig(other.getForceDefaultConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + forceDefaultConfig_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies the workspace that is going to start
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies the workspace that is going to start
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies the workspace that is going to start
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace that is going to start
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace that is going to start
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean forceDefaultConfig_ ; + /** + * bool force_default_config = 2 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.StartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=221 + * @return The forceDefaultConfig. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getForceDefaultConfig() { + return forceDefaultConfig_; + } + /** + * bool force_default_config = 2 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.StartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=221 + * @param value The forceDefaultConfig to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setForceDefaultConfig(boolean value) { + + forceDefaultConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool force_default_config = 2 [json_name = "forceDefaultConfig", deprecated = true]; + * @deprecated gitpod.v1.StartWorkspaceRequest.force_default_config is deprecated. + * See gitpod/v1/workspace.proto;l=221 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearForceDefaultConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + forceDefaultConfig_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.StartWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.StartWorkspaceRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StartWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.StartWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + boolean hasWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.StartWorkspaceResponse} + */ + public static final class StartWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.StartWorkspaceResponse) + StartWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StartWorkspaceResponse.class.getName()); + } + // Use StartWorkspaceResponse.newBuilder() to construct. + private StartWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StartWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + @java.lang.Override + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getWorkspace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkspace()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse) obj; + + if (hasWorkspace() != other.hasWorkspace()) return false; + if (hasWorkspace()) { + if (!getWorkspace() + .equals(other.getWorkspace())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkspace()) { + hash = (37 * hash) + WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getWorkspace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.StartWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.StartWorkspaceResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getWorkspaceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StartWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspace_ = workspaceBuilder_ == null + ? workspace_ + : workspaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse.getDefaultInstance()) return this; + if (other.hasWorkspace()) { + mergeWorkspace(other.getWorkspace()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getWorkspaceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> workspaceBuilder_; + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + if (workspaceBuilder_ == null) { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } else { + return workspaceBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder setWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspace_ = value; + } else { + workspaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder setWorkspace( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder builderForValue) { + if (workspaceBuilder_ == null) { + workspace_ = builderForValue.build(); + } else { + workspaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder mergeWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + workspace_ != null && + workspace_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance()) { + getWorkspaceBuilder().mergeFrom(value); + } else { + workspace_ = value; + } + } else { + workspaceBuilder_.mergeFrom(value); + } + if (workspace_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder clearWorkspace() { + bitField0_ = (bitField0_ & ~0x00000001); + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder getWorkspaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWorkspaceFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + if (workspaceBuilder_ != null) { + return workspaceBuilder_.getMessageOrBuilder(); + } else { + return workspace_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> + getWorkspaceFieldBuilder() { + if (workspaceBuilder_ == null) { + workspaceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder>( + getWorkspace(), + getParentForChildren(), + isClean()); + workspace_ = null; + } + return workspaceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.StartWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.StartWorkspaceResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceDefaultImageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetWorkspaceDefaultImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies the workspace to get default image
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies the workspace to get default image
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceDefaultImageRequest} + */ + public static final class GetWorkspaceDefaultImageRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetWorkspaceDefaultImageRequest) + GetWorkspaceDefaultImageRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceDefaultImageRequest.class.getName()); + } + // Use GetWorkspaceDefaultImageRequest.newBuilder() to construct. + private GetWorkspaceDefaultImageRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceDefaultImageRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies the workspace to get default image
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies the workspace to get default image
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceDefaultImageRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetWorkspaceDefaultImageRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies the workspace to get default image
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to get default image
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to get default image
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to get default image
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to get default image
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetWorkspaceDefaultImageRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetWorkspaceDefaultImageRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceDefaultImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceDefaultImageResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetWorkspaceDefaultImageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + java.lang.String getDefaultWorkspaceImage(); + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes(); + + /** + * .gitpod.v1.GetWorkspaceDefaultImageResponse.Source source = 2 [json_name = "source"]; + * @return The enum numeric value on the wire for source. + */ + int getSourceValue(); + /** + * .gitpod.v1.GetWorkspaceDefaultImageResponse.Source source = 2 [json_name = "source"]; + * @return The source. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source getSource(); + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceDefaultImageResponse} + */ + public static final class GetWorkspaceDefaultImageResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetWorkspaceDefaultImageResponse) + GetWorkspaceDefaultImageResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceDefaultImageResponse.class.getName()); + } + // Use GetWorkspaceDefaultImageResponse.newBuilder() to construct. + private GetWorkspaceDefaultImageResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceDefaultImageResponse() { + defaultWorkspaceImage_ = ""; + source_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Builder.class); + } + + /** + * Protobuf enum {@code gitpod.v1.GetWorkspaceDefaultImageResponse.Source} + */ + public enum Source + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SOURCE_UNSPECIFIED = 0; + */ + SOURCE_UNSPECIFIED(0), + /** + * SOURCE_INSTALLATION = 1; + */ + SOURCE_INSTALLATION(1), + /** + * SOURCE_ORGANIZATION = 2; + */ + SOURCE_ORGANIZATION(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Source.class.getName()); + } + /** + * SOURCE_UNSPECIFIED = 0; + */ + public static final int SOURCE_UNSPECIFIED_VALUE = 0; + /** + * SOURCE_INSTALLATION = 1; + */ + public static final int SOURCE_INSTALLATION_VALUE = 1; + /** + * SOURCE_ORGANIZATION = 2; + */ + public static final int SOURCE_ORGANIZATION_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Source valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Source forNumber(int value) { + switch (value) { + case 0: return SOURCE_UNSPECIFIED; + case 1: return SOURCE_INSTALLATION; + case 2: return SOURCE_ORGANIZATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Source> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Source findValueByNumber(int number) { + return Source.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final Source[] VALUES = values(); + + public static Source valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Source(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.GetWorkspaceDefaultImageResponse.Source) + } + + public static final int DEFAULT_WORKSPACE_IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object defaultWorkspaceImage_ = ""; + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + @java.lang.Override + public java.lang.String getDefaultWorkspaceImage() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultWorkspaceImage_ = s; + return s; + } + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultWorkspaceImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 2; + private int source_ = 0; + /** + * .gitpod.v1.GetWorkspaceDefaultImageResponse.Source source = 2 [json_name = "source"]; + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override public int getSourceValue() { + return source_; + } + /** + * .gitpod.v1.GetWorkspaceDefaultImageResponse.Source source = 2 [json_name = "source"]; + * @return The source. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source getSource() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source result = io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source.forNumber(source_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultWorkspaceImage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, defaultWorkspaceImage_); + } + if (source_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source.SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultWorkspaceImage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, defaultWorkspaceImage_); + } + if (source_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source.SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse) obj; + + if (!getDefaultWorkspaceImage() + .equals(other.getDefaultWorkspaceImage())) return false; + if (source_ != other.source_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_WORKSPACE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultWorkspaceImage().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceDefaultImageResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetWorkspaceDefaultImageResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultWorkspaceImage_ = ""; + source_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultWorkspaceImage_ = defaultWorkspaceImage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.source_ = source_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.getDefaultInstance()) return this; + if (!other.getDefaultWorkspaceImage().isEmpty()) { + defaultWorkspaceImage_ = other.defaultWorkspaceImage_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.source_ != 0) { + setSourceValue(other.getSourceValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + defaultWorkspaceImage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + source_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object defaultWorkspaceImage_ = ""; + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The defaultWorkspaceImage. + */ + public java.lang.String getDefaultWorkspaceImage() { + java.lang.Object ref = defaultWorkspaceImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultWorkspaceImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return The bytes for defaultWorkspaceImage. + */ + public com.google.protobuf.ByteString + getDefaultWorkspaceImageBytes() { + java.lang.Object ref = defaultWorkspaceImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultWorkspaceImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @param value The defaultWorkspaceImage to set. + * @return This builder for chaining. + */ + public Builder setDefaultWorkspaceImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + defaultWorkspaceImage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @return This builder for chaining. + */ + public Builder clearDefaultWorkspaceImage() { + defaultWorkspaceImage_ = getDefaultInstance().getDefaultWorkspaceImage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string default_workspace_image = 1 [json_name = "defaultWorkspaceImage"]; + * @param value The bytes for defaultWorkspaceImage to set. + * @return This builder for chaining. + */ + public Builder setDefaultWorkspaceImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + defaultWorkspaceImage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int source_ = 0; + /** + * .gitpod.v1.GetWorkspaceDefaultImageResponse.Source source = 2 [json_name = "source"]; + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override public int getSourceValue() { + return source_; + } + /** + * .gitpod.v1.GetWorkspaceDefaultImageResponse.Source source = 2 [json_name = "source"]; + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + public Builder setSourceValue(int value) { + source_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.GetWorkspaceDefaultImageResponse.Source source = 2 [json_name = "source"]; + * @return The source. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source getSource() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source result = io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source.forNumber(source_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.GetWorkspaceDefaultImageResponse.Source source = 2 [json_name = "source"]; + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse.Source value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + source_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.GetWorkspaceDefaultImageResponse.Source source = 2 [json_name = "source"]; + * @return This builder for chaining. + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000002); + source_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetWorkspaceDefaultImageResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetWorkspaceDefaultImageResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceDefaultImageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SendHeartBeatRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SendHeartBeatRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies the workspace to send heartbeat
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies the workspace to send heartbeat
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + *
+     * disconnected indicates if the editor connection is disconnected.
+     * If set to true, the workspace will be stopped after Timeout.disconnected.
+     * 
+ * + * bool disconnected = 2 [json_name = "disconnected"]; + * @return The disconnected. + */ + boolean getDisconnected(); + } + /** + * Protobuf type {@code gitpod.v1.SendHeartBeatRequest} + */ + public static final class SendHeartBeatRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SendHeartBeatRequest) + SendHeartBeatRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SendHeartBeatRequest.class.getName()); + } + // Use SendHeartBeatRequest.newBuilder() to construct. + private SendHeartBeatRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SendHeartBeatRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies the workspace to send heartbeat
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies the workspace to send heartbeat
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISCONNECTED_FIELD_NUMBER = 2; + private boolean disconnected_ = false; + /** + *
+     * disconnected indicates if the editor connection is disconnected.
+     * If set to true, the workspace will be stopped after Timeout.disconnected.
+     * 
+ * + * bool disconnected = 2 [json_name = "disconnected"]; + * @return The disconnected. + */ + @java.lang.Override + public boolean getDisconnected() { + return disconnected_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + if (disconnected_ != false) { + output.writeBool(2, disconnected_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + if (disconnected_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, disconnected_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (getDisconnected() + != other.getDisconnected()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (37 * hash) + DISCONNECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisconnected()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SendHeartBeatRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SendHeartBeatRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + disconnected_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disconnected_ = disconnected_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDisconnected() != false) { + setDisconnected(other.getDisconnected()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + disconnected_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies the workspace to send heartbeat
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to send heartbeat
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to send heartbeat
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to send heartbeat
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to send heartbeat
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean disconnected_ ; + /** + *
+       * disconnected indicates if the editor connection is disconnected.
+       * If set to true, the workspace will be stopped after Timeout.disconnected.
+       * 
+ * + * bool disconnected = 2 [json_name = "disconnected"]; + * @return The disconnected. + */ + @java.lang.Override + public boolean getDisconnected() { + return disconnected_; + } + /** + *
+       * disconnected indicates if the editor connection is disconnected.
+       * If set to true, the workspace will be stopped after Timeout.disconnected.
+       * 
+ * + * bool disconnected = 2 [json_name = "disconnected"]; + * @param value The disconnected to set. + * @return This builder for chaining. + */ + public Builder setDisconnected(boolean value) { + + disconnected_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * disconnected indicates if the editor connection is disconnected.
+       * If set to true, the workspace will be stopped after Timeout.disconnected.
+       * 
+ * + * bool disconnected = 2 [json_name = "disconnected"]; + * @return This builder for chaining. + */ + public Builder clearDisconnected() { + bitField0_ = (bitField0_ & ~0x00000002); + disconnected_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SendHeartBeatRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SendHeartBeatRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendHeartBeatRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SendHeartBeatResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SendHeartBeatResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.SendHeartBeatResponse} + */ + public static final class SendHeartBeatResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SendHeartBeatResponse) + SendHeartBeatResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SendHeartBeatResponse.class.getName()); + } + // Use SendHeartBeatResponse.newBuilder() to construct. + private SendHeartBeatResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SendHeartBeatResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SendHeartBeatResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SendHeartBeatResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SendHeartBeatResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SendHeartBeatResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SendHeartBeatResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendHeartBeatResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceOwnerTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetWorkspaceOwnerTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceOwnerTokenRequest} + */ + public static final class GetWorkspaceOwnerTokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetWorkspaceOwnerTokenRequest) + GetWorkspaceOwnerTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceOwnerTokenRequest.class.getName()); + } + // Use GetWorkspaceOwnerTokenRequest.newBuilder() to construct. + private GetWorkspaceOwnerTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceOwnerTokenRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceOwnerTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetWorkspaceOwnerTokenRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetWorkspaceOwnerTokenRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetWorkspaceOwnerTokenRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceOwnerTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceOwnerTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetWorkspaceOwnerTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string owner_token = 1 [json_name = "ownerToken"]; + * @return The ownerToken. + */ + java.lang.String getOwnerToken(); + /** + * string owner_token = 1 [json_name = "ownerToken"]; + * @return The bytes for ownerToken. + */ + com.google.protobuf.ByteString + getOwnerTokenBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceOwnerTokenResponse} + */ + public static final class GetWorkspaceOwnerTokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetWorkspaceOwnerTokenResponse) + GetWorkspaceOwnerTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceOwnerTokenResponse.class.getName()); + } + // Use GetWorkspaceOwnerTokenResponse.newBuilder() to construct. + private GetWorkspaceOwnerTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceOwnerTokenResponse() { + ownerToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse.Builder.class); + } + + public static final int OWNER_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object ownerToken_ = ""; + /** + * string owner_token = 1 [json_name = "ownerToken"]; + * @return The ownerToken. + */ + @java.lang.Override + public java.lang.String getOwnerToken() { + java.lang.Object ref = ownerToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerToken_ = s; + return s; + } + } + /** + * string owner_token = 1 [json_name = "ownerToken"]; + * @return The bytes for ownerToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOwnerTokenBytes() { + java.lang.Object ref = ownerToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ownerToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, ownerToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ownerToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, ownerToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse) obj; + + if (!getOwnerToken() + .equals(other.getOwnerToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OWNER_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getOwnerToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceOwnerTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetWorkspaceOwnerTokenResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ownerToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ownerToken_ = ownerToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse.getDefaultInstance()) return this; + if (!other.getOwnerToken().isEmpty()) { + ownerToken_ = other.ownerToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ownerToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object ownerToken_ = ""; + /** + * string owner_token = 1 [json_name = "ownerToken"]; + * @return The ownerToken. + */ + public java.lang.String getOwnerToken() { + java.lang.Object ref = ownerToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string owner_token = 1 [json_name = "ownerToken"]; + * @return The bytes for ownerToken. + */ + public com.google.protobuf.ByteString + getOwnerTokenBytes() { + java.lang.Object ref = ownerToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string owner_token = 1 [json_name = "ownerToken"]; + * @param value The ownerToken to set. + * @return This builder for chaining. + */ + public Builder setOwnerToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ownerToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string owner_token = 1 [json_name = "ownerToken"]; + * @return This builder for chaining. + */ + public Builder clearOwnerToken() { + ownerToken_ = getDefaultInstance().getOwnerToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string owner_token = 1 [json_name = "ownerToken"]; + * @param value The bytes for ownerToken to set. + * @return This builder for chaining. + */ + public Builder setOwnerTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ownerToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetWorkspaceOwnerTokenResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetWorkspaceOwnerTokenResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceOwnerTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceEditorCredentialsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetWorkspaceEditorCredentialsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceEditorCredentialsRequest} + */ + public static final class GetWorkspaceEditorCredentialsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetWorkspaceEditorCredentialsRequest) + GetWorkspaceEditorCredentialsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceEditorCredentialsRequest.class.getName()); + } + // Use GetWorkspaceEditorCredentialsRequest.newBuilder() to construct. + private GetWorkspaceEditorCredentialsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceEditorCredentialsRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceEditorCredentialsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetWorkspaceEditorCredentialsRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetWorkspaceEditorCredentialsRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetWorkspaceEditorCredentialsRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceEditorCredentialsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetWorkspaceEditorCredentialsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GetWorkspaceEditorCredentialsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string editor_credentials = 1 [json_name = "editorCredentials"]; + * @return The editorCredentials. + */ + java.lang.String getEditorCredentials(); + /** + * string editor_credentials = 1 [json_name = "editorCredentials"]; + * @return The bytes for editorCredentials. + */ + com.google.protobuf.ByteString + getEditorCredentialsBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceEditorCredentialsResponse} + */ + public static final class GetWorkspaceEditorCredentialsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GetWorkspaceEditorCredentialsResponse) + GetWorkspaceEditorCredentialsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GetWorkspaceEditorCredentialsResponse.class.getName()); + } + // Use GetWorkspaceEditorCredentialsResponse.newBuilder() to construct. + private GetWorkspaceEditorCredentialsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetWorkspaceEditorCredentialsResponse() { + editorCredentials_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse.Builder.class); + } + + public static final int EDITOR_CREDENTIALS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object editorCredentials_ = ""; + /** + * string editor_credentials = 1 [json_name = "editorCredentials"]; + * @return The editorCredentials. + */ + @java.lang.Override + public java.lang.String getEditorCredentials() { + java.lang.Object ref = editorCredentials_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + editorCredentials_ = s; + return s; + } + } + /** + * string editor_credentials = 1 [json_name = "editorCredentials"]; + * @return The bytes for editorCredentials. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEditorCredentialsBytes() { + java.lang.Object ref = editorCredentials_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + editorCredentials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(editorCredentials_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, editorCredentials_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(editorCredentials_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, editorCredentials_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse) obj; + + if (!getEditorCredentials() + .equals(other.getEditorCredentials())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EDITOR_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getEditorCredentials().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GetWorkspaceEditorCredentialsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GetWorkspaceEditorCredentialsResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + editorCredentials_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.editorCredentials_ = editorCredentials_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse.getDefaultInstance()) return this; + if (!other.getEditorCredentials().isEmpty()) { + editorCredentials_ = other.editorCredentials_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + editorCredentials_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object editorCredentials_ = ""; + /** + * string editor_credentials = 1 [json_name = "editorCredentials"]; + * @return The editorCredentials. + */ + public java.lang.String getEditorCredentials() { + java.lang.Object ref = editorCredentials_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + editorCredentials_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string editor_credentials = 1 [json_name = "editorCredentials"]; + * @return The bytes for editorCredentials. + */ + public com.google.protobuf.ByteString + getEditorCredentialsBytes() { + java.lang.Object ref = editorCredentials_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + editorCredentials_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string editor_credentials = 1 [json_name = "editorCredentials"]; + * @param value The editorCredentials to set. + * @return This builder for chaining. + */ + public Builder setEditorCredentials( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + editorCredentials_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string editor_credentials = 1 [json_name = "editorCredentials"]; + * @return This builder for chaining. + */ + public Builder clearEditorCredentials() { + editorCredentials_ = getDefaultInstance().getEditorCredentials(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string editor_credentials = 1 [json_name = "editorCredentials"]; + * @param value The bytes for editorCredentials to set. + * @return This builder for chaining. + */ + public Builder setEditorCredentialsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + editorCredentials_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GetWorkspaceEditorCredentialsResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GetWorkspaceEditorCredentialsResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkspaceEditorCredentialsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.Workspace) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID is a unique identifier of this workspace. No other workspace with the
+     * same name must be managed by this workspace manager
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * ID is a unique identifier of this workspace. No other workspace with the
+     * same name must be managed by this workspace manager
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + *
+     * Metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return The metadata. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getMetadata(); + /** + *
+     * Metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + boolean hasSpec(); + /** + *
+     * Spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return The spec. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getSpec(); + /** + *
+     * Spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * Status is the current status of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+     * Status is the current status of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + * @return The status. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus getStatus(); + /** + *
+     * Status is the current status of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * +resource get workspace
+   * 
+ * + * Protobuf type {@code gitpod.v1.Workspace} + */ + public static final class Workspace extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.Workspace) + WorkspaceOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Workspace.class.getName()); + } + // Use Workspace.newBuilder() to construct. + private Workspace(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Workspace() { + id_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_Workspace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_Workspace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * ID is a unique identifier of this workspace. No other workspace with the
+     * same name must be managed by this workspace manager
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * ID is a unique identifier of this workspace. No other workspace with the
+     * same name must be managed by this workspace manager
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata metadata_; + /** + *
+     * Metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return The metadata. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getMetadata() { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 3; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec spec_; + /** + *
+     * Spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return The spec. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getSpec() { + return spec_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance() : spec_; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus status_; + /** + *
+     * Status is the current status of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Status is the current status of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus getStatus() { + return status_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance() : status_; + } + /** + *
+     * Status is the current status of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * +resource get workspace
+     * 
+ * + * Protobuf type {@code gitpod.v1.Workspace} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.Workspace) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_Workspace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_Workspace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_Workspace_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.spec_ = specBuilder_ == null + ? spec_ + : specBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * ID is a unique identifier of this workspace. No other workspace with the
+       * same name must be managed by this workspace manager
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ID is a unique identifier of this workspace. No other workspace with the
+       * same name must be managed by this workspace manager
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ID is a unique identifier of this workspace. No other workspace with the
+       * same name must be managed by this workspace manager
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * ID is a unique identifier of this workspace. No other workspace with the
+       * same name must be managed by this workspace manager
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * ID is a unique identifier of this workspace. No other workspace with the
+       * same name must be managed by this workspace manager
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return The metadata. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public Builder setMetadata(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public Builder setMetadata( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public Builder mergeMetadata(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + metadata_ != null && + metadata_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * Metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * .gitpod.v1.WorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec spec_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder> specBuilder_; + /** + *
+       * Spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + * @return The spec. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder setSpec(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder setSpec( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder mergeSpec(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + spec_ != null && + spec_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance()) { + getSpecBuilder().mergeFrom(value); + } else { + spec_ = value; + } + } else { + specBuilder_.mergeFrom(value); + } + if (spec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * Spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder clearSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec spec = 3 [json_name = "spec"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus status_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder> statusBuilder_; + /** + *
+       * Status is the current status of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * Status is the current status of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + * @return The status. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * Status is the current status of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + */ + public Builder setStatus(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Status is the current status of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + */ + public Builder setStatus( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Status is the current status of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + */ + public Builder mergeStatus(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + status_ != null && + status_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * Status is the current status of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Status is the current status of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * Status is the current status of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance() : status_; + } + } + /** + *
+       * Status is the current status of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus status = 4 [json_name = "status"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.Workspace) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.Workspace) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workspace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * owner_id is the ID of the Gitpod user to whom we'll bill this workspace and
+     * who we consider responsible for its content
+     * 
+ * + * string owner_id = 1 [json_name = "ownerId"]; + * @return The ownerId. + */ + java.lang.String getOwnerId(); + /** + *
+     * owner_id is the ID of the Gitpod user to whom we'll bill this workspace and
+     * who we consider responsible for its content
+     * 
+ * + * string owner_id = 1 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + + /** + *
+     * organization_id is the ID of the organization that contains the workspace
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + *
+     * organization_id is the ID of the organization that contains the workspace
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + *
+     * configuration_id is the ID of the configuration used by this workspace
+     * 
+ * + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + *
+     * configuration_id is the ID of the configuration used by this workspace
+     * 
+ * + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + + /** + *
+     * annotations are key/value pairs that gets attached to the workspace.
+     * +internal - not yet implemented
+     * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + int getAnnotationsCount(); + /** + *
+     * annotations are key/value pairs that gets attached to the workspace.
+     * +internal - not yet implemented
+     * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+     * annotations are key/value pairs that gets attached to the workspace.
+     * +internal - not yet implemented
+     * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+     * annotations are key/value pairs that gets attached to the workspace.
+     * +internal - not yet implemented
+     * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * annotations are key/value pairs that gets attached to the workspace.
+     * +internal - not yet implemented
+     * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + java.lang.String getAnnotationsOrThrow( + java.lang.String key); + + /** + *
+     * name is the name of the workspace as specified by the user
+     * 
+ * + * string name = 5 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * name is the name of the workspace as specified by the user
+     * 
+ * + * string name = 5 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * pinned indicates whether the workspace is pinned
+     * 
+ * + * bool pinned = 6 [json_name = "pinned"]; + * @return The pinned. + */ + boolean getPinned(); + + /** + *
+     * original_context_url is the normalized URL from which the workspace was
+     * created
+     * 
+ * + * string original_context_url = 7 [json_name = "originalContextUrl"]; + * @return The originalContextUrl. + */ + java.lang.String getOriginalContextUrl(); + /** + *
+     * original_context_url is the normalized URL from which the workspace was
+     * created
+     * 
+ * + * string original_context_url = 7 [json_name = "originalContextUrl"]; + * @return The bytes for originalContextUrl. + */ + com.google.protobuf.ByteString + getOriginalContextUrlBytes(); + } + /** + *
+   * WorkspaceMetadata is data associated with a workspace that's required for
+   * other parts of the system to function
+   * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceMetadata} + */ + public static final class WorkspaceMetadata extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceMetadata) + WorkspaceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceMetadata.class.getName()); + } + // Use WorkspaceMetadata.newBuilder() to construct. + private WorkspaceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceMetadata() { + ownerId_ = ""; + organizationId_ = ""; + configurationId_ = ""; + name_ = ""; + originalContextUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetAnnotations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder.class); + } + + public static final int OWNER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object ownerId_ = ""; + /** + *
+     * owner_id is the ID of the Gitpod user to whom we'll bill this workspace and
+     * who we consider responsible for its content
+     * 
+ * + * string owner_id = 1 [json_name = "ownerId"]; + * @return The ownerId. + */ + @java.lang.Override + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } + } + /** + *
+     * owner_id is the ID of the Gitpod user to whom we'll bill this workspace and
+     * who we consider responsible for its content
+     * 
+ * + * string owner_id = 1 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + *
+     * organization_id is the ID of the organization that contains the workspace
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } + } + /** + *
+     * organization_id is the ID of the organization that contains the workspace
+     * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + *
+     * configuration_id is the ID of the configuration used by this workspace
+     * 
+ * + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + *
+     * configuration_id is the ID of the configuration used by this workspace
+     * 
+ * + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 4; + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceMetadata_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * annotations are key/value pairs that gets attached to the workspace.
+     * +internal - not yet implemented
+     * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * annotations are key/value pairs that gets attached to the workspace.
+     * +internal - not yet implemented
+     * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * annotations are key/value pairs that gets attached to the workspace.
+     * +internal - not yet implemented
+     * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * annotations are key/value pairs that gets attached to the workspace.
+     * +internal - not yet implemented
+     * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * name is the name of the workspace as specified by the user
+     * 
+ * + * string name = 5 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name is the name of the workspace as specified by the user
+     * 
+ * + * string name = 5 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PINNED_FIELD_NUMBER = 6; + private boolean pinned_ = false; + /** + *
+     * pinned indicates whether the workspace is pinned
+     * 
+ * + * bool pinned = 6 [json_name = "pinned"]; + * @return The pinned. + */ + @java.lang.Override + public boolean getPinned() { + return pinned_; + } + + public static final int ORIGINAL_CONTEXT_URL_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object originalContextUrl_ = ""; + /** + *
+     * original_context_url is the normalized URL from which the workspace was
+     * created
+     * 
+ * + * string original_context_url = 7 [json_name = "originalContextUrl"]; + * @return The originalContextUrl. + */ + @java.lang.Override + public java.lang.String getOriginalContextUrl() { + java.lang.Object ref = originalContextUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originalContextUrl_ = s; + return s; + } + } + /** + *
+     * original_context_url is the normalized URL from which the workspace was
+     * created
+     * 
+ * + * string original_context_url = 7 [json_name = "originalContextUrl"]; + * @return The bytes for originalContextUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOriginalContextUrlBytes() { + java.lang.Object ref = originalContextUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + originalContextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ownerId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, ownerId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, configurationId_); + } + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, name_); + } + if (pinned_ != false) { + output.writeBool(6, pinned_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originalContextUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, originalContextUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ownerId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, ownerId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organizationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, configurationId_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, annotations__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, name_); + } + if (pinned_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, pinned_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originalContextUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, originalContextUrl_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata) obj; + + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPinned() + != other.getPinned()) return false; + if (!getOriginalContextUrl() + .equals(other.getOriginalContextUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PINNED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinned()); + hash = (37 * hash) + ORIGINAL_CONTEXT_URL_FIELD_NUMBER; + hash = (53 * hash) + getOriginalContextUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceMetadata is data associated with a workspace that's required for
+     * other parts of the system to function
+     * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceMetadata) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetAnnotations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ownerId_ = ""; + organizationId_ = ""; + configurationId_ = ""; + internalGetMutableAnnotations().clear(); + name_ = ""; + pinned_ = false; + originalContextUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceMetadata_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ownerId_ = ownerId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.configurationId_ = configurationId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pinned_ = pinned_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.originalContextUrl_ = originalContextUrl_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance()) return this; + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + bitField0_ |= 0x00000008; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getPinned() != false) { + setPinned(other.getPinned()); + } + if (!other.getOriginalContextUrl().isEmpty()) { + originalContextUrl_ = other.originalContextUrl_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ownerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + pinned_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + originalContextUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object ownerId_ = ""; + /** + *
+       * owner_id is the ID of the Gitpod user to whom we'll bill this workspace and
+       * who we consider responsible for its content
+       * 
+ * + * string owner_id = 1 [json_name = "ownerId"]; + * @return The ownerId. + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * owner_id is the ID of the Gitpod user to whom we'll bill this workspace and
+       * who we consider responsible for its content
+       * 
+ * + * string owner_id = 1 [json_name = "ownerId"]; + * @return The bytes for ownerId. + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * owner_id is the ID of the Gitpod user to whom we'll bill this workspace and
+       * who we consider responsible for its content
+       * 
+ * + * string owner_id = 1 [json_name = "ownerId"]; + * @param value The ownerId to set. + * @return This builder for chaining. + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ownerId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * owner_id is the ID of the Gitpod user to whom we'll bill this workspace and
+       * who we consider responsible for its content
+       * 
+ * + * string owner_id = 1 [json_name = "ownerId"]; + * @return This builder for chaining. + */ + public Builder clearOwnerId() { + ownerId_ = getDefaultInstance().getOwnerId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * owner_id is the ID of the Gitpod user to whom we'll bill this workspace and
+       * who we consider responsible for its content
+       * 
+ * + * string owner_id = 1 [json_name = "ownerId"]; + * @param value The bytes for ownerId to set. + * @return This builder for chaining. + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ownerId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + *
+       * organization_id is the ID of the organization that contains the workspace
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * organization_id is the ID of the organization that contains the workspace
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * organization_id is the ID of the organization that contains the workspace
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization that contains the workspace
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * organization_id is the ID of the organization that contains the workspace
+       * 
+ * + * string organization_id = 2 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object configurationId_ = ""; + /** + *
+       * configuration_id is the ID of the configuration used by this workspace
+       * 
+ * + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * configuration_id is the ID of the configuration used by this workspace
+       * 
+ * + * string configuration_id = 3 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * configuration_id is the ID of the configuration used by this workspace
+       * 
+ * + * string configuration_id = 3 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * configuration_id is the ID of the configuration used by this workspace
+       * 
+ * + * string configuration_id = 3 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * configuration_id is the ID of the configuration used by this workspace
+       * 
+ * + * string configuration_id = 3 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return annotations_; + } + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+       * annotations are key/value pairs that gets attached to the workspace.
+       * +internal - not yet implemented
+       * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+       * annotations are key/value pairs that gets attached to the workspace.
+       * +internal - not yet implemented
+       * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+       * annotations are key/value pairs that gets attached to the workspace.
+       * +internal - not yet implemented
+       * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * annotations are key/value pairs that gets attached to the workspace.
+       * +internal - not yet implemented
+       * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+       * annotations are key/value pairs that gets attached to the workspace.
+       * +internal - not yet implemented
+       * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + bitField0_ |= 0x00000008; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+       * annotations are key/value pairs that gets attached to the workspace.
+       * +internal - not yet implemented
+       * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * annotations are key/value pairs that gets attached to the workspace.
+       * +internal - not yet implemented
+       * 
+ * + * map<string, string> annotations = 4 [json_name = "annotations"]; + */ + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * string name = 5 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * string name = 5 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * string name = 5 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * string name = 5 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * string name = 5 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean pinned_ ; + /** + *
+       * pinned indicates whether the workspace is pinned
+       * 
+ * + * bool pinned = 6 [json_name = "pinned"]; + * @return The pinned. + */ + @java.lang.Override + public boolean getPinned() { + return pinned_; + } + /** + *
+       * pinned indicates whether the workspace is pinned
+       * 
+ * + * bool pinned = 6 [json_name = "pinned"]; + * @param value The pinned to set. + * @return This builder for chaining. + */ + public Builder setPinned(boolean value) { + + pinned_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * pinned indicates whether the workspace is pinned
+       * 
+ * + * bool pinned = 6 [json_name = "pinned"]; + * @return This builder for chaining. + */ + public Builder clearPinned() { + bitField0_ = (bitField0_ & ~0x00000020); + pinned_ = false; + onChanged(); + return this; + } + + private java.lang.Object originalContextUrl_ = ""; + /** + *
+       * original_context_url is the normalized URL from which the workspace was
+       * created
+       * 
+ * + * string original_context_url = 7 [json_name = "originalContextUrl"]; + * @return The originalContextUrl. + */ + public java.lang.String getOriginalContextUrl() { + java.lang.Object ref = originalContextUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originalContextUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * original_context_url is the normalized URL from which the workspace was
+       * created
+       * 
+ * + * string original_context_url = 7 [json_name = "originalContextUrl"]; + * @return The bytes for originalContextUrl. + */ + public com.google.protobuf.ByteString + getOriginalContextUrlBytes() { + java.lang.Object ref = originalContextUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + originalContextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * original_context_url is the normalized URL from which the workspace was
+       * created
+       * 
+ * + * string original_context_url = 7 [json_name = "originalContextUrl"]; + * @param value The originalContextUrl to set. + * @return This builder for chaining. + */ + public Builder setOriginalContextUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + originalContextUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * original_context_url is the normalized URL from which the workspace was
+       * created
+       * 
+ * + * string original_context_url = 7 [json_name = "originalContextUrl"]; + * @return This builder for chaining. + */ + public Builder clearOriginalContextUrl() { + originalContextUrl_ = getDefaultInstance().getOriginalContextUrl(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+       * original_context_url is the normalized URL from which the workspace was
+       * created
+       * 
+ * + * string original_context_url = 7 [json_name = "originalContextUrl"]; + * @param value The bytes for originalContextUrl to set. + * @return This builder for chaining. + */ + public Builder setOriginalContextUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + originalContextUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceMetadata) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceMetadata) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * initializer configures how the workspace is to be initialized
+     * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + * @return Whether the initializer field is set. + */ + boolean hasInitializer(); + /** + *
+     * initializer configures how the workspace is to be initialized
+     * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + * @return The initializer. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer getInitializer(); + /** + *
+     * initializer configures how the workspace is to be initialized
+     * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder getInitializerOrBuilder(); + + /** + *
+     * Type denots the kind of workspace we ought to start
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+     * Type denots the kind of workspace we ought to start
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"]; + * @return The type. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType getType(); + + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + java.util.List + getPortsList(); + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort getPorts(int index); + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + int getPortsCount(); + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + java.util.List + getPortsOrBuilderList(); + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePortOrBuilder getPortsOrBuilder( + int index); + + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + java.util.List + getEnvironmentVariablesList(); + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable getEnvironmentVariables(int index); + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + int getEnvironmentVariablesCount(); + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + java.util.List + getEnvironmentVariablesOrBuilderList(); + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index); + + /** + *
+     * Git configures the Git user in the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + * @return Whether the git field is set. + */ + boolean hasGit(); + /** + *
+     * Git configures the Git user in the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + * @return The git. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec getGit(); + /** + *
+     * Git configures the Git user in the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpecOrBuilder getGitOrBuilder(); + + /** + *
+     * Timeout configures the workspace timeout
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + * @return Whether the timeout field is set. + */ + boolean hasTimeout(); + /** + *
+     * Timeout configures the workspace timeout
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + * @return The timeout. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout getTimeout(); + /** + *
+     * Timeout configures the workspace timeout
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * admission controlls who can access the workspace and its ports.
+     * 
+ * + * .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + int getAdmissionValue(); + /** + *
+     * admission controlls who can access the workspace and its ports.
+     * 
+ * + * .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"]; + * @return The admission. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission(); + + /** + *
+     * Class denotes the class of the workspace we ought to start
+     * 
+ * + * string class = 8 [json_name = "class"]; + * @return The class. + */ + java.lang.String getClass_(); + /** + *
+     * Class denotes the class of the workspace we ought to start
+     * 
+ * + * string class = 8 [json_name = "class"]; + * @return The bytes for class. + */ + com.google.protobuf.ByteString + getClass_Bytes(); + + /** + *
+     * ssh_public_keys is user's uploaded ssh public keys
+     * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @return A list containing the sshPublicKeys. + */ + java.util.List + getSshPublicKeysList(); + /** + *
+     * ssh_public_keys is user's uploaded ssh public keys
+     * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @return The count of sshPublicKeys. + */ + int getSshPublicKeysCount(); + /** + *
+     * ssh_public_keys is user's uploaded ssh public keys
+     * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + java.lang.String getSshPublicKeys(int index); + /** + *
+     * ssh_public_keys is user's uploaded ssh public keys
+     * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + com.google.protobuf.ByteString + getSshPublicKeysBytes(int index); + + /** + *
+     * subassembly_references is a list of workspace IDs that this workspace
+     * depends on. For example:
+     * index.docker.io/gitpod-io/subassmeblies/code:latest
+     * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @return A list containing the subassemblyReferences. + */ + java.util.List + getSubassemblyReferencesList(); + /** + *
+     * subassembly_references is a list of workspace IDs that this workspace
+     * depends on. For example:
+     * index.docker.io/gitpod-io/subassmeblies/code:latest
+     * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @return The count of subassemblyReferences. + */ + int getSubassemblyReferencesCount(); + /** + *
+     * subassembly_references is a list of workspace IDs that this workspace
+     * depends on. For example:
+     * index.docker.io/gitpod-io/subassmeblies/code:latest
+     * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param index The index of the element to return. + * @return The subassemblyReferences at the given index. + */ + java.lang.String getSubassemblyReferences(int index); + /** + *
+     * subassembly_references is a list of workspace IDs that this workspace
+     * depends on. For example:
+     * index.docker.io/gitpod-io/subassmeblies/code:latest
+     * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param index The index of the value to return. + * @return The bytes of the subassemblyReferences at the given index. + */ + com.google.protobuf.ByteString + getSubassemblyReferencesBytes(int index); + + /** + *
+     * last_user_activity is the time when the user last interacted with the
+     * workspace
+     * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + * @return Whether the lastUserActivity field is set. + */ + boolean hasLastUserActivity(); + /** + *
+     * last_user_activity is the time when the user last interacted with the
+     * workspace
+     * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + * @return The lastUserActivity. + */ + com.google.protobuf.Timestamp getLastUserActivity(); + /** + *
+     * last_user_activity is the time when the user last interacted with the
+     * workspace
+     * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + */ + com.google.protobuf.TimestampOrBuilder getLastUserActivityOrBuilder(); + + /** + *
+     * log_url is the URL where we stream the workspace's logs to.
+     * Can be changed when the workspace is PENDING or STOPPED.
+     * 
+ * + * string log_url = 12 [json_name = "logUrl"]; + * @return The logUrl. + */ + java.lang.String getLogUrl(); + /** + *
+     * log_url is the URL where we stream the workspace's logs to.
+     * Can be changed when the workspace is PENDING or STOPPED.
+     * 
+ * + * string log_url = 12 [json_name = "logUrl"]; + * @return The bytes for logUrl. + */ + com.google.protobuf.ByteString + getLogUrlBytes(); + + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + boolean hasEditor(); + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + * @return The editor. + */ + io.gitpod.publicapi.v1.Editor.EditorReference getEditor(); + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + */ + io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorOrBuilder(); + } + /** + *
+   * WorkspaceSpec specifies the configuration of a workspace for a workspace
+   * start
+   * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceSpec} + */ + public static final class WorkspaceSpec extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSpec) + WorkspaceSpecOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceSpec.class.getName()); + } + // Use WorkspaceSpec.newBuilder() to construct. + private WorkspaceSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceSpec() { + type_ = 0; + ports_ = java.util.Collections.emptyList(); + environmentVariables_ = java.util.Collections.emptyList(); + admission_ = 0; + class__ = ""; + sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subassemblyReferences_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + logUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder.class); + } + + /** + *
+     * WorkspaceType specifies the purpose/use of a workspace. Different workspace
+     * types are handled differently by all parts of the system.
+     * 
+ * + * Protobuf enum {@code gitpod.v1.WorkspaceSpec.WorkspaceType} + */ + public enum WorkspaceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * WORKSPACE_TYPE_UNSPECIFIED = 0; + */ + WORKSPACE_TYPE_UNSPECIFIED(0), + /** + *
+       * Regular workspaces are your off-the-mill workspaces intended for users.
+       * They are directly user-facing and hence are most important.
+       * 
+ * + * WORKSPACE_TYPE_REGULAR = 1; + */ + WORKSPACE_TYPE_REGULAR(1), + /** + *
+       * Prebuild workspaces are workspaces used to pre-build the content of other
+       * workspaces. They run headless and have no direct user-interaction.
+       * 
+ * + * WORKSPACE_TYPE_PREBUILD = 2; + */ + WORKSPACE_TYPE_PREBUILD(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceType.class.getName()); + } + /** + * WORKSPACE_TYPE_UNSPECIFIED = 0; + */ + public static final int WORKSPACE_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+       * Regular workspaces are your off-the-mill workspaces intended for users.
+       * They are directly user-facing and hence are most important.
+       * 
+ * + * WORKSPACE_TYPE_REGULAR = 1; + */ + public static final int WORKSPACE_TYPE_REGULAR_VALUE = 1; + /** + *
+       * Prebuild workspaces are workspaces used to pre-build the content of other
+       * workspaces. They run headless and have no direct user-interaction.
+       * 
+ * + * WORKSPACE_TYPE_PREBUILD = 2; + */ + public static final int WORKSPACE_TYPE_PREBUILD_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WorkspaceType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static WorkspaceType forNumber(int value) { + switch (value) { + case 0: return WORKSPACE_TYPE_UNSPECIFIED; + case 1: return WORKSPACE_TYPE_REGULAR; + case 2: return WORKSPACE_TYPE_PREBUILD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + WorkspaceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WorkspaceType findValueByNumber(int number) { + return WorkspaceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDescriptor().getEnumTypes().get(0); + } + + private static final WorkspaceType[] VALUES = values(); + + public static WorkspaceType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private WorkspaceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.WorkspaceSpec.WorkspaceType) + } + + public interface TimeoutOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceSpec.Timeout) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + boolean hasInactivity(); + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + com.google.protobuf.Duration getInactivity(); + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + com.google.protobuf.DurationOrBuilder getInactivityOrBuilder(); + + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused set to zero to disable.
+       * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return Whether the disconnected field is set. + */ + boolean hasDisconnected(); + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused set to zero to disable.
+       * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return The disconnected. + */ + com.google.protobuf.Duration getDisconnected(); + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused set to zero to disable.
+       * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + com.google.protobuf.DurationOrBuilder getDisconnectedOrBuilder(); + + /** + *
+       * maximum lifetime of the workspace
+       * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + * @return Whether the maximumLifetime field is set. + */ + boolean hasMaximumLifetime(); + /** + *
+       * maximum lifetime of the workspace
+       * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + * @return The maximumLifetime. + */ + com.google.protobuf.Duration getMaximumLifetime(); + /** + *
+       * maximum lifetime of the workspace
+       * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + */ + com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder(); + } + /** + *
+     * Timeout configures the workspace timeout
+     * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceSpec.Timeout} + */ + public static final class Timeout extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSpec.Timeout) + TimeoutOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Timeout.class.getName()); + } + // Use Timeout.newBuilder() to construct. + private Timeout(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Timeout() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_Timeout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_Timeout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.Builder.class); + } + + private int bitField0_; + public static final int INACTIVITY_FIELD_NUMBER = 1; + private com.google.protobuf.Duration inactivity_; + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + @java.lang.Override + public boolean hasInactivity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + @java.lang.Override + public com.google.protobuf.Duration getInactivity() { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + + public static final int DISCONNECTED_FIELD_NUMBER = 2; + private com.google.protobuf.Duration disconnected_; + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused set to zero to disable.
+       * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return Whether the disconnected field is set. + */ + @java.lang.Override + public boolean hasDisconnected() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused set to zero to disable.
+       * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return The disconnected. + */ + @java.lang.Override + public com.google.protobuf.Duration getDisconnected() { + return disconnected_ == null ? com.google.protobuf.Duration.getDefaultInstance() : disconnected_; + } + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused set to zero to disable.
+       * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDisconnectedOrBuilder() { + return disconnected_ == null ? com.google.protobuf.Duration.getDefaultInstance() : disconnected_; + } + + public static final int MAXIMUM_LIFETIME_FIELD_NUMBER = 3; + private com.google.protobuf.Duration maximumLifetime_; + /** + *
+       * maximum lifetime of the workspace
+       * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + * @return Whether the maximumLifetime field is set. + */ + @java.lang.Override + public boolean hasMaximumLifetime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * maximum lifetime of the workspace
+       * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + * @return The maximumLifetime. + */ + @java.lang.Override + public com.google.protobuf.Duration getMaximumLifetime() { + return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + } + /** + *
+       * maximum lifetime of the workspace
+       * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { + return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInactivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDisconnected()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getMaximumLifetime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInactivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDisconnected()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMaximumLifetime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout) obj; + + if (hasInactivity() != other.hasInactivity()) return false; + if (hasInactivity()) { + if (!getInactivity() + .equals(other.getInactivity())) return false; + } + if (hasDisconnected() != other.hasDisconnected()) return false; + if (hasDisconnected()) { + if (!getDisconnected() + .equals(other.getDisconnected())) return false; + } + if (hasMaximumLifetime() != other.hasMaximumLifetime()) return false; + if (hasMaximumLifetime()) { + if (!getMaximumLifetime() + .equals(other.getMaximumLifetime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInactivity()) { + hash = (37 * hash) + INACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getInactivity().hashCode(); + } + if (hasDisconnected()) { + hash = (37 * hash) + DISCONNECTED_FIELD_NUMBER; + hash = (53 * hash) + getDisconnected().hashCode(); + } + if (hasMaximumLifetime()) { + hash = (37 * hash) + MAXIMUM_LIFETIME_FIELD_NUMBER; + hash = (53 * hash) + getMaximumLifetime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceSpec.Timeout} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceSpec.Timeout) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_Timeout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_Timeout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getInactivityFieldBuilder(); + getDisconnectedFieldBuilder(); + getMaximumLifetimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inactivity_ = null; + if (inactivityBuilder_ != null) { + inactivityBuilder_.dispose(); + inactivityBuilder_ = null; + } + disconnected_ = null; + if (disconnectedBuilder_ != null) { + disconnectedBuilder_.dispose(); + disconnectedBuilder_ = null; + } + maximumLifetime_ = null; + if (maximumLifetimeBuilder_ != null) { + maximumLifetimeBuilder_.dispose(); + maximumLifetimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_Timeout_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inactivity_ = inactivityBuilder_ == null + ? inactivity_ + : inactivityBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disconnected_ = disconnectedBuilder_ == null + ? disconnected_ + : disconnectedBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maximumLifetime_ = maximumLifetimeBuilder_ == null + ? maximumLifetime_ + : maximumLifetimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.getDefaultInstance()) return this; + if (other.hasInactivity()) { + mergeInactivity(other.getInactivity()); + } + if (other.hasDisconnected()) { + mergeDisconnected(other.getDisconnected()); + } + if (other.hasMaximumLifetime()) { + mergeMaximumLifetime(other.getMaximumLifetime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getInactivityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDisconnectedFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMaximumLifetimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Duration inactivity_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> inactivityBuilder_; + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + public boolean hasInactivity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + public com.google.protobuf.Duration getInactivity() { + if (inactivityBuilder_ == null) { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } else { + return inactivityBuilder_.getMessage(); + } + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder setInactivity(com.google.protobuf.Duration value) { + if (inactivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inactivity_ = value; + } else { + inactivityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder setInactivity( + com.google.protobuf.Duration.Builder builderForValue) { + if (inactivityBuilder_ == null) { + inactivity_ = builderForValue.build(); + } else { + inactivityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder mergeInactivity(com.google.protobuf.Duration value) { + if (inactivityBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + inactivity_ != null && + inactivity_ != com.google.protobuf.Duration.getDefaultInstance()) { + getInactivityBuilder().mergeFrom(value); + } else { + inactivity_ = value; + } + } else { + inactivityBuilder_.mergeFrom(value); + } + if (inactivity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder clearInactivity() { + bitField0_ = (bitField0_ & ~0x00000001); + inactivity_ = null; + if (inactivityBuilder_ != null) { + inactivityBuilder_.dispose(); + inactivityBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public com.google.protobuf.Duration.Builder getInactivityBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInactivityFieldBuilder().getBuilder(); + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() { + if (inactivityBuilder_ != null) { + return inactivityBuilder_.getMessageOrBuilder(); + } else { + return inactivity_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getInactivityFieldBuilder() { + if (inactivityBuilder_ == null) { + inactivityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getInactivity(), + getParentForChildren(), + isClean()); + inactivity_ = null; + } + return inactivityBuilder_; + } + + private com.google.protobuf.Duration disconnected_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> disconnectedBuilder_; + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused set to zero to disable.
+         * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return Whether the disconnected field is set. + */ + public boolean hasDisconnected() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused set to zero to disable.
+         * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return The disconnected. + */ + public com.google.protobuf.Duration getDisconnected() { + if (disconnectedBuilder_ == null) { + return disconnected_ == null ? com.google.protobuf.Duration.getDefaultInstance() : disconnected_; + } else { + return disconnectedBuilder_.getMessage(); + } + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused set to zero to disable.
+         * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public Builder setDisconnected(com.google.protobuf.Duration value) { + if (disconnectedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + disconnected_ = value; + } else { + disconnectedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused set to zero to disable.
+         * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public Builder setDisconnected( + com.google.protobuf.Duration.Builder builderForValue) { + if (disconnectedBuilder_ == null) { + disconnected_ = builderForValue.build(); + } else { + disconnectedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused set to zero to disable.
+         * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public Builder mergeDisconnected(com.google.protobuf.Duration value) { + if (disconnectedBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + disconnected_ != null && + disconnected_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDisconnectedBuilder().mergeFrom(value); + } else { + disconnected_ = value; + } + } else { + disconnectedBuilder_.mergeFrom(value); + } + if (disconnected_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused set to zero to disable.
+         * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public Builder clearDisconnected() { + bitField0_ = (bitField0_ & ~0x00000002); + disconnected_ = null; + if (disconnectedBuilder_ != null) { + disconnectedBuilder_.dispose(); + disconnectedBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused set to zero to disable.
+         * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public com.google.protobuf.Duration.Builder getDisconnectedBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDisconnectedFieldBuilder().getBuilder(); + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused set to zero to disable.
+         * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public com.google.protobuf.DurationOrBuilder getDisconnectedOrBuilder() { + if (disconnectedBuilder_ != null) { + return disconnectedBuilder_.getMessageOrBuilder(); + } else { + return disconnected_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : disconnected_; + } + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused set to zero to disable.
+         * 
+ * + * .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDisconnectedFieldBuilder() { + if (disconnectedBuilder_ == null) { + disconnectedBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDisconnected(), + getParentForChildren(), + isClean()); + disconnected_ = null; + } + return disconnectedBuilder_; + } + + private com.google.protobuf.Duration maximumLifetime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maximumLifetimeBuilder_; + /** + *
+         * maximum lifetime of the workspace
+         * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + * @return Whether the maximumLifetime field is set. + */ + public boolean hasMaximumLifetime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * maximum lifetime of the workspace
+         * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + * @return The maximumLifetime. + */ + public com.google.protobuf.Duration getMaximumLifetime() { + if (maximumLifetimeBuilder_ == null) { + return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + } else { + return maximumLifetimeBuilder_.getMessage(); + } + } + /** + *
+         * maximum lifetime of the workspace
+         * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + */ + public Builder setMaximumLifetime(com.google.protobuf.Duration value) { + if (maximumLifetimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maximumLifetime_ = value; + } else { + maximumLifetimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * maximum lifetime of the workspace
+         * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + */ + public Builder setMaximumLifetime( + com.google.protobuf.Duration.Builder builderForValue) { + if (maximumLifetimeBuilder_ == null) { + maximumLifetime_ = builderForValue.build(); + } else { + maximumLifetimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * maximum lifetime of the workspace
+         * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + */ + public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { + if (maximumLifetimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + maximumLifetime_ != null && + maximumLifetime_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMaximumLifetimeBuilder().mergeFrom(value); + } else { + maximumLifetime_ = value; + } + } else { + maximumLifetimeBuilder_.mergeFrom(value); + } + if (maximumLifetime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+         * maximum lifetime of the workspace
+         * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + */ + public Builder clearMaximumLifetime() { + bitField0_ = (bitField0_ & ~0x00000004); + maximumLifetime_ = null; + if (maximumLifetimeBuilder_ != null) { + maximumLifetimeBuilder_.dispose(); + maximumLifetimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * maximum lifetime of the workspace
+         * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + */ + public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMaximumLifetimeFieldBuilder().getBuilder(); + } + /** + *
+         * maximum lifetime of the workspace
+         * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + */ + public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { + if (maximumLifetimeBuilder_ != null) { + return maximumLifetimeBuilder_.getMessageOrBuilder(); + } else { + return maximumLifetime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + } + } + /** + *
+         * maximum lifetime of the workspace
+         * 
+ * + * .google.protobuf.Duration maximum_lifetime = 3 [json_name = "maximumLifetime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getMaximumLifetimeFieldBuilder() { + if (maximumLifetimeBuilder_ == null) { + maximumLifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMaximumLifetime(), + getParentForChildren(), + isClean()); + maximumLifetime_ = null; + } + return maximumLifetimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSpec.Timeout) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceSpec.Timeout) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Timeout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GitSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceSpec.GitSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The Git username
+       * 
+ * + * string username = 1 [json_name = "username"]; + * @return The username. + */ + java.lang.String getUsername(); + /** + *
+       * The Git username
+       * 
+ * + * string username = 1 [json_name = "username"]; + * @return The bytes for username. + */ + com.google.protobuf.ByteString + getUsernameBytes(); + + /** + *
+       * The Git email address
+       * 
+ * + * string email = 2 [json_name = "email"]; + * @return The email. + */ + java.lang.String getEmail(); + /** + *
+       * The Git email address
+       * 
+ * + * string email = 2 [json_name = "email"]; + * @return The bytes for email. + */ + com.google.protobuf.ByteString + getEmailBytes(); + } + /** + *
+     * GitSpec configures the Git available within the workspace
+     * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceSpec.GitSpec} + */ + public static final class GitSpec extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSpec.GitSpec) + GitSpecOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GitSpec.class.getName()); + } + // Use GitSpec.newBuilder() to construct. + private GitSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GitSpec() { + username_ = ""; + email_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_GitSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_GitSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + *
+       * The Git username
+       * 
+ * + * string username = 1 [json_name = "username"]; + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** + *
+       * The Git username
+       * 
+ * + * string username = 1 [json_name = "username"]; + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + /** + *
+       * The Git email address
+       * 
+ * + * string email = 2 [json_name = "email"]; + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } + } + /** + *
+       * The Git email address
+       * 
+ * + * string email = 2 [json_name = "email"]; + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, email_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(email_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, email_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec) obj; + + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * GitSpec configures the Git available within the workspace
+       * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceSpec.GitSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceSpec.GitSpec) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_GitSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_GitSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + username_ = ""; + email_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_GitSpec_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.email_ = email_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object username_ = ""; + /** + *
+         * The Git username
+         * 
+ * + * string username = 1 [json_name = "username"]; + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * The Git username
+         * 
+ * + * string username = 1 [json_name = "username"]; + * @return The bytes for username. + */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * The Git username
+         * 
+ * + * string username = 1 [json_name = "username"]; + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The Git username
+         * 
+ * + * string username = 1 [json_name = "username"]; + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * The Git username
+         * 
+ * + * string username = 1 [json_name = "username"]; + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + /** + *
+         * The Git email address
+         * 
+ * + * string email = 2 [json_name = "email"]; + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * The Git email address
+         * 
+ * + * string email = 2 [json_name = "email"]; + * @return The bytes for email. + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * The Git email address
+         * 
+ * + * string email = 2 [json_name = "email"]; + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + email_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The Git email address
+         * 
+ * + * string email = 2 [json_name = "email"]; + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * The Git email address
+         * 
+ * + * string email = 2 [json_name = "email"]; + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + email_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSpec.GitSpec) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceSpec.GitSpec) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int INITIALIZER_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer initializer_; + /** + *
+     * initializer configures how the workspace is to be initialized
+     * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + * @return Whether the initializer field is set. + */ + @java.lang.Override + public boolean hasInitializer() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * initializer configures how the workspace is to be initialized
+     * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + * @return The initializer. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer getInitializer() { + return initializer_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.getDefaultInstance() : initializer_; + } + /** + *
+     * initializer configures how the workspace is to be initialized
+     * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder getInitializerOrBuilder() { + return initializer_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.getDefaultInstance() : initializer_; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + *
+     * Type denots the kind of workspace we ought to start
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * Type denots the kind of workspace we ought to start
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType getType() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType.forNumber(type_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType.UNRECOGNIZED : result; + } + + public static final int PORTS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List ports_; + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + @java.lang.Override + public java.util.List getPortsList() { + return ports_; + } + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + @java.lang.Override + public java.util.List + getPortsOrBuilderList() { + return ports_; + } + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + @java.lang.Override + public int getPortsCount() { + return ports_.size(); + } + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort getPorts(int index) { + return ports_.get(index); + } + /** + *
+     * ports is the set of ports which ought to be exposed to the internet
+     * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePortOrBuilder getPortsOrBuilder( + int index) { + return ports_.get(index); + } + + public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List environmentVariables_; + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public java.util.List getEnvironmentVariablesList() { + return environmentVariables_; + } + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public java.util.List + getEnvironmentVariablesOrBuilderList() { + return environmentVariables_; + } + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public int getEnvironmentVariablesCount() { + return environmentVariables_.size(); + } + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable getEnvironmentVariables(int index) { + return environmentVariables_.get(index); + } + /** + *
+     * envvars are user-defined environment variables which ought to be available
+     * in the workspace (shim'ed environment)
+     * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index) { + return environmentVariables_.get(index); + } + + public static final int GIT_FIELD_NUMBER = 5; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec git_; + /** + *
+     * Git configures the Git user in the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + * @return Whether the git field is set. + */ + @java.lang.Override + public boolean hasGit() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Git configures the Git user in the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + * @return The git. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec getGit() { + return git_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.getDefaultInstance() : git_; + } + /** + *
+     * Git configures the Git user in the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpecOrBuilder getGitOrBuilder() { + return git_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.getDefaultInstance() : git_; + } + + public static final int TIMEOUT_FIELD_NUMBER = 6; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout timeout_; + /** + *
+     * Timeout configures the workspace timeout
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + * @return Whether the timeout field is set. + */ + @java.lang.Override + public boolean hasTimeout() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Timeout configures the workspace timeout
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + * @return The timeout. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout getTimeout() { + return timeout_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.getDefaultInstance() : timeout_; + } + /** + *
+     * Timeout configures the workspace timeout
+     * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder getTimeoutOrBuilder() { + return timeout_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.getDefaultInstance() : timeout_; + } + + public static final int ADMISSION_FIELD_NUMBER = 7; + private int admission_ = 0; + /** + *
+     * admission controlls who can access the workspace and its ports.
+     * 
+ * + * .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+     * admission controlls who can access the workspace and its ports.
+     * 
+ * + * .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel result = io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.UNRECOGNIZED : result; + } + + public static final int CLASS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object class__ = ""; + /** + *
+     * Class denotes the class of the workspace we ought to start
+     * 
+ * + * string class = 8 [json_name = "class"]; + * @return The class. + */ + @java.lang.Override + public java.lang.String getClass_() { + java.lang.Object ref = class__; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + class__ = s; + return s; + } + } + /** + *
+     * Class denotes the class of the workspace we ought to start
+     * 
+ * + * string class = 8 [json_name = "class"]; + * @return The bytes for class. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClass_Bytes() { + java.lang.Object ref = class__; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + class__ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SSH_PUBLIC_KEYS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * ssh_public_keys is user's uploaded ssh public keys
+     * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList + getSshPublicKeysList() { + return sshPublicKeys_; + } + /** + *
+     * ssh_public_keys is user's uploaded ssh public keys
+     * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + /** + *
+     * ssh_public_keys is user's uploaded ssh public keys
+     * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + /** + *
+     * ssh_public_keys is user's uploaded ssh public keys
+     * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString + getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + + public static final int SUBASSEMBLY_REFERENCES_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subassemblyReferences_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * subassembly_references is a list of workspace IDs that this workspace
+     * depends on. For example:
+     * index.docker.io/gitpod-io/subassmeblies/code:latest
+     * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @return A list containing the subassemblyReferences. + */ + public com.google.protobuf.ProtocolStringList + getSubassemblyReferencesList() { + return subassemblyReferences_; + } + /** + *
+     * subassembly_references is a list of workspace IDs that this workspace
+     * depends on. For example:
+     * index.docker.io/gitpod-io/subassmeblies/code:latest
+     * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @return The count of subassemblyReferences. + */ + public int getSubassemblyReferencesCount() { + return subassemblyReferences_.size(); + } + /** + *
+     * subassembly_references is a list of workspace IDs that this workspace
+     * depends on. For example:
+     * index.docker.io/gitpod-io/subassmeblies/code:latest
+     * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param index The index of the element to return. + * @return The subassemblyReferences at the given index. + */ + public java.lang.String getSubassemblyReferences(int index) { + return subassemblyReferences_.get(index); + } + /** + *
+     * subassembly_references is a list of workspace IDs that this workspace
+     * depends on. For example:
+     * index.docker.io/gitpod-io/subassmeblies/code:latest
+     * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param index The index of the value to return. + * @return The bytes of the subassemblyReferences at the given index. + */ + public com.google.protobuf.ByteString + getSubassemblyReferencesBytes(int index) { + return subassemblyReferences_.getByteString(index); + } + + public static final int LAST_USER_ACTIVITY_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp lastUserActivity_; + /** + *
+     * last_user_activity is the time when the user last interacted with the
+     * workspace
+     * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + * @return Whether the lastUserActivity field is set. + */ + @java.lang.Override + public boolean hasLastUserActivity() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * last_user_activity is the time when the user last interacted with the
+     * workspace
+     * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + * @return The lastUserActivity. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastUserActivity() { + return lastUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUserActivity_; + } + /** + *
+     * last_user_activity is the time when the user last interacted with the
+     * workspace
+     * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastUserActivityOrBuilder() { + return lastUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUserActivity_; + } + + public static final int LOG_URL_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object logUrl_ = ""; + /** + *
+     * log_url is the URL where we stream the workspace's logs to.
+     * Can be changed when the workspace is PENDING or STOPPED.
+     * 
+ * + * string log_url = 12 [json_name = "logUrl"]; + * @return The logUrl. + */ + @java.lang.Override + public java.lang.String getLogUrl() { + java.lang.Object ref = logUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logUrl_ = s; + return s; + } + } + /** + *
+     * log_url is the URL where we stream the workspace's logs to.
+     * Can be changed when the workspace is PENDING or STOPPED.
+     * 
+ * + * string log_url = 12 [json_name = "logUrl"]; + * @return The bytes for logUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLogUrlBytes() { + java.lang.Object ref = logUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EDITOR_FIELD_NUMBER = 13; + private io.gitpod.publicapi.v1.Editor.EditorReference editor_; + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + @java.lang.Override + public boolean hasEditor() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + * @return The editor. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReference getEditor() { + return editor_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editor_; + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorOrBuilder() { + return editor_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editor_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInitializer()); + } + if (type_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType.WORKSPACE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + for (int i = 0; i < ports_.size(); i++) { + output.writeMessage(3, ports_.get(i)); + } + for (int i = 0; i < environmentVariables_.size(); i++) { + output.writeMessage(4, environmentVariables_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getGit()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getTimeout()); + } + if (admission_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.ADMISSION_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(7, admission_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(class__)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, class__); + } + for (int i = 0; i < sshPublicKeys_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, sshPublicKeys_.getRaw(i)); + } + for (int i = 0; i < subassemblyReferences_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, subassemblyReferences_.getRaw(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(11, getLastUserActivity()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, logUrl_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(13, getEditor()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInitializer()); + } + if (type_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType.WORKSPACE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + for (int i = 0; i < ports_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, ports_.get(i)); + } + for (int i = 0; i < environmentVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, environmentVariables_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getGit()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTimeout()); + } + if (admission_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.ADMISSION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, admission_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(class__)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, class__); + } + { + int dataSize = 0; + for (int i = 0; i < sshPublicKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(sshPublicKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getSshPublicKeysList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < subassemblyReferences_.size(); i++) { + dataSize += computeStringSizeNoTag(subassemblyReferences_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubassemblyReferencesList().size(); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLastUserActivity()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, logUrl_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getEditor()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) obj; + + if (hasInitializer() != other.hasInitializer()) return false; + if (hasInitializer()) { + if (!getInitializer() + .equals(other.getInitializer())) return false; + } + if (type_ != other.type_) return false; + if (!getPortsList() + .equals(other.getPortsList())) return false; + if (!getEnvironmentVariablesList() + .equals(other.getEnvironmentVariablesList())) return false; + if (hasGit() != other.hasGit()) return false; + if (hasGit()) { + if (!getGit() + .equals(other.getGit())) return false; + } + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (admission_ != other.admission_) return false; + if (!getClass_() + .equals(other.getClass_())) return false; + if (!getSshPublicKeysList() + .equals(other.getSshPublicKeysList())) return false; + if (!getSubassemblyReferencesList() + .equals(other.getSubassemblyReferencesList())) return false; + if (hasLastUserActivity() != other.hasLastUserActivity()) return false; + if (hasLastUserActivity()) { + if (!getLastUserActivity() + .equals(other.getLastUserActivity())) return false; + } + if (!getLogUrl() + .equals(other.getLogUrl())) return false; + if (hasEditor() != other.hasEditor()) return false; + if (hasEditor()) { + if (!getEditor() + .equals(other.getEditor())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInitializer()) { + hash = (37 * hash) + INITIALIZER_FIELD_NUMBER; + hash = (53 * hash) + getInitializer().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getPortsCount() > 0) { + hash = (37 * hash) + PORTS_FIELD_NUMBER; + hash = (53 * hash) + getPortsList().hashCode(); + } + if (getEnvironmentVariablesCount() > 0) { + hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentVariablesList().hashCode(); + } + if (hasGit()) { + hash = (37 * hash) + GIT_FIELD_NUMBER; + hash = (53 * hash) + getGit().hashCode(); + } + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + hash = (37 * hash) + ADMISSION_FIELD_NUMBER; + hash = (53 * hash) + admission_; + hash = (37 * hash) + CLASS_FIELD_NUMBER; + hash = (53 * hash) + getClass_().hashCode(); + if (getSshPublicKeysCount() > 0) { + hash = (37 * hash) + SSH_PUBLIC_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getSshPublicKeysList().hashCode(); + } + if (getSubassemblyReferencesCount() > 0) { + hash = (37 * hash) + SUBASSEMBLY_REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getSubassemblyReferencesList().hashCode(); + } + if (hasLastUserActivity()) { + hash = (37 * hash) + LAST_USER_ACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getLastUserActivity().hashCode(); + } + hash = (37 * hash) + LOG_URL_FIELD_NUMBER; + hash = (53 * hash) + getLogUrl().hashCode(); + if (hasEditor()) { + hash = (37 * hash) + EDITOR_FIELD_NUMBER; + hash = (53 * hash) + getEditor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceSpec specifies the configuration of a workspace for a workspace
+     * start
+     * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceSpec) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getInitializerFieldBuilder(); + getPortsFieldBuilder(); + getEnvironmentVariablesFieldBuilder(); + getGitFieldBuilder(); + getTimeoutFieldBuilder(); + getLastUserActivityFieldBuilder(); + getEditorFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + initializer_ = null; + if (initializerBuilder_ != null) { + initializerBuilder_.dispose(); + initializerBuilder_ = null; + } + type_ = 0; + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + } else { + ports_ = null; + portsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (environmentVariablesBuilder_ == null) { + environmentVariables_ = java.util.Collections.emptyList(); + } else { + environmentVariables_ = null; + environmentVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + git_ = null; + if (gitBuilder_ != null) { + gitBuilder_.dispose(); + gitBuilder_ = null; + } + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); + timeoutBuilder_ = null; + } + admission_ = 0; + class__ = ""; + sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subassemblyReferences_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + lastUserActivity_ = null; + if (lastUserActivityBuilder_ != null) { + lastUserActivityBuilder_.dispose(); + lastUserActivityBuilder_ = null; + } + logUrl_ = ""; + editor_ = null; + if (editorBuilder_ != null) { + editorBuilder_.dispose(); + editorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSpec_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec result) { + if (portsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.ports_ = ports_; + } else { + result.ports_ = portsBuilder_.build(); + } + if (environmentVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + environmentVariables_ = java.util.Collections.unmodifiableList(environmentVariables_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.environmentVariables_ = environmentVariables_; + } else { + result.environmentVariables_ = environmentVariablesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.initializer_ = initializerBuilder_ == null + ? initializer_ + : initializerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.git_ = gitBuilder_ == null + ? git_ + : gitBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.timeout_ = timeoutBuilder_ == null + ? timeout_ + : timeoutBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.admission_ = admission_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.class__ = class__; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + sshPublicKeys_.makeImmutable(); + result.sshPublicKeys_ = sshPublicKeys_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + subassemblyReferences_.makeImmutable(); + result.subassemblyReferences_ = subassemblyReferences_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.lastUserActivity_ = lastUserActivityBuilder_ == null + ? lastUserActivity_ + : lastUserActivityBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.logUrl_ = logUrl_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.editor_ = editorBuilder_ == null + ? editor_ + : editorBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance()) return this; + if (other.hasInitializer()) { + mergeInitializer(other.getInitializer()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (portsBuilder_ == null) { + if (!other.ports_.isEmpty()) { + if (ports_.isEmpty()) { + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePortsIsMutable(); + ports_.addAll(other.ports_); + } + onChanged(); + } + } else { + if (!other.ports_.isEmpty()) { + if (portsBuilder_.isEmpty()) { + portsBuilder_.dispose(); + portsBuilder_ = null; + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000004); + portsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPortsFieldBuilder() : null; + } else { + portsBuilder_.addAllMessages(other.ports_); + } + } + } + if (environmentVariablesBuilder_ == null) { + if (!other.environmentVariables_.isEmpty()) { + if (environmentVariables_.isEmpty()) { + environmentVariables_ = other.environmentVariables_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.addAll(other.environmentVariables_); + } + onChanged(); + } + } else { + if (!other.environmentVariables_.isEmpty()) { + if (environmentVariablesBuilder_.isEmpty()) { + environmentVariablesBuilder_.dispose(); + environmentVariablesBuilder_ = null; + environmentVariables_ = other.environmentVariables_; + bitField0_ = (bitField0_ & ~0x00000008); + environmentVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getEnvironmentVariablesFieldBuilder() : null; + } else { + environmentVariablesBuilder_.addAllMessages(other.environmentVariables_); + } + } + } + if (other.hasGit()) { + mergeGit(other.getGit()); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.admission_ != 0) { + setAdmissionValue(other.getAdmissionValue()); + } + if (!other.getClass_().isEmpty()) { + class__ = other.class__; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.sshPublicKeys_.isEmpty()) { + if (sshPublicKeys_.isEmpty()) { + sshPublicKeys_ = other.sshPublicKeys_; + bitField0_ |= 0x00000100; + } else { + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.addAll(other.sshPublicKeys_); + } + onChanged(); + } + if (!other.subassemblyReferences_.isEmpty()) { + if (subassemblyReferences_.isEmpty()) { + subassemblyReferences_ = other.subassemblyReferences_; + bitField0_ |= 0x00000200; + } else { + ensureSubassemblyReferencesIsMutable(); + subassemblyReferences_.addAll(other.subassemblyReferences_); + } + onChanged(); + } + if (other.hasLastUserActivity()) { + mergeLastUserActivity(other.getLastUserActivity()); + } + if (!other.getLogUrl().isEmpty()) { + logUrl_ = other.logUrl_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasEditor()) { + mergeEditor(other.getEditor()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getInitializerFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort m = + input.readMessage( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.parser(), + extensionRegistry); + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(m); + } else { + portsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable m = + input.readMessage( + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.parser(), + extensionRegistry); + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(m); + } else { + environmentVariablesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getGitFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + admission_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + class__ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(s); + break; + } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubassemblyReferencesIsMutable(); + subassemblyReferences_.add(s); + break; + } // case 82 + case 90: { + input.readMessage( + getLastUserActivityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + logUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + input.readMessage( + getEditorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer initializer_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder> initializerBuilder_; + /** + *
+       * initializer configures how the workspace is to be initialized
+       * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + * @return Whether the initializer field is set. + */ + public boolean hasInitializer() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * initializer configures how the workspace is to be initialized
+       * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + * @return The initializer. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer getInitializer() { + if (initializerBuilder_ == null) { + return initializer_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.getDefaultInstance() : initializer_; + } else { + return initializerBuilder_.getMessage(); + } + } + /** + *
+       * initializer configures how the workspace is to be initialized
+       * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + */ + public Builder setInitializer(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer value) { + if (initializerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initializer_ = value; + } else { + initializerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * initializer configures how the workspace is to be initialized
+       * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + */ + public Builder setInitializer( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Builder builderForValue) { + if (initializerBuilder_ == null) { + initializer_ = builderForValue.build(); + } else { + initializerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * initializer configures how the workspace is to be initialized
+       * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + */ + public Builder mergeInitializer(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer value) { + if (initializerBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + initializer_ != null && + initializer_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.getDefaultInstance()) { + getInitializerBuilder().mergeFrom(value); + } else { + initializer_ = value; + } + } else { + initializerBuilder_.mergeFrom(value); + } + if (initializer_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * initializer configures how the workspace is to be initialized
+       * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + */ + public Builder clearInitializer() { + bitField0_ = (bitField0_ & ~0x00000001); + initializer_ = null; + if (initializerBuilder_ != null) { + initializerBuilder_.dispose(); + initializerBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * initializer configures how the workspace is to be initialized
+       * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Builder getInitializerBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInitializerFieldBuilder().getBuilder(); + } + /** + *
+       * initializer configures how the workspace is to be initialized
+       * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder getInitializerOrBuilder() { + if (initializerBuilder_ != null) { + return initializerBuilder_.getMessageOrBuilder(); + } else { + return initializer_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.getDefaultInstance() : initializer_; + } + } + /** + *
+       * initializer configures how the workspace is to be initialized
+       * 
+ * + * .gitpod.v1.WorkspaceInitializer initializer = 1 [json_name = "initializer"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder> + getInitializerFieldBuilder() { + if (initializerBuilder_ == null) { + initializerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder>( + getInitializer(), + getParentForChildren(), + isClean()); + initializer_ = null; + } + return initializerBuilder_; + } + + private int type_ = 0; + /** + *
+       * Type denots the kind of workspace we ought to start
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"]; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+       * Type denots the kind of workspace we ought to start
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"]; + * @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; + onChanged(); + return this; + } + /** + *
+       * Type denots the kind of workspace we ought to start
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType getType() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType.forNumber(type_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType.UNRECOGNIZED : result; + } + /** + *
+       * Type denots the kind of workspace we ought to start
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Type denots the kind of workspace we ought to start
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private java.util.List ports_ = + java.util.Collections.emptyList(); + private void ensurePortsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + ports_ = new java.util.ArrayList(ports_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePortOrBuilder> portsBuilder_; + + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public java.util.List getPortsList() { + if (portsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ports_); + } else { + return portsBuilder_.getMessageList(); + } + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public int getPortsCount() { + if (portsBuilder_ == null) { + return ports_.size(); + } else { + return portsBuilder_.getCount(); + } + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort getPorts(int index) { + if (portsBuilder_ == null) { + return ports_.get(index); + } else { + return portsBuilder_.getMessage(index); + } + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public Builder setPorts( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.set(index, value); + onChanged(); + } else { + portsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public Builder setPorts( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.set(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public Builder addPorts(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(value); + onChanged(); + } else { + portsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public Builder addPorts( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(index, value); + onChanged(); + } else { + portsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public Builder addPorts( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public Builder addPorts( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public Builder addAllPorts( + java.lang.Iterable values) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); + onChanged(); + } else { + portsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public Builder clearPorts() { + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + portsBuilder_.clear(); + } + return this; + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public Builder removePorts(int index) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.remove(index); + onChanged(); + } else { + portsBuilder_.remove(index); + } + return this; + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder getPortsBuilder( + int index) { + return getPortsFieldBuilder().getBuilder(index); + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePortOrBuilder getPortsOrBuilder( + int index) { + if (portsBuilder_ == null) { + return ports_.get(index); } else { + return portsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public java.util.List + getPortsOrBuilderList() { + if (portsBuilder_ != null) { + return portsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ports_); + } + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder addPortsBuilder() { + return getPortsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.getDefaultInstance()); + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder addPortsBuilder( + int index) { + return getPortsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.getDefaultInstance()); + } + /** + *
+       * ports is the set of ports which ought to be exposed to the internet
+       * 
+ * + * repeated .gitpod.v1.WorkspacePort ports = 3 [json_name = "ports"]; + */ + public java.util.List + getPortsBuilderList() { + return getPortsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePortOrBuilder> + getPortsFieldBuilder() { + if (portsBuilder_ == null) { + portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePortOrBuilder>( + ports_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + ports_ = null; + } + return portsBuilder_; + } + + private java.util.List environmentVariables_ = + java.util.Collections.emptyList(); + private void ensureEnvironmentVariablesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + environmentVariables_ = new java.util.ArrayList(environmentVariables_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder> environmentVariablesBuilder_; + + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public java.util.List getEnvironmentVariablesList() { + if (environmentVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(environmentVariables_); + } else { + return environmentVariablesBuilder_.getMessageList(); + } + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public int getEnvironmentVariablesCount() { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.size(); + } else { + return environmentVariablesBuilder_.getCount(); + } + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable getEnvironmentVariables(int index) { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.get(index); + } else { + return environmentVariablesBuilder_.getMessage(index); + } + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public Builder setEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.set(index, value); + onChanged(); + } else { + environmentVariablesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public Builder setEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables(io.gitpod.publicapi.v1.Envvar.EnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(value); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable value) { + if (environmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(index, value); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public Builder addEnvironmentVariables( + int index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder builderForValue) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + environmentVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public Builder addAllEnvironmentVariables( + java.lang.Iterable values) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, environmentVariables_); + onChanged(); + } else { + environmentVariablesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public Builder clearEnvironmentVariables() { + if (environmentVariablesBuilder_ == null) { + environmentVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + environmentVariablesBuilder_.clear(); + } + return this; + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public Builder removeEnvironmentVariables(int index) { + if (environmentVariablesBuilder_ == null) { + ensureEnvironmentVariablesIsMutable(); + environmentVariables_.remove(index); + onChanged(); + } else { + environmentVariablesBuilder_.remove(index); + } + return this; + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder getEnvironmentVariablesBuilder( + int index) { + return getEnvironmentVariablesFieldBuilder().getBuilder(index); + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder getEnvironmentVariablesOrBuilder( + int index) { + if (environmentVariablesBuilder_ == null) { + return environmentVariables_.get(index); } else { + return environmentVariablesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public java.util.List + getEnvironmentVariablesOrBuilderList() { + if (environmentVariablesBuilder_ != null) { + return environmentVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(environmentVariables_); + } + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder addEnvironmentVariablesBuilder() { + return getEnvironmentVariablesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.getDefaultInstance()); + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder addEnvironmentVariablesBuilder( + int index) { + return getEnvironmentVariablesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.getDefaultInstance()); + } + /** + *
+       * envvars are user-defined environment variables which ought to be available
+       * in the workspace (shim'ed environment)
+       * 
+ * + * repeated .gitpod.v1.EnvironmentVariable environment_variables = 4 [json_name = "environmentVariables"]; + */ + public java.util.List + getEnvironmentVariablesBuilderList() { + return getEnvironmentVariablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder> + getEnvironmentVariablesFieldBuilder() { + if (environmentVariablesBuilder_ == null) { + environmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.Envvar.EnvironmentVariable, io.gitpod.publicapi.v1.Envvar.EnvironmentVariable.Builder, io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder>( + environmentVariables_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + environmentVariables_ = null; + } + return environmentVariablesBuilder_; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec git_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpecOrBuilder> gitBuilder_; + /** + *
+       * Git configures the Git user in the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + * @return Whether the git field is set. + */ + public boolean hasGit() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * Git configures the Git user in the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + * @return The git. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec getGit() { + if (gitBuilder_ == null) { + return git_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.getDefaultInstance() : git_; + } else { + return gitBuilder_.getMessage(); + } + } + /** + *
+       * Git configures the Git user in the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + */ + public Builder setGit(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec value) { + if (gitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + git_ = value; + } else { + gitBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Git configures the Git user in the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + */ + public Builder setGit( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.Builder builderForValue) { + if (gitBuilder_ == null) { + git_ = builderForValue.build(); + } else { + gitBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Git configures the Git user in the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + */ + public Builder mergeGit(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec value) { + if (gitBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + git_ != null && + git_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.getDefaultInstance()) { + getGitBuilder().mergeFrom(value); + } else { + git_ = value; + } + } else { + gitBuilder_.mergeFrom(value); + } + if (git_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+       * Git configures the Git user in the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + */ + public Builder clearGit() { + bitField0_ = (bitField0_ & ~0x00000010); + git_ = null; + if (gitBuilder_ != null) { + gitBuilder_.dispose(); + gitBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Git configures the Git user in the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.Builder getGitBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getGitFieldBuilder().getBuilder(); + } + /** + *
+       * Git configures the Git user in the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpecOrBuilder getGitOrBuilder() { + if (gitBuilder_ != null) { + return gitBuilder_.getMessageOrBuilder(); + } else { + return git_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.getDefaultInstance() : git_; + } + } + /** + *
+       * Git configures the Git user in the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.GitSpec git = 5 [json_name = "git"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpecOrBuilder> + getGitFieldBuilder() { + if (gitBuilder_ == null) { + gitBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.GitSpecOrBuilder>( + getGit(), + getParentForChildren(), + isClean()); + git_ = null; + } + return gitBuilder_; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout timeout_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder> timeoutBuilder_; + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + * @return Whether the timeout field is set. + */ + public boolean hasTimeout() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + * @return The timeout. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + */ + public Builder setTimeout(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + } else { + timeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + */ + public Builder setTimeout( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + */ + public Builder mergeTimeout(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout value) { + if (timeoutBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + timeout_ != null && + timeout_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.getDefaultInstance()) { + getTimeoutBuilder().mergeFrom(value); + } else { + timeout_ = value; + } + } else { + timeoutBuilder_.mergeFrom(value); + } + if (timeout_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + */ + public Builder clearTimeout() { + bitField0_ = (bitField0_ & ~0x00000020); + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); + timeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.Builder getTimeoutBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.getDefaultInstance() : timeout_; + } + } + /** + *
+       * Timeout configures the workspace timeout
+       * 
+ * + * .gitpod.v1.WorkspaceSpec.Timeout timeout = 6 [json_name = "timeout"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Timeout.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private int admission_ = 0; + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"]; + * @param value The enum numeric value on the wire for admission to set. + * @return This builder for chaining. + */ + public Builder setAdmissionValue(int value) { + admission_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel result = io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.UNRECOGNIZED : result; + } + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"]; + * @param value The admission to set. + * @return This builder for chaining. + */ + public Builder setAdmission(io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + admission_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"]; + * @return This builder for chaining. + */ + public Builder clearAdmission() { + bitField0_ = (bitField0_ & ~0x00000040); + admission_ = 0; + onChanged(); + return this; + } + + private java.lang.Object class__ = ""; + /** + *
+       * Class denotes the class of the workspace we ought to start
+       * 
+ * + * string class = 8 [json_name = "class"]; + * @return The class. + */ + public java.lang.String getClass_() { + java.lang.Object ref = class__; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + class__ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Class denotes the class of the workspace we ought to start
+       * 
+ * + * string class = 8 [json_name = "class"]; + * @return The bytes for class. + */ + public com.google.protobuf.ByteString + getClass_Bytes() { + java.lang.Object ref = class__; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + class__ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Class denotes the class of the workspace we ought to start
+       * 
+ * + * string class = 8 [json_name = "class"]; + * @param value The class to set. + * @return This builder for chaining. + */ + public Builder setClass_( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + class__ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * Class denotes the class of the workspace we ought to start
+       * 
+ * + * string class = 8 [json_name = "class"]; + * @return This builder for chaining. + */ + public Builder clearClass_() { + class__ = getDefaultInstance().getClass_(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+       * Class denotes the class of the workspace we ought to start
+       * 
+ * + * string class = 8 [json_name = "class"]; + * @param value The bytes for class to set. + * @return This builder for chaining. + */ + public Builder setClass_Bytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + class__ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSshPublicKeysIsMutable() { + if (!sshPublicKeys_.isModifiable()) { + sshPublicKeys_ = new com.google.protobuf.LazyStringArrayList(sshPublicKeys_); + } + bitField0_ |= 0x00000100; + } + /** + *
+       * ssh_public_keys is user's uploaded ssh public keys
+       * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList + getSshPublicKeysList() { + sshPublicKeys_.makeImmutable(); + return sshPublicKeys_; + } + /** + *
+       * ssh_public_keys is user's uploaded ssh public keys
+       * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + /** + *
+       * ssh_public_keys is user's uploaded ssh public keys
+       * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + /** + *
+       * ssh_public_keys is user's uploaded ssh public keys
+       * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString + getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + /** + *
+       * ssh_public_keys is user's uploaded ssh public keys
+       * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param index The index to set the value at. + * @param value The sshPublicKeys to set. + * @return This builder for chaining. + */ + public Builder setSshPublicKeys( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * ssh_public_keys is user's uploaded ssh public keys
+       * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param value The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeys( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * ssh_public_keys is user's uploaded ssh public keys
+       * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param values The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addAllSshPublicKeys( + java.lang.Iterable values) { + ensureSshPublicKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sshPublicKeys_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * ssh_public_keys is user's uploaded ssh public keys
+       * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @return This builder for chaining. + */ + public Builder clearSshPublicKeys() { + sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; + onChanged(); + return this; + } + /** + *
+       * ssh_public_keys is user's uploaded ssh public keys
+       * 
+ * + * repeated string ssh_public_keys = 9 [json_name = "sshPublicKeys"]; + * @param value The bytes of the sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList subassemblyReferences_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubassemblyReferencesIsMutable() { + if (!subassemblyReferences_.isModifiable()) { + subassemblyReferences_ = new com.google.protobuf.LazyStringArrayList(subassemblyReferences_); + } + bitField0_ |= 0x00000200; + } + /** + *
+       * subassembly_references is a list of workspace IDs that this workspace
+       * depends on. For example:
+       * index.docker.io/gitpod-io/subassmeblies/code:latest
+       * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @return A list containing the subassemblyReferences. + */ + public com.google.protobuf.ProtocolStringList + getSubassemblyReferencesList() { + subassemblyReferences_.makeImmutable(); + return subassemblyReferences_; + } + /** + *
+       * subassembly_references is a list of workspace IDs that this workspace
+       * depends on. For example:
+       * index.docker.io/gitpod-io/subassmeblies/code:latest
+       * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @return The count of subassemblyReferences. + */ + public int getSubassemblyReferencesCount() { + return subassemblyReferences_.size(); + } + /** + *
+       * subassembly_references is a list of workspace IDs that this workspace
+       * depends on. For example:
+       * index.docker.io/gitpod-io/subassmeblies/code:latest
+       * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param index The index of the element to return. + * @return The subassemblyReferences at the given index. + */ + public java.lang.String getSubassemblyReferences(int index) { + return subassemblyReferences_.get(index); + } + /** + *
+       * subassembly_references is a list of workspace IDs that this workspace
+       * depends on. For example:
+       * index.docker.io/gitpod-io/subassmeblies/code:latest
+       * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param index The index of the value to return. + * @return The bytes of the subassemblyReferences at the given index. + */ + public com.google.protobuf.ByteString + getSubassemblyReferencesBytes(int index) { + return subassemblyReferences_.getByteString(index); + } + /** + *
+       * subassembly_references is a list of workspace IDs that this workspace
+       * depends on. For example:
+       * index.docker.io/gitpod-io/subassmeblies/code:latest
+       * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param index The index to set the value at. + * @param value The subassemblyReferences to set. + * @return This builder for chaining. + */ + public Builder setSubassemblyReferences( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSubassemblyReferencesIsMutable(); + subassemblyReferences_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * subassembly_references is a list of workspace IDs that this workspace
+       * depends on. For example:
+       * index.docker.io/gitpod-io/subassmeblies/code:latest
+       * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param value The subassemblyReferences to add. + * @return This builder for chaining. + */ + public Builder addSubassemblyReferences( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSubassemblyReferencesIsMutable(); + subassemblyReferences_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * subassembly_references is a list of workspace IDs that this workspace
+       * depends on. For example:
+       * index.docker.io/gitpod-io/subassmeblies/code:latest
+       * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param values The subassemblyReferences to add. + * @return This builder for chaining. + */ + public Builder addAllSubassemblyReferences( + java.lang.Iterable values) { + ensureSubassemblyReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subassemblyReferences_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * subassembly_references is a list of workspace IDs that this workspace
+       * depends on. For example:
+       * index.docker.io/gitpod-io/subassmeblies/code:latest
+       * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @return This builder for chaining. + */ + public Builder clearSubassemblyReferences() { + subassemblyReferences_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200);; + onChanged(); + return this; + } + /** + *
+       * subassembly_references is a list of workspace IDs that this workspace
+       * depends on. For example:
+       * index.docker.io/gitpod-io/subassmeblies/code:latest
+       * 
+ * + * repeated string subassembly_references = 10 [json_name = "subassemblyReferences"]; + * @param value The bytes of the subassemblyReferences to add. + * @return This builder for chaining. + */ + public Builder addSubassemblyReferencesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureSubassemblyReferencesIsMutable(); + subassemblyReferences_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastUserActivity_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUserActivityBuilder_; + /** + *
+       * last_user_activity is the time when the user last interacted with the
+       * workspace
+       * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + * @return Whether the lastUserActivity field is set. + */ + public boolean hasLastUserActivity() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+       * last_user_activity is the time when the user last interacted with the
+       * workspace
+       * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + * @return The lastUserActivity. + */ + public com.google.protobuf.Timestamp getLastUserActivity() { + if (lastUserActivityBuilder_ == null) { + return lastUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUserActivity_; + } else { + return lastUserActivityBuilder_.getMessage(); + } + } + /** + *
+       * last_user_activity is the time when the user last interacted with the
+       * workspace
+       * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + */ + public Builder setLastUserActivity(com.google.protobuf.Timestamp value) { + if (lastUserActivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastUserActivity_ = value; + } else { + lastUserActivityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+       * last_user_activity is the time when the user last interacted with the
+       * workspace
+       * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + */ + public Builder setLastUserActivity( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastUserActivityBuilder_ == null) { + lastUserActivity_ = builderForValue.build(); + } else { + lastUserActivityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+       * last_user_activity is the time when the user last interacted with the
+       * workspace
+       * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + */ + public Builder mergeLastUserActivity(com.google.protobuf.Timestamp value) { + if (lastUserActivityBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + lastUserActivity_ != null && + lastUserActivity_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUserActivityBuilder().mergeFrom(value); + } else { + lastUserActivity_ = value; + } + } else { + lastUserActivityBuilder_.mergeFrom(value); + } + if (lastUserActivity_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+       * last_user_activity is the time when the user last interacted with the
+       * workspace
+       * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + */ + public Builder clearLastUserActivity() { + bitField0_ = (bitField0_ & ~0x00000400); + lastUserActivity_ = null; + if (lastUserActivityBuilder_ != null) { + lastUserActivityBuilder_.dispose(); + lastUserActivityBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * last_user_activity is the time when the user last interacted with the
+       * workspace
+       * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + */ + public com.google.protobuf.Timestamp.Builder getLastUserActivityBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getLastUserActivityFieldBuilder().getBuilder(); + } + /** + *
+       * last_user_activity is the time when the user last interacted with the
+       * workspace
+       * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + */ + public com.google.protobuf.TimestampOrBuilder getLastUserActivityOrBuilder() { + if (lastUserActivityBuilder_ != null) { + return lastUserActivityBuilder_.getMessageOrBuilder(); + } else { + return lastUserActivity_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastUserActivity_; + } + } + /** + *
+       * last_user_activity is the time when the user last interacted with the
+       * workspace
+       * 
+ * + * .google.protobuf.Timestamp last_user_activity = 11 [json_name = "lastUserActivity"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getLastUserActivityFieldBuilder() { + if (lastUserActivityBuilder_ == null) { + lastUserActivityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastUserActivity(), + getParentForChildren(), + isClean()); + lastUserActivity_ = null; + } + return lastUserActivityBuilder_; + } + + private java.lang.Object logUrl_ = ""; + /** + *
+       * log_url is the URL where we stream the workspace's logs to.
+       * Can be changed when the workspace is PENDING or STOPPED.
+       * 
+ * + * string log_url = 12 [json_name = "logUrl"]; + * @return The logUrl. + */ + public java.lang.String getLogUrl() { + java.lang.Object ref = logUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * log_url is the URL where we stream the workspace's logs to.
+       * Can be changed when the workspace is PENDING or STOPPED.
+       * 
+ * + * string log_url = 12 [json_name = "logUrl"]; + * @return The bytes for logUrl. + */ + public com.google.protobuf.ByteString + getLogUrlBytes() { + java.lang.Object ref = logUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * log_url is the URL where we stream the workspace's logs to.
+       * Can be changed when the workspace is PENDING or STOPPED.
+       * 
+ * + * string log_url = 12 [json_name = "logUrl"]; + * @param value The logUrl to set. + * @return This builder for chaining. + */ + public Builder setLogUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + logUrl_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+       * log_url is the URL where we stream the workspace's logs to.
+       * Can be changed when the workspace is PENDING or STOPPED.
+       * 
+ * + * string log_url = 12 [json_name = "logUrl"]; + * @return This builder for chaining. + */ + public Builder clearLogUrl() { + logUrl_ = getDefaultInstance().getLogUrl(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + *
+       * log_url is the URL where we stream the workspace's logs to.
+       * Can be changed when the workspace is PENDING or STOPPED.
+       * 
+ * + * string log_url = 12 [json_name = "logUrl"]; + * @param value The bytes for logUrl to set. + * @return This builder for chaining. + */ + public Builder setLogUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + logUrl_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.Editor.EditorReference editor_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> editorBuilder_; + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + public boolean hasEditor() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + * @return The editor. + */ + public io.gitpod.publicapi.v1.Editor.EditorReference getEditor() { + if (editorBuilder_ == null) { + return editor_ == null ? io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editor_; + } else { + return editorBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + */ + public Builder setEditor(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + editor_ = value; + } else { + editorBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + */ + public Builder setEditor( + io.gitpod.publicapi.v1.Editor.EditorReference.Builder builderForValue) { + if (editorBuilder_ == null) { + editor_ = builderForValue.build(); + } else { + editorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + */ + public Builder mergeEditor(io.gitpod.publicapi.v1.Editor.EditorReference value) { + if (editorBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + editor_ != null && + editor_ != io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance()) { + getEditorBuilder().mergeFrom(value); + } else { + editor_ = value; + } + } else { + editorBuilder_.mergeFrom(value); + } + if (editor_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + */ + public Builder clearEditor() { + bitField0_ = (bitField0_ & ~0x00001000); + editor_ = null; + if (editorBuilder_ != null) { + editorBuilder_.dispose(); + editorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReference.Builder getEditorBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getEditorFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + */ + public io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder getEditorOrBuilder() { + if (editorBuilder_ != null) { + return editorBuilder_.getMessageOrBuilder(); + } else { + return editor_ == null ? + io.gitpod.publicapi.v1.Editor.EditorReference.getDefaultInstance() : editor_; + } + } + /** + * .gitpod.v1.EditorReference editor = 13 [json_name = "editor"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder> + getEditorFieldBuilder() { + if (editorBuilder_ == null) { + editorBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Editor.EditorReference, io.gitpod.publicapi.v1.Editor.EditorReference.Builder, io.gitpod.publicapi.v1.Editor.EditorReferenceOrBuilder>( + getEditor(), + getParentForChildren(), + isClean()); + editor_ = null; + } + return editorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSpec) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceSpec) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * version of the status update. Workspace instances themselves are
+     * unversioned, but their statuus has different versions. The value of this
+     * field has no semantic meaning (e.g. don't interpret it as as a timestemp),
+     * but it can be used to impose a partial order. If a.status_version <
+     * b.status_version then a was the status before b.
+     * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @return The statusVersion. + */ + long getStatusVersion(); + + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the
+     * workspace is in its lifecycle
+     * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + * @return Whether the phase field is set. + */ + boolean hasPhase(); + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the
+     * workspace is in its lifecycle
+     * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + * @return The phase. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase getPhase(); + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the
+     * workspace is in its lifecycle
+     * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhaseOrBuilder getPhaseOrBuilder(); + + /** + *
+     * workspace_url contains the URL at which the workspace can be accessed.
+     * This field is only set if the workspace is running.
+     * 
+ * + * string workspace_url = 3 [json_name = "workspaceUrl"]; + * @return The workspaceUrl. + */ + java.lang.String getWorkspaceUrl(); + /** + *
+     * workspace_url contains the URL at which the workspace can be accessed.
+     * This field is only set if the workspace is running.
+     * 
+ * + * string workspace_url = 3 [json_name = "workspaceUrl"]; + * @return The bytes for workspaceUrl. + */ + com.google.protobuf.ByteString + getWorkspaceUrlBytes(); + + /** + *
+     * conditions detail the current state of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + * @return Whether the conditions field is set. + */ + boolean hasConditions(); + /** + *
+     * conditions detail the current state of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + * @return The conditions. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions getConditions(); + /** + *
+     * conditions detail the current state of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditionsOrBuilder getConditionsOrBuilder(); + + /** + *
+     * prebuild_result contains the result of a prebuild. Only if the workspace is
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + * @return Whether the prebuildResult field is set. + */ + boolean hasPrebuildResult(); + /** + *
+     * prebuild_result contains the result of a prebuild. Only if the workspace is
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + * @return The prebuildResult. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult getPrebuildResult(); + /** + *
+     * prebuild_result contains the result of a prebuild. Only if the workspace is
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResultOrBuilder getPrebuildResultOrBuilder(); + + /** + *
+     * git_status details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be
+     * present. Its absence does not indicate the absence of a working copy.
+     * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + * @return Whether the gitStatus field is set. + */ + boolean hasGitStatus(); + /** + *
+     * git_status details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be
+     * present. Its absence does not indicate the absence of a working copy.
+     * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + * @return The gitStatus. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus getGitStatus(); + /** + *
+     * git_status details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be
+     * present. Its absence does not indicate the absence of a working copy.
+     * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder getGitStatusOrBuilder(); + + /** + *
+     * instance_id is the ID of the workspace instance - do not use, interpret or
+     * rely on this field unless you know what you're doing.
+     * 
+ * + * string instance_id = 7 [json_name = "instanceId", deprecated = true]; + * @deprecated gitpod.v1.WorkspaceStatus.instance_id is deprecated. + * See gitpod/v1/workspace.proto;l=466 + * @return The instanceId. + */ + @java.lang.Deprecated java.lang.String getInstanceId(); + /** + *
+     * instance_id is the ID of the workspace instance - do not use, interpret or
+     * rely on this field unless you know what you're doing.
+     * 
+ * + * string instance_id = 7 [json_name = "instanceId", deprecated = true]; + * @deprecated gitpod.v1.WorkspaceStatus.instance_id is deprecated. + * See gitpod/v1/workspace.proto;l=466 + * @return The bytes for instanceId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getInstanceIdBytes(); + } + /** + *
+   * WorkspaceStatus describes a workspace status
+   * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceStatus} + */ + public static final class WorkspaceStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceStatus) + WorkspaceStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceStatus.class.getName()); + } + // Use WorkspaceStatus.newBuilder() to construct. + private WorkspaceStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceStatus() { + workspaceUrl_ = ""; + instanceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder.class); + } + + public interface WorkspaceConditionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceStatus.WorkspaceConditions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * failed contains the reason the workspace failed to operate. If this field
+       * is empty, the workspace has not failed.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The failed. + */ + java.lang.String getFailed(); + /** + *
+       * failed contains the reason the workspace failed to operate. If this field
+       * is empty, the workspace has not failed.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The bytes for failed. + */ + com.google.protobuf.ByteString + getFailedBytes(); + + /** + *
+       * failed_reason contains the reason the workspace failed to operate.
+       * This field is only set if the workspace has failed.
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason failed_reason = 2 [json_name = "failedReason"]; + * @return The enum numeric value on the wire for failedReason. + */ + int getFailedReasonValue(); + /** + *
+       * failed_reason contains the reason the workspace failed to operate.
+       * This field is only set if the workspace has failed.
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason failed_reason = 2 [json_name = "failedReason"]; + * @return The failedReason. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason getFailedReason(); + + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is
+       * empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 3 [json_name = "timeout"]; + * @return The timeout. + */ + java.lang.String getTimeout(); + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is
+       * empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 3 [json_name = "timeout"]; + * @return The bytes for timeout. + */ + com.google.protobuf.ByteString + getTimeoutBytes(); + } + /** + *
+     * WorkspaceCondition gives more detailed information as to the state of the
+     * workspace. Which condition actually has a value depends on the phase the
+     * workspace is in.
+     * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceStatus.WorkspaceConditions} + */ + public static final class WorkspaceConditions extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceStatus.WorkspaceConditions) + WorkspaceConditionsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceConditions.class.getName()); + } + // Use WorkspaceConditions.newBuilder() to construct. + private WorkspaceConditions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceConditions() { + failed_ = ""; + failedReason_ = 0; + timeout_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.Builder.class); + } + + /** + * Protobuf enum {@code gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason} + */ + public enum FailedReason + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FAILED_REASON_UNSPECIFIED = 0; + */ + FAILED_REASON_UNSPECIFIED(0), + /** + * FAILED_REASON_CONTENT_INITIALIZATION_FAILED = 1; + */ + FAILED_REASON_CONTENT_INITIALIZATION_FAILED(1), + /** + * FAILED_REASON_BACKUP_FAILED = 2; + */ + FAILED_REASON_BACKUP_FAILED(2), + /** + * FAILED_REASON_IMAGE_PULL_FAILURE = 3; + */ + FAILED_REASON_IMAGE_PULL_FAILURE(3), + /** + * FAILED_REASON_UNEXPECTED_TERMINATION = 4; + */ + FAILED_REASON_UNEXPECTED_TERMINATION(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + FailedReason.class.getName()); + } + /** + * FAILED_REASON_UNSPECIFIED = 0; + */ + public static final int FAILED_REASON_UNSPECIFIED_VALUE = 0; + /** + * FAILED_REASON_CONTENT_INITIALIZATION_FAILED = 1; + */ + public static final int FAILED_REASON_CONTENT_INITIALIZATION_FAILED_VALUE = 1; + /** + * FAILED_REASON_BACKUP_FAILED = 2; + */ + public static final int FAILED_REASON_BACKUP_FAILED_VALUE = 2; + /** + * FAILED_REASON_IMAGE_PULL_FAILURE = 3; + */ + public static final int FAILED_REASON_IMAGE_PULL_FAILURE_VALUE = 3; + /** + * FAILED_REASON_UNEXPECTED_TERMINATION = 4; + */ + public static final int FAILED_REASON_UNEXPECTED_TERMINATION_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FailedReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FailedReason forNumber(int value) { + switch (value) { + case 0: return FAILED_REASON_UNSPECIFIED; + case 1: return FAILED_REASON_CONTENT_INITIALIZATION_FAILED; + case 2: return FAILED_REASON_BACKUP_FAILED; + case 3: return FAILED_REASON_IMAGE_PULL_FAILURE; + case 4: return FAILED_REASON_UNEXPECTED_TERMINATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FailedReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FailedReason findValueByNumber(int number) { + return FailedReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.getDescriptor().getEnumTypes().get(0); + } + + private static final FailedReason[] VALUES = values(); + + public static FailedReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FailedReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason) + } + + public static final int FAILED_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object failed_ = ""; + /** + *
+       * failed contains the reason the workspace failed to operate. If this field
+       * is empty, the workspace has not failed.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The failed. + */ + @java.lang.Override + public java.lang.String getFailed() { + java.lang.Object ref = failed_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failed_ = s; + return s; + } + } + /** + *
+       * failed contains the reason the workspace failed to operate. If this field
+       * is empty, the workspace has not failed.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The bytes for failed. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFailedBytes() { + java.lang.Object ref = failed_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAILED_REASON_FIELD_NUMBER = 2; + private int failedReason_ = 0; + /** + *
+       * failed_reason contains the reason the workspace failed to operate.
+       * This field is only set if the workspace has failed.
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason failed_reason = 2 [json_name = "failedReason"]; + * @return The enum numeric value on the wire for failedReason. + */ + @java.lang.Override public int getFailedReasonValue() { + return failedReason_; + } + /** + *
+       * failed_reason contains the reason the workspace failed to operate.
+       * This field is only set if the workspace has failed.
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason failed_reason = 2 [json_name = "failedReason"]; + * @return The failedReason. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason getFailedReason() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason.forNumber(failedReason_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason.UNRECOGNIZED : result; + } + + public static final int TIMEOUT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object timeout_ = ""; + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is
+       * empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 3 [json_name = "timeout"]; + * @return The timeout. + */ + @java.lang.Override + public java.lang.String getTimeout() { + java.lang.Object ref = timeout_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeout_ = s; + return s; + } + } + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is
+       * empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 3 [json_name = "timeout"]; + * @return The bytes for timeout. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTimeoutBytes() { + java.lang.Object ref = timeout_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timeout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failed_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, failed_); + } + if (failedReason_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason.FAILED_REASON_UNSPECIFIED.getNumber()) { + output.writeEnum(2, failedReason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeout_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, timeout_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failed_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, failed_); + } + if (failedReason_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason.FAILED_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, failedReason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeout_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, timeout_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions) obj; + + if (!getFailed() + .equals(other.getFailed())) return false; + if (failedReason_ != other.failedReason_) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FAILED_FIELD_NUMBER; + hash = (53 * hash) + getFailed().hashCode(); + hash = (37 * hash) + FAILED_REASON_FIELD_NUMBER; + hash = (53 * hash) + failedReason_; + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * WorkspaceCondition gives more detailed information as to the state of the
+       * workspace. Which condition actually has a value depends on the phase the
+       * workspace is in.
+       * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceStatus.WorkspaceConditions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceStatus.WorkspaceConditions) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + failed_ = ""; + failedReason_ = 0; + timeout_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.failed_ = failed_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.failedReason_ = failedReason_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeout_ = timeout_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.getDefaultInstance()) return this; + if (!other.getFailed().isEmpty()) { + failed_ = other.failed_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.failedReason_ != 0) { + setFailedReasonValue(other.getFailedReasonValue()); + } + if (!other.getTimeout().isEmpty()) { + timeout_ = other.timeout_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + failed_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + failedReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + timeout_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object failed_ = ""; + /** + *
+         * failed contains the reason the workspace failed to operate. If this field
+         * is empty, the workspace has not failed.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The failed. + */ + public java.lang.String getFailed() { + java.lang.Object ref = failed_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failed_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field
+         * is empty, the workspace has not failed.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The bytes for failed. + */ + public com.google.protobuf.ByteString + getFailedBytes() { + java.lang.Object ref = failed_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field
+         * is empty, the workspace has not failed.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @param value The failed to set. + * @return This builder for chaining. + */ + public Builder setFailed( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + failed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field
+         * is empty, the workspace has not failed.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return This builder for chaining. + */ + public Builder clearFailed() { + failed_ = getDefaultInstance().getFailed(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field
+         * is empty, the workspace has not failed.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @param value The bytes for failed to set. + * @return This builder for chaining. + */ + public Builder setFailedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + failed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int failedReason_ = 0; + /** + *
+         * failed_reason contains the reason the workspace failed to operate.
+         * This field is only set if the workspace has failed.
+         * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason failed_reason = 2 [json_name = "failedReason"]; + * @return The enum numeric value on the wire for failedReason. + */ + @java.lang.Override public int getFailedReasonValue() { + return failedReason_; + } + /** + *
+         * failed_reason contains the reason the workspace failed to operate.
+         * This field is only set if the workspace has failed.
+         * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason failed_reason = 2 [json_name = "failedReason"]; + * @param value The enum numeric value on the wire for failedReason to set. + * @return This builder for chaining. + */ + public Builder setFailedReasonValue(int value) { + failedReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * failed_reason contains the reason the workspace failed to operate.
+         * This field is only set if the workspace has failed.
+         * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason failed_reason = 2 [json_name = "failedReason"]; + * @return The failedReason. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason getFailedReason() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason.forNumber(failedReason_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason.UNRECOGNIZED : result; + } + /** + *
+         * failed_reason contains the reason the workspace failed to operate.
+         * This field is only set if the workspace has failed.
+         * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason failed_reason = 2 [json_name = "failedReason"]; + * @param value The failedReason to set. + * @return This builder for chaining. + */ + public Builder setFailedReason(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.FailedReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + failedReason_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * failed_reason contains the reason the workspace failed to operate.
+         * This field is only set if the workspace has failed.
+         * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions.FailedReason failed_reason = 2 [json_name = "failedReason"]; + * @return This builder for chaining. + */ + public Builder clearFailedReason() { + bitField0_ = (bitField0_ & ~0x00000002); + failedReason_ = 0; + onChanged(); + return this; + } + + private java.lang.Object timeout_ = ""; + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is
+         * empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 3 [json_name = "timeout"]; + * @return The timeout. + */ + public java.lang.String getTimeout() { + java.lang.Object ref = timeout_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeout_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is
+         * empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 3 [json_name = "timeout"]; + * @return The bytes for timeout. + */ + public com.google.protobuf.ByteString + getTimeoutBytes() { + java.lang.Object ref = timeout_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timeout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is
+         * empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 3 [json_name = "timeout"]; + * @param value The timeout to set. + * @return This builder for chaining. + */ + public Builder setTimeout( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + timeout_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is
+         * empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 3 [json_name = "timeout"]; + * @return This builder for chaining. + */ + public Builder clearTimeout() { + timeout_ = getDefaultInstance().getTimeout(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is
+         * empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 3 [json_name = "timeout"]; + * @param value The bytes for timeout to set. + * @return This builder for chaining. + */ + public Builder setTimeoutBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + timeout_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceStatus.WorkspaceConditions) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceStatus.WorkspaceConditions) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceConditions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrebuildResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceStatus.PrebuildResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Snapshot points to the content of the prebuild. This string is opaque to
+       * the cluster manager, and must be returned unaltered.
+       * 
+ * + * string snapshot = 1 [json_name = "snapshot"]; + * @return The snapshot. + */ + java.lang.String getSnapshot(); + /** + *
+       * Snapshot points to the content of the prebuild. This string is opaque to
+       * the cluster manager, and must be returned unaltered.
+       * 
+ * + * string snapshot = 1 [json_name = "snapshot"]; + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString + getSnapshotBytes(); + + /** + *
+       * The prebuild's error message
+       * 
+ * + * string error_message = 2 [json_name = "errorMessage"]; + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + *
+       * The prebuild's error message
+       * 
+ * + * string error_message = 2 [json_name = "errorMessage"]; + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString + getErrorMessageBytes(); + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceStatus.PrebuildResult} + */ + public static final class PrebuildResult extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceStatus.PrebuildResult) + PrebuildResultOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PrebuildResult.class.getName()); + } + // Use PrebuildResult.newBuilder() to construct. + private PrebuildResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrebuildResult() { + snapshot_ = ""; + errorMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.Builder.class); + } + + public static final int SNAPSHOT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object snapshot_ = ""; + /** + *
+       * Snapshot points to the content of the prebuild. This string is opaque to
+       * the cluster manager, and must be returned unaltered.
+       * 
+ * + * string snapshot = 1 [json_name = "snapshot"]; + * @return The snapshot. + */ + @java.lang.Override + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } + } + /** + *
+       * Snapshot points to the content of the prebuild. This string is opaque to
+       * the cluster manager, and must be returned unaltered.
+       * 
+ * + * string snapshot = 1 [json_name = "snapshot"]; + * @return The bytes for snapshot. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + *
+       * The prebuild's error message
+       * 
+ * + * string error_message = 2 [json_name = "errorMessage"]; + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + /** + *
+       * The prebuild's error message
+       * 
+ * + * string error_message = 2 [json_name = "errorMessage"]; + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, snapshot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snapshot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, errorMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult) obj; + + if (!getSnapshot() + .equals(other.getSnapshot())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceStatus.PrebuildResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceStatus.PrebuildResult) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + snapshot_ = ""; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshot_ = snapshot_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.getDefaultInstance()) return this; + if (!other.getSnapshot().isEmpty()) { + snapshot_ = other.snapshot_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + snapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object snapshot_ = ""; + /** + *
+         * Snapshot points to the content of the prebuild. This string is opaque to
+         * the cluster manager, and must be returned unaltered.
+         * 
+ * + * string snapshot = 1 [json_name = "snapshot"]; + * @return The snapshot. + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Snapshot points to the content of the prebuild. This string is opaque to
+         * the cluster manager, and must be returned unaltered.
+         * 
+ * + * string snapshot = 1 [json_name = "snapshot"]; + * @return The bytes for snapshot. + */ + public com.google.protobuf.ByteString + getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Snapshot points to the content of the prebuild. This string is opaque to
+         * the cluster manager, and must be returned unaltered.
+         * 
+ * + * string snapshot = 1 [json_name = "snapshot"]; + * @param value The snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshot( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + snapshot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * Snapshot points to the content of the prebuild. This string is opaque to
+         * the cluster manager, and must be returned unaltered.
+         * 
+ * + * string snapshot = 1 [json_name = "snapshot"]; + * @return This builder for chaining. + */ + public Builder clearSnapshot() { + snapshot_ = getDefaultInstance().getSnapshot(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * Snapshot points to the content of the prebuild. This string is opaque to
+         * the cluster manager, and must be returned unaltered.
+         * 
+ * + * string snapshot = 1 [json_name = "snapshot"]; + * @param value The bytes for snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + snapshot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + *
+         * The prebuild's error message
+         * 
+ * + * string error_message = 2 [json_name = "errorMessage"]; + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * The prebuild's error message
+         * 
+ * + * string error_message = 2 [json_name = "errorMessage"]; + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * The prebuild's error message
+         * 
+ * + * string error_message = 2 [json_name = "errorMessage"]; + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The prebuild's error message
+         * 
+ * + * string error_message = 2 [json_name = "errorMessage"]; + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * The prebuild's error message
+         * 
+ * + * string error_message = 2 [json_name = "errorMessage"]; + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceStatus.PrebuildResult) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceStatus.PrebuildResult) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuildResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int STATUS_VERSION_FIELD_NUMBER = 1; + private long statusVersion_ = 0L; + /** + *
+     * version of the status update. Workspace instances themselves are
+     * unversioned, but their statuus has different versions. The value of this
+     * field has no semantic meaning (e.g. don't interpret it as as a timestemp),
+     * but it can be used to impose a partial order. If a.status_version <
+     * b.status_version then a was the status before b.
+     * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @return The statusVersion. + */ + @java.lang.Override + public long getStatusVersion() { + return statusVersion_; + } + + public static final int PHASE_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase phase_; + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the
+     * workspace is in its lifecycle
+     * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + * @return Whether the phase field is set. + */ + @java.lang.Override + public boolean hasPhase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the
+     * workspace is in its lifecycle
+     * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + * @return The phase. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase getPhase() { + return phase_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.getDefaultInstance() : phase_; + } + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the
+     * workspace is in its lifecycle
+     * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhaseOrBuilder getPhaseOrBuilder() { + return phase_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.getDefaultInstance() : phase_; + } + + public static final int WORKSPACE_URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceUrl_ = ""; + /** + *
+     * workspace_url contains the URL at which the workspace can be accessed.
+     * This field is only set if the workspace is running.
+     * 
+ * + * string workspace_url = 3 [json_name = "workspaceUrl"]; + * @return The workspaceUrl. + */ + @java.lang.Override + public java.lang.String getWorkspaceUrl() { + java.lang.Object ref = workspaceUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceUrl_ = s; + return s; + } + } + /** + *
+     * workspace_url contains the URL at which the workspace can be accessed.
+     * This field is only set if the workspace is running.
+     * 
+ * + * string workspace_url = 3 [json_name = "workspaceUrl"]; + * @return The bytes for workspaceUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceUrlBytes() { + java.lang.Object ref = workspaceUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONDITIONS_FIELD_NUMBER = 4; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions conditions_; + /** + *
+     * conditions detail the current state of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + * @return Whether the conditions field is set. + */ + @java.lang.Override + public boolean hasConditions() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * conditions detail the current state of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + * @return The conditions. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions getConditions() { + return conditions_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.getDefaultInstance() : conditions_; + } + /** + *
+     * conditions detail the current state of the workspace
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditionsOrBuilder getConditionsOrBuilder() { + return conditions_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.getDefaultInstance() : conditions_; + } + + public static final int PREBUILD_RESULT_FIELD_NUMBER = 5; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult prebuildResult_; + /** + *
+     * prebuild_result contains the result of a prebuild. Only if the workspace is
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + * @return Whether the prebuildResult field is set. + */ + @java.lang.Override + public boolean hasPrebuildResult() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * prebuild_result contains the result of a prebuild. Only if the workspace is
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + * @return The prebuildResult. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult getPrebuildResult() { + return prebuildResult_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.getDefaultInstance() : prebuildResult_; + } + /** + *
+     * prebuild_result contains the result of a prebuild. Only if the workspace is
+     * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResultOrBuilder getPrebuildResultOrBuilder() { + return prebuildResult_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.getDefaultInstance() : prebuildResult_; + } + + public static final int GIT_STATUS_FIELD_NUMBER = 6; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus gitStatus_; + /** + *
+     * git_status details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be
+     * present. Its absence does not indicate the absence of a working copy.
+     * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + * @return Whether the gitStatus field is set. + */ + @java.lang.Override + public boolean hasGitStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * git_status details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be
+     * present. Its absence does not indicate the absence of a working copy.
+     * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + * @return The gitStatus. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus getGitStatus() { + return gitStatus_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance() : gitStatus_; + } + /** + *
+     * git_status details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be
+     * present. Its absence does not indicate the absence of a working copy.
+     * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder getGitStatusOrBuilder() { + return gitStatus_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance() : gitStatus_; + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + /** + *
+     * instance_id is the ID of the workspace instance - do not use, interpret or
+     * rely on this field unless you know what you're doing.
+     * 
+ * + * string instance_id = 7 [json_name = "instanceId", deprecated = true]; + * @deprecated gitpod.v1.WorkspaceStatus.instance_id is deprecated. + * See gitpod/v1/workspace.proto;l=466 + * @return The instanceId. + */ + @java.lang.Override + @java.lang.Deprecated public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } + } + /** + *
+     * instance_id is the ID of the workspace instance - do not use, interpret or
+     * rely on this field unless you know what you're doing.
+     * 
+ * + * string instance_id = 7 [json_name = "instanceId", deprecated = true]; + * @deprecated gitpod.v1.WorkspaceStatus.instance_id is deprecated. + * See gitpod/v1/workspace.proto;l=466 + * @return The bytes for instanceId. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString + getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (statusVersion_ != 0L) { + output.writeUInt64(1, statusVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPhase()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, workspaceUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getConditions()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getPrebuildResult()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getGitStatus()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, instanceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (statusVersion_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, statusVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPhase()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, workspaceUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConditions()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getPrebuildResult()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getGitStatus()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, instanceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus) obj; + + if (getStatusVersion() + != other.getStatusVersion()) return false; + if (hasPhase() != other.hasPhase()) return false; + if (hasPhase()) { + if (!getPhase() + .equals(other.getPhase())) return false; + } + if (!getWorkspaceUrl() + .equals(other.getWorkspaceUrl())) return false; + if (hasConditions() != other.hasConditions()) return false; + if (hasConditions()) { + if (!getConditions() + .equals(other.getConditions())) return false; + } + if (hasPrebuildResult() != other.hasPrebuildResult()) return false; + if (hasPrebuildResult()) { + if (!getPrebuildResult() + .equals(other.getPrebuildResult())) return false; + } + if (hasGitStatus() != other.hasGitStatus()) return false; + if (hasGitStatus()) { + if (!getGitStatus() + .equals(other.getGitStatus())) return false; + } + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATUS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStatusVersion()); + if (hasPhase()) { + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + getPhase().hashCode(); + } + hash = (37 * hash) + WORKSPACE_URL_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceUrl().hashCode(); + if (hasConditions()) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditions().hashCode(); + } + if (hasPrebuildResult()) { + hash = (37 * hash) + PREBUILD_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildResult().hashCode(); + } + if (hasGitStatus()) { + hash = (37 * hash) + GIT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getGitStatus().hashCode(); + } + hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstanceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceStatus describes a workspace status
+     * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceStatus) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPhaseFieldBuilder(); + getConditionsFieldBuilder(); + getPrebuildResultFieldBuilder(); + getGitStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + statusVersion_ = 0L; + phase_ = null; + if (phaseBuilder_ != null) { + phaseBuilder_.dispose(); + phaseBuilder_ = null; + } + workspaceUrl_ = ""; + conditions_ = null; + if (conditionsBuilder_ != null) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + } + prebuildResult_ = null; + if (prebuildResultBuilder_ != null) { + prebuildResultBuilder_.dispose(); + prebuildResultBuilder_ = null; + } + gitStatus_ = null; + if (gitStatusBuilder_ != null) { + gitStatusBuilder_.dispose(); + gitStatusBuilder_ = null; + } + instanceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceStatus_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.statusVersion_ = statusVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.phase_ = phaseBuilder_ == null + ? phase_ + : phaseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workspaceUrl_ = workspaceUrl_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.conditions_ = conditionsBuilder_ == null + ? conditions_ + : conditionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.prebuildResult_ = prebuildResultBuilder_ == null + ? prebuildResult_ + : prebuildResultBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.gitStatus_ = gitStatusBuilder_ == null + ? gitStatus_ + : gitStatusBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.instanceId_ = instanceId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.getDefaultInstance()) return this; + if (other.getStatusVersion() != 0L) { + setStatusVersion(other.getStatusVersion()); + } + if (other.hasPhase()) { + mergePhase(other.getPhase()); + } + if (!other.getWorkspaceUrl().isEmpty()) { + workspaceUrl_ = other.workspaceUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasConditions()) { + mergeConditions(other.getConditions()); + } + if (other.hasPrebuildResult()) { + mergePrebuildResult(other.getPrebuildResult()); + } + if (other.hasGitStatus()) { + mergeGitStatus(other.getGitStatus()); + } + if (!other.getInstanceId().isEmpty()) { + instanceId_ = other.instanceId_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + statusVersion_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getPhaseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + workspaceUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getConditionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getPrebuildResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getGitStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long statusVersion_ ; + /** + *
+       * version of the status update. Workspace instances themselves are
+       * unversioned, but their statuus has different versions. The value of this
+       * field has no semantic meaning (e.g. don't interpret it as as a timestemp),
+       * but it can be used to impose a partial order. If a.status_version <
+       * b.status_version then a was the status before b.
+       * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @return The statusVersion. + */ + @java.lang.Override + public long getStatusVersion() { + return statusVersion_; + } + /** + *
+       * version of the status update. Workspace instances themselves are
+       * unversioned, but their statuus has different versions. The value of this
+       * field has no semantic meaning (e.g. don't interpret it as as a timestemp),
+       * but it can be used to impose a partial order. If a.status_version <
+       * b.status_version then a was the status before b.
+       * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @param value The statusVersion to set. + * @return This builder for chaining. + */ + public Builder setStatusVersion(long value) { + + statusVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * version of the status update. Workspace instances themselves are
+       * unversioned, but their statuus has different versions. The value of this
+       * field has no semantic meaning (e.g. don't interpret it as as a timestemp),
+       * but it can be used to impose a partial order. If a.status_version <
+       * b.status_version then a was the status before b.
+       * 
+ * + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @return This builder for chaining. + */ + public Builder clearStatusVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + statusVersion_ = 0L; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase phase_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhaseOrBuilder> phaseBuilder_; + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the
+       * workspace is in its lifecycle
+       * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + * @return Whether the phase field is set. + */ + public boolean hasPhase() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the
+       * workspace is in its lifecycle
+       * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + * @return The phase. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase getPhase() { + if (phaseBuilder_ == null) { + return phase_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.getDefaultInstance() : phase_; + } else { + return phaseBuilder_.getMessage(); + } + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the
+       * workspace is in its lifecycle
+       * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + */ + public Builder setPhase(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase value) { + if (phaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + phase_ = value; + } else { + phaseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the
+       * workspace is in its lifecycle
+       * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + */ + public Builder setPhase( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Builder builderForValue) { + if (phaseBuilder_ == null) { + phase_ = builderForValue.build(); + } else { + phaseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the
+       * workspace is in its lifecycle
+       * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + */ + public Builder mergePhase(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase value) { + if (phaseBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + phase_ != null && + phase_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.getDefaultInstance()) { + getPhaseBuilder().mergeFrom(value); + } else { + phase_ = value; + } + } else { + phaseBuilder_.mergeFrom(value); + } + if (phase_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the
+       * workspace is in its lifecycle
+       * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + */ + public Builder clearPhase() { + bitField0_ = (bitField0_ & ~0x00000002); + phase_ = null; + if (phaseBuilder_ != null) { + phaseBuilder_.dispose(); + phaseBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the
+       * workspace is in its lifecycle
+       * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Builder getPhaseBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPhaseFieldBuilder().getBuilder(); + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the
+       * workspace is in its lifecycle
+       * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhaseOrBuilder getPhaseOrBuilder() { + if (phaseBuilder_ != null) { + return phaseBuilder_.getMessageOrBuilder(); + } else { + return phase_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.getDefaultInstance() : phase_; + } + } + /** + *
+       * the phase of a workspace is a simple, high-level summary of where the
+       * workspace is in its lifecycle
+       * 
+ * + * .gitpod.v1.WorkspacePhase phase = 2 [json_name = "phase"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhaseOrBuilder> + getPhaseFieldBuilder() { + if (phaseBuilder_ == null) { + phaseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhaseOrBuilder>( + getPhase(), + getParentForChildren(), + isClean()); + phase_ = null; + } + return phaseBuilder_; + } + + private java.lang.Object workspaceUrl_ = ""; + /** + *
+       * workspace_url contains the URL at which the workspace can be accessed.
+       * This field is only set if the workspace is running.
+       * 
+ * + * string workspace_url = 3 [json_name = "workspaceUrl"]; + * @return The workspaceUrl. + */ + public java.lang.String getWorkspaceUrl() { + java.lang.Object ref = workspaceUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_url contains the URL at which the workspace can be accessed.
+       * This field is only set if the workspace is running.
+       * 
+ * + * string workspace_url = 3 [json_name = "workspaceUrl"]; + * @return The bytes for workspaceUrl. + */ + public com.google.protobuf.ByteString + getWorkspaceUrlBytes() { + java.lang.Object ref = workspaceUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_url contains the URL at which the workspace can be accessed.
+       * This field is only set if the workspace is running.
+       * 
+ * + * string workspace_url = 3 [json_name = "workspaceUrl"]; + * @param value The workspaceUrl to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * workspace_url contains the URL at which the workspace can be accessed.
+       * This field is only set if the workspace is running.
+       * 
+ * + * string workspace_url = 3 [json_name = "workspaceUrl"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceUrl() { + workspaceUrl_ = getDefaultInstance().getWorkspaceUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * workspace_url contains the URL at which the workspace can be accessed.
+       * This field is only set if the workspace is running.
+       * 
+ * + * string workspace_url = 3 [json_name = "workspaceUrl"]; + * @param value The bytes for workspaceUrl to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions conditions_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditionsOrBuilder> conditionsBuilder_; + /** + *
+       * conditions detail the current state of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + * @return Whether the conditions field is set. + */ + public boolean hasConditions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * conditions detail the current state of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + * @return The conditions. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions getConditions() { + if (conditionsBuilder_ == null) { + return conditions_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.getDefaultInstance() : conditions_; + } else { + return conditionsBuilder_.getMessage(); + } + } + /** + *
+       * conditions detail the current state of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + */ + public Builder setConditions(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conditions_ = value; + } else { + conditionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * conditions detail the current state of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + */ + public Builder setConditions( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.Builder builderForValue) { + if (conditionsBuilder_ == null) { + conditions_ = builderForValue.build(); + } else { + conditionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * conditions detail the current state of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + */ + public Builder mergeConditions(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions value) { + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + conditions_ != null && + conditions_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.getDefaultInstance()) { + getConditionsBuilder().mergeFrom(value); + } else { + conditions_ = value; + } + } else { + conditionsBuilder_.mergeFrom(value); + } + if (conditions_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * conditions detail the current state of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + */ + public Builder clearConditions() { + bitField0_ = (bitField0_ & ~0x00000008); + conditions_ = null; + if (conditionsBuilder_ != null) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * conditions detail the current state of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.Builder getConditionsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getConditionsFieldBuilder().getBuilder(); + } + /** + *
+       * conditions detail the current state of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditionsOrBuilder getConditionsOrBuilder() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilder(); + } else { + return conditions_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.getDefaultInstance() : conditions_; + } + } + /** + *
+       * conditions detail the current state of the workspace
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.WorkspaceConditions conditions = 4 [json_name = "conditions"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditionsOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditions.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.WorkspaceConditionsOrBuilder>( + getConditions(), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult prebuildResult_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResultOrBuilder> prebuildResultBuilder_; + /** + *
+       * prebuild_result contains the result of a prebuild. Only if the workspace is
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + * @return Whether the prebuildResult field is set. + */ + public boolean hasPrebuildResult() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * prebuild_result contains the result of a prebuild. Only if the workspace is
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + * @return The prebuildResult. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult getPrebuildResult() { + if (prebuildResultBuilder_ == null) { + return prebuildResult_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.getDefaultInstance() : prebuildResult_; + } else { + return prebuildResultBuilder_.getMessage(); + } + } + /** + *
+       * prebuild_result contains the result of a prebuild. Only if the workspace is
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + */ + public Builder setPrebuildResult(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult value) { + if (prebuildResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prebuildResult_ = value; + } else { + prebuildResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * prebuild_result contains the result of a prebuild. Only if the workspace is
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + */ + public Builder setPrebuildResult( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.Builder builderForValue) { + if (prebuildResultBuilder_ == null) { + prebuildResult_ = builderForValue.build(); + } else { + prebuildResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * prebuild_result contains the result of a prebuild. Only if the workspace is
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + */ + public Builder mergePrebuildResult(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult value) { + if (prebuildResultBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + prebuildResult_ != null && + prebuildResult_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.getDefaultInstance()) { + getPrebuildResultBuilder().mergeFrom(value); + } else { + prebuildResult_ = value; + } + } else { + prebuildResultBuilder_.mergeFrom(value); + } + if (prebuildResult_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+       * prebuild_result contains the result of a prebuild. Only if the workspace is
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + */ + public Builder clearPrebuildResult() { + bitField0_ = (bitField0_ & ~0x00000010); + prebuildResult_ = null; + if (prebuildResultBuilder_ != null) { + prebuildResultBuilder_.dispose(); + prebuildResultBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * prebuild_result contains the result of a prebuild. Only if the workspace is
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.Builder getPrebuildResultBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getPrebuildResultFieldBuilder().getBuilder(); + } + /** + *
+       * prebuild_result contains the result of a prebuild. Only if the workspace is
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResultOrBuilder getPrebuildResultOrBuilder() { + if (prebuildResultBuilder_ != null) { + return prebuildResultBuilder_.getMessageOrBuilder(); + } else { + return prebuildResult_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.getDefaultInstance() : prebuildResult_; + } + } + /** + *
+       * prebuild_result contains the result of a prebuild. Only if the workspace is
+       * 
+ * + * .gitpod.v1.WorkspaceStatus.PrebuildResult prebuild_result = 5 [json_name = "prebuildResult"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResultOrBuilder> + getPrebuildResultFieldBuilder() { + if (prebuildResultBuilder_ == null) { + prebuildResultBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResultOrBuilder>( + getPrebuildResult(), + getParentForChildren(), + isClean()); + prebuildResult_ = null; + } + return prebuildResultBuilder_; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus gitStatus_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder> gitStatusBuilder_; + /** + *
+       * git_status details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be
+       * present. Its absence does not indicate the absence of a working copy.
+       * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + * @return Whether the gitStatus field is set. + */ + public boolean hasGitStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+       * git_status details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be
+       * present. Its absence does not indicate the absence of a working copy.
+       * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + * @return The gitStatus. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus getGitStatus() { + if (gitStatusBuilder_ == null) { + return gitStatus_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance() : gitStatus_; + } else { + return gitStatusBuilder_.getMessage(); + } + } + /** + *
+       * git_status details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be
+       * present. Its absence does not indicate the absence of a working copy.
+       * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + */ + public Builder setGitStatus(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus value) { + if (gitStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gitStatus_ = value; + } else { + gitStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * git_status details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be
+       * present. Its absence does not indicate the absence of a working copy.
+       * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + */ + public Builder setGitStatus( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder builderForValue) { + if (gitStatusBuilder_ == null) { + gitStatus_ = builderForValue.build(); + } else { + gitStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * git_status details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be
+       * present. Its absence does not indicate the absence of a working copy.
+       * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + */ + public Builder mergeGitStatus(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus value) { + if (gitStatusBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + gitStatus_ != null && + gitStatus_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance()) { + getGitStatusBuilder().mergeFrom(value); + } else { + gitStatus_ = value; + } + } else { + gitStatusBuilder_.mergeFrom(value); + } + if (gitStatus_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+       * git_status details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be
+       * present. Its absence does not indicate the absence of a working copy.
+       * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + */ + public Builder clearGitStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + gitStatus_ = null; + if (gitStatusBuilder_ != null) { + gitStatusBuilder_.dispose(); + gitStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * git_status details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be
+       * present. Its absence does not indicate the absence of a working copy.
+       * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder getGitStatusBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getGitStatusFieldBuilder().getBuilder(); + } + /** + *
+       * git_status details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be
+       * present. Its absence does not indicate the absence of a working copy.
+       * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder getGitStatusOrBuilder() { + if (gitStatusBuilder_ != null) { + return gitStatusBuilder_.getMessageOrBuilder(); + } else { + return gitStatus_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance() : gitStatus_; + } + } + /** + *
+       * git_status details the Git working copy status of the workspace.
+       * Note: this is a best-effort field and more often than not will not be
+       * present. Its absence does not indicate the absence of a working copy.
+       * 
+ * + * .gitpod.v1.WorkspaceGitStatus git_status = 6 [json_name = "gitStatus"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder> + getGitStatusFieldBuilder() { + if (gitStatusBuilder_ == null) { + gitStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder>( + getGitStatus(), + getParentForChildren(), + isClean()); + gitStatus_ = null; + } + return gitStatusBuilder_; + } + + private java.lang.Object instanceId_ = ""; + /** + *
+       * instance_id is the ID of the workspace instance - do not use, interpret or
+       * rely on this field unless you know what you're doing.
+       * 
+ * + * string instance_id = 7 [json_name = "instanceId", deprecated = true]; + * @deprecated gitpod.v1.WorkspaceStatus.instance_id is deprecated. + * See gitpod/v1/workspace.proto;l=466 + * @return The instanceId. + */ + @java.lang.Deprecated public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * instance_id is the ID of the workspace instance - do not use, interpret or
+       * rely on this field unless you know what you're doing.
+       * 
+ * + * string instance_id = 7 [json_name = "instanceId", deprecated = true]; + * @deprecated gitpod.v1.WorkspaceStatus.instance_id is deprecated. + * See gitpod/v1/workspace.proto;l=466 + * @return The bytes for instanceId. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * instance_id is the ID of the workspace instance - do not use, interpret or
+       * rely on this field unless you know what you're doing.
+       * 
+ * + * string instance_id = 7 [json_name = "instanceId", deprecated = true]; + * @deprecated gitpod.v1.WorkspaceStatus.instance_id is deprecated. + * See gitpod/v1/workspace.proto;l=466 + * @param value The instanceId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + instanceId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * instance_id is the ID of the workspace instance - do not use, interpret or
+       * rely on this field unless you know what you're doing.
+       * 
+ * + * string instance_id = 7 [json_name = "instanceId", deprecated = true]; + * @deprecated gitpod.v1.WorkspaceStatus.instance_id is deprecated. + * See gitpod/v1/workspace.proto;l=466 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearInstanceId() { + instanceId_ = getDefaultInstance().getInstanceId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+       * instance_id is the ID of the workspace instance - do not use, interpret or
+       * rely on this field unless you know what you're doing.
+       * 
+ * + * string instance_id = 7 [json_name = "instanceId", deprecated = true]; + * @deprecated gitpod.v1.WorkspaceStatus.instance_id is deprecated. + * See gitpod/v1/workspace.proto;l=466 + * @param value The bytes for instanceId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + instanceId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceStatus) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceStatus) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspacePortOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspacePort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * port number
+     * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return The port. + */ + long getPort(); + + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + int getAdmissionValue(); + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The admission. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission(); + + /** + *
+     * url that can be used to access the port
+     * 
+ * + * string url = 3 [json_name = "url"]; + * @return The url. + */ + java.lang.String getUrl(); + /** + *
+     * url that can be used to access the port
+     * 
+ * + * string url = 3 [json_name = "url"]; + * @return The bytes for url. + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + int getProtocolValue(); + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The protocol. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol getProtocol(); + } + /** + * Protobuf type {@code gitpod.v1.WorkspacePort} + */ + public static final class WorkspacePort extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspacePort) + WorkspacePortOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspacePort.class.getName()); + } + // Use WorkspacePort.newBuilder() to construct. + private WorkspacePort(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspacePort() { + admission_ = 0; + url_ = ""; + protocol_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder.class); + } + + /** + *
+     * Protocol defines the backend protocol of port
+     * 
+ * + * Protobuf enum {@code gitpod.v1.WorkspacePort.Protocol} + */ + public enum Protocol + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PROTOCOL_UNSPECIFIED = 0; + */ + PROTOCOL_UNSPECIFIED(0), + /** + *
+       * Http means the port backend is http
+       * 
+ * + * PROTOCOL_HTTP = 1; + */ + PROTOCOL_HTTP(1), + /** + *
+       * Https means the port backend is https
+       * 
+ * + * PROTOCOL_HTTPS = 2; + */ + PROTOCOL_HTTPS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Protocol.class.getName()); + } + /** + * PROTOCOL_UNSPECIFIED = 0; + */ + public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; + /** + *
+       * Http means the port backend is http
+       * 
+ * + * PROTOCOL_HTTP = 1; + */ + public static final int PROTOCOL_HTTP_VALUE = 1; + /** + *
+       * Https means the port backend is https
+       * 
+ * + * PROTOCOL_HTTPS = 2; + */ + public static final int PROTOCOL_HTTPS_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Protocol valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Protocol forNumber(int value) { + switch (value) { + case 0: return PROTOCOL_UNSPECIFIED; + case 1: return PROTOCOL_HTTP; + case 2: return PROTOCOL_HTTPS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Protocol> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Protocol findValueByNumber(int number) { + return Protocol.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.getDescriptor().getEnumTypes().get(0); + } + + private static final Protocol[] VALUES = values(); + + public static Protocol valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Protocol(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.WorkspacePort.Protocol) + } + + public static final int PORT_FIELD_NUMBER = 1; + private long port_ = 0L; + /** + *
+     * port number
+     * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return The port. + */ + @java.lang.Override + public long getPort() { + return port_; + } + + public static final int ADMISSION_FIELD_NUMBER = 2; + private int admission_ = 0; + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+     * policy of this port
+     * 
+ * + * .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel result = io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.UNRECOGNIZED : result; + } + + public static final int URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + *
+     * url that can be used to access the port
+     * 
+ * + * string url = 3 [json_name = "url"]; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + *
+     * url that can be used to access the port
+     * 
+ * + * string url = 3 [json_name = "url"]; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOCOL_FIELD_NUMBER = 4; + private int protocol_ = 0; + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override public int getProtocolValue() { + return protocol_; + } + /** + *
+     * backend protocol of this port
+     * 
+ * + * .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The protocol. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol getProtocol() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.forNumber(protocol_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (port_ != 0L) { + output.writeUInt64(1, port_); + } + if (admission_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.ADMISSION_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(2, admission_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, url_); + } + if (protocol_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { + output.writeEnum(4, protocol_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (port_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, port_); + } + if (admission_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.ADMISSION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, admission_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, url_); + } + if (protocol_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, protocol_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort) obj; + + if (getPort() + != other.getPort()) return false; + if (admission_ != other.admission_) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (protocol_ != other.protocol_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPort()); + hash = (37 * hash) + ADMISSION_FIELD_NUMBER; + hash = (53 * hash) + admission_; + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + protocol_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WorkspacePort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspacePort) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + port_ = 0L; + admission_ = 0; + url_ = ""; + protocol_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePort_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.admission_ = admission_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.protocol_ = protocol_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.getDefaultInstance()) return this; + if (other.getPort() != 0L) { + setPort(other.getPort()); + } + if (other.admission_ != 0) { + setAdmissionValue(other.getAdmissionValue()); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.protocol_ != 0) { + setProtocolValue(other.getProtocolValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + port_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + admission_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + protocol_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long port_ ; + /** + *
+       * port number
+       * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return The port. + */ + @java.lang.Override + public long getPort() { + return port_; + } + /** + *
+       * port number
+       * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(long value) { + + port_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * port number
+       * 
+ * + * uint64 port = 1 [json_name = "port"]; + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000001); + port_ = 0L; + onChanged(); + return this; + } + + private int admission_ = 0; + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @param value The enum numeric value on the wire for admission to set. + * @return This builder for chaining. + */ + public Builder setAdmissionValue(int value) { + admission_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel result = io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.UNRECOGNIZED : result; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @param value The admission to set. + * @return This builder for chaining. + */ + public Builder setAdmission(io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + admission_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * policy of this port
+       * 
+ * + * .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return This builder for chaining. + */ + public Builder clearAdmission() { + bitField0_ = (bitField0_ & ~0x00000002); + admission_ = 0; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + url_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * url that can be used to access the port
+       * 
+ * + * string url = 3 [json_name = "url"]; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int protocol_ = 0; + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override public int getProtocolValue() { + return protocol_; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @param value The enum numeric value on the wire for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolValue(int value) { + protocol_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return The protocol. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol getProtocol() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.forNumber(protocol_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol.UNRECOGNIZED : result; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + protocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * backend protocol of this port
+       * 
+ * + * .gitpod.v1.WorkspacePort.Protocol protocol = 4 [json_name = "protocol"]; + * @return This builder for chaining. + */ + public Builder clearProtocol() { + bitField0_ = (bitField0_ & ~0x00000008); + protocol_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspacePort) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspacePort) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspacePort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceGitStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceGitStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * clone_url is the repository url as you would pass it to "git clone".
+     * Only HTTPS clone URLs are supported.
+     * 
+ * + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + java.lang.String getCloneUrl(); + /** + *
+     * clone_url is the repository url as you would pass it to "git clone".
+     * Only HTTPS clone URLs are supported.
+     * 
+ * + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + com.google.protobuf.ByteString + getCloneUrlBytes(); + + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 2 [json_name = "branch"]; + * @return The branch. + */ + java.lang.String getBranch(); + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 2 [json_name = "branch"]; + * @return The bytes for branch. + */ + com.google.protobuf.ByteString + getBranchBytes(); + + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 3 [json_name = "latestCommit"]; + * @return The latestCommit. + */ + java.lang.String getLatestCommit(); + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 3 [json_name = "latestCommit"]; + * @return The bytes for latestCommit. + */ + com.google.protobuf.ByteString + getLatestCommitBytes(); + + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @return A list containing the uncommitedFiles. + */ + java.util.List + getUncommitedFilesList(); + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @return The count of uncommitedFiles. + */ + int getUncommitedFilesCount(); + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param index The index of the element to return. + * @return The uncommitedFiles at the given index. + */ + java.lang.String getUncommitedFiles(int index); + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the uncommitedFiles at the given index. + */ + com.google.protobuf.ByteString + getUncommitedFilesBytes(int index); + + /** + *
+     * the total number of uncommited files
+     * 
+ * + * int32 total_uncommited_files = 5 [json_name = "totalUncommitedFiles"]; + * @return The totalUncommitedFiles. + */ + int getTotalUncommitedFiles(); + + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @return A list containing the untrackedFiles. + */ + java.util.List + getUntrackedFilesList(); + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @return The count of untrackedFiles. + */ + int getUntrackedFilesCount(); + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param index The index of the element to return. + * @return The untrackedFiles at the given index. + */ + java.lang.String getUntrackedFiles(int index); + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the untrackedFiles at the given index. + */ + com.google.protobuf.ByteString + getUntrackedFilesBytes(int index); + + /** + *
+     * the total number of untracked files
+     * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return The totalUntrackedFiles. + */ + int getTotalUntrackedFiles(); + + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @return A list containing the unpushedCommits. + */ + java.util.List + getUnpushedCommitsList(); + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @return The count of unpushedCommits. + */ + int getUnpushedCommitsCount(); + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param index The index of the element to return. + * @return The unpushedCommits at the given index. + */ + java.lang.String getUnpushedCommits(int index); + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param index The index of the value to return. + * @return The bytes of the unpushedCommits at the given index. + */ + com.google.protobuf.ByteString + getUnpushedCommitsBytes(int index); + + /** + *
+     * the total number of unpushed changes
+     * 
+ * + * int32 total_unpushed_commits = 9 [json_name = "totalUnpushedCommits"]; + * @return The totalUnpushedCommits. + */ + int getTotalUnpushedCommits(); + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceGitStatus} + */ + public static final class WorkspaceGitStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceGitStatus) + WorkspaceGitStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceGitStatus.class.getName()); + } + // Use WorkspaceGitStatus.newBuilder() to construct. + private WorkspaceGitStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceGitStatus() { + cloneUrl_ = ""; + branch_ = ""; + latestCommit_ = ""; + uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceGitStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceGitStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder.class); + } + + public static final int CLONE_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object cloneUrl_ = ""; + /** + *
+     * clone_url is the repository url as you would pass it to "git clone".
+     * Only HTTPS clone URLs are supported.
+     * 
+ * + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + @java.lang.Override + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } + } + /** + *
+     * clone_url is the repository url as you would pass it to "git clone".
+     * Only HTTPS clone URLs are supported.
+     * 
+ * + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object branch_ = ""; + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 2 [json_name = "branch"]; + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } + } + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 2 [json_name = "branch"]; + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATEST_COMMIT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object latestCommit_ = ""; + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 3 [json_name = "latestCommit"]; + * @return The latestCommit. + */ + @java.lang.Override + public java.lang.String getLatestCommit() { + java.lang.Object ref = latestCommit_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestCommit_ = s; + return s; + } + } + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 3 [json_name = "latestCommit"]; + * @return The bytes for latestCommit. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLatestCommitBytes() { + java.lang.Object ref = latestCommit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + latestCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNCOMMITED_FILES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @return A list containing the uncommitedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUncommitedFilesList() { + return uncommitedFiles_; + } + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @return The count of uncommitedFiles. + */ + public int getUncommitedFilesCount() { + return uncommitedFiles_.size(); + } + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param index The index of the element to return. + * @return The uncommitedFiles at the given index. + */ + public java.lang.String getUncommitedFiles(int index) { + return uncommitedFiles_.get(index); + } + /** + *
+     * uncommited_files is an array of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the uncommitedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUncommitedFilesBytes(int index) { + return uncommitedFiles_.getByteString(index); + } + + public static final int TOTAL_UNCOMMITED_FILES_FIELD_NUMBER = 5; + private int totalUncommitedFiles_ = 0; + /** + *
+     * the total number of uncommited files
+     * 
+ * + * int32 total_uncommited_files = 5 [json_name = "totalUncommitedFiles"]; + * @return The totalUncommitedFiles. + */ + @java.lang.Override + public int getTotalUncommitedFiles() { + return totalUncommitedFiles_; + } + + public static final int UNTRACKED_FILES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @return A list containing the untrackedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUntrackedFilesList() { + return untrackedFiles_; + } + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @return The count of untrackedFiles. + */ + public int getUntrackedFilesCount() { + return untrackedFiles_.size(); + } + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param index The index of the element to return. + * @return The untrackedFiles at the given index. + */ + public java.lang.String getUntrackedFiles(int index) { + return untrackedFiles_.get(index); + } + /** + *
+     * untracked_files is an array of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the untrackedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUntrackedFilesBytes(int index) { + return untrackedFiles_.getByteString(index); + } + + public static final int TOTAL_UNTRACKED_FILES_FIELD_NUMBER = 7; + private int totalUntrackedFiles_ = 0; + /** + *
+     * the total number of untracked files
+     * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return The totalUntrackedFiles. + */ + @java.lang.Override + public int getTotalUntrackedFiles() { + return totalUntrackedFiles_; + } + + public static final int UNPUSHED_COMMITS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @return A list containing the unpushedCommits. + */ + public com.google.protobuf.ProtocolStringList + getUnpushedCommitsList() { + return unpushedCommits_; + } + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @return The count of unpushedCommits. + */ + public int getUnpushedCommitsCount() { + return unpushedCommits_.size(); + } + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param index The index of the element to return. + * @return The unpushedCommits at the given index. + */ + public java.lang.String getUnpushedCommits(int index) { + return unpushedCommits_.get(index); + } + /** + *
+     * unpushed_commits is an array of unpushed changes in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param index The index of the value to return. + * @return The bytes of the unpushedCommits at the given index. + */ + public com.google.protobuf.ByteString + getUnpushedCommitsBytes(int index) { + return unpushedCommits_.getByteString(index); + } + + public static final int TOTAL_UNPUSHED_COMMITS_FIELD_NUMBER = 9; + private int totalUnpushedCommits_ = 0; + /** + *
+     * the total number of unpushed changes
+     * 
+ * + * int32 total_unpushed_commits = 9 [json_name = "totalUnpushedCommits"]; + * @return The totalUnpushedCommits. + */ + @java.lang.Override + public int getTotalUnpushedCommits() { + return totalUnpushedCommits_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cloneUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestCommit_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, latestCommit_); + } + for (int i = 0; i < uncommitedFiles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, uncommitedFiles_.getRaw(i)); + } + if (totalUncommitedFiles_ != 0) { + output.writeInt32(5, totalUncommitedFiles_); + } + for (int i = 0; i < untrackedFiles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, untrackedFiles_.getRaw(i)); + } + if (totalUntrackedFiles_ != 0) { + output.writeInt32(7, totalUntrackedFiles_); + } + for (int i = 0; i < unpushedCommits_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, unpushedCommits_.getRaw(i)); + } + if (totalUnpushedCommits_ != 0) { + output.writeInt32(9, totalUnpushedCommits_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cloneUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestCommit_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, latestCommit_); + } + { + int dataSize = 0; + for (int i = 0; i < uncommitedFiles_.size(); i++) { + dataSize += computeStringSizeNoTag(uncommitedFiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getUncommitedFilesList().size(); + } + if (totalUncommitedFiles_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, totalUncommitedFiles_); + } + { + int dataSize = 0; + for (int i = 0; i < untrackedFiles_.size(); i++) { + dataSize += computeStringSizeNoTag(untrackedFiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getUntrackedFilesList().size(); + } + if (totalUntrackedFiles_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, totalUntrackedFiles_); + } + { + int dataSize = 0; + for (int i = 0; i < unpushedCommits_.size(); i++) { + dataSize += computeStringSizeNoTag(unpushedCommits_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnpushedCommitsList().size(); + } + if (totalUnpushedCommits_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, totalUnpushedCommits_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus) obj; + + if (!getCloneUrl() + .equals(other.getCloneUrl())) return false; + if (!getBranch() + .equals(other.getBranch())) return false; + if (!getLatestCommit() + .equals(other.getLatestCommit())) return false; + if (!getUncommitedFilesList() + .equals(other.getUncommitedFilesList())) return false; + if (getTotalUncommitedFiles() + != other.getTotalUncommitedFiles()) return false; + if (!getUntrackedFilesList() + .equals(other.getUntrackedFilesList())) return false; + if (getTotalUntrackedFiles() + != other.getTotalUntrackedFiles()) return false; + if (!getUnpushedCommitsList() + .equals(other.getUnpushedCommitsList())) return false; + if (getTotalUnpushedCommits() + != other.getTotalUnpushedCommits()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLONE_URL_FIELD_NUMBER; + hash = (53 * hash) + getCloneUrl().hashCode(); + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + hash = (37 * hash) + LATEST_COMMIT_FIELD_NUMBER; + hash = (53 * hash) + getLatestCommit().hashCode(); + if (getUncommitedFilesCount() > 0) { + hash = (37 * hash) + UNCOMMITED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getUncommitedFilesList().hashCode(); + } + hash = (37 * hash) + TOTAL_UNCOMMITED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getTotalUncommitedFiles(); + if (getUntrackedFilesCount() > 0) { + hash = (37 * hash) + UNTRACKED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getUntrackedFilesList().hashCode(); + } + hash = (37 * hash) + TOTAL_UNTRACKED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getTotalUntrackedFiles(); + if (getUnpushedCommitsCount() > 0) { + hash = (37 * hash) + UNPUSHED_COMMITS_FIELD_NUMBER; + hash = (53 * hash) + getUnpushedCommitsList().hashCode(); + } + hash = (37 * hash) + TOTAL_UNPUSHED_COMMITS_FIELD_NUMBER; + hash = (53 * hash) + getTotalUnpushedCommits(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceGitStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceGitStatus) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceGitStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceGitStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloneUrl_ = ""; + branch_ = ""; + latestCommit_ = ""; + uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + totalUncommitedFiles_ = 0; + untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + totalUntrackedFiles_ = 0; + unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + totalUnpushedCommits_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceGitStatus_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloneUrl_ = cloneUrl_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branch_ = branch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.latestCommit_ = latestCommit_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + uncommitedFiles_.makeImmutable(); + result.uncommitedFiles_ = uncommitedFiles_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.totalUncommitedFiles_ = totalUncommitedFiles_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + untrackedFiles_.makeImmutable(); + result.untrackedFiles_ = untrackedFiles_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.totalUntrackedFiles_ = totalUntrackedFiles_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + unpushedCommits_.makeImmutable(); + result.unpushedCommits_ = unpushedCommits_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.totalUnpushedCommits_ = totalUnpushedCommits_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance()) return this; + if (!other.getCloneUrl().isEmpty()) { + cloneUrl_ = other.cloneUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getLatestCommit().isEmpty()) { + latestCommit_ = other.latestCommit_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.uncommitedFiles_.isEmpty()) { + if (uncommitedFiles_.isEmpty()) { + uncommitedFiles_ = other.uncommitedFiles_; + bitField0_ |= 0x00000008; + } else { + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.addAll(other.uncommitedFiles_); + } + onChanged(); + } + if (other.getTotalUncommitedFiles() != 0) { + setTotalUncommitedFiles(other.getTotalUncommitedFiles()); + } + if (!other.untrackedFiles_.isEmpty()) { + if (untrackedFiles_.isEmpty()) { + untrackedFiles_ = other.untrackedFiles_; + bitField0_ |= 0x00000020; + } else { + ensureUntrackedFilesIsMutable(); + untrackedFiles_.addAll(other.untrackedFiles_); + } + onChanged(); + } + if (other.getTotalUntrackedFiles() != 0) { + setTotalUntrackedFiles(other.getTotalUntrackedFiles()); + } + if (!other.unpushedCommits_.isEmpty()) { + if (unpushedCommits_.isEmpty()) { + unpushedCommits_ = other.unpushedCommits_; + bitField0_ |= 0x00000080; + } else { + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.addAll(other.unpushedCommits_); + } + onChanged(); + } + if (other.getTotalUnpushedCommits() != 0) { + setTotalUnpushedCommits(other.getTotalUnpushedCommits()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cloneUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + latestCommit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.add(s); + break; + } // case 34 + case 40: { + totalUncommitedFiles_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUntrackedFilesIsMutable(); + untrackedFiles_.add(s); + break; + } // case 50 + case 56: { + totalUntrackedFiles_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.add(s); + break; + } // case 66 + case 72: { + totalUnpushedCommits_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object cloneUrl_ = ""; + /** + *
+       * clone_url is the repository url as you would pass it to "git clone".
+       * Only HTTPS clone URLs are supported.
+       * 
+ * + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The cloneUrl. + */ + public java.lang.String getCloneUrl() { + java.lang.Object ref = cloneUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * clone_url is the repository url as you would pass it to "git clone".
+       * Only HTTPS clone URLs are supported.
+       * 
+ * + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return The bytes for cloneUrl. + */ + public com.google.protobuf.ByteString + getCloneUrlBytes() { + java.lang.Object ref = cloneUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * clone_url is the repository url as you would pass it to "git clone".
+       * Only HTTPS clone URLs are supported.
+       * 
+ * + * string clone_url = 1 [json_name = "cloneUrl"]; + * @param value The cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cloneUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * clone_url is the repository url as you would pass it to "git clone".
+       * Only HTTPS clone URLs are supported.
+       * 
+ * + * string clone_url = 1 [json_name = "cloneUrl"]; + * @return This builder for chaining. + */ + public Builder clearCloneUrl() { + cloneUrl_ = getDefaultInstance().getCloneUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * clone_url is the repository url as you would pass it to "git clone".
+       * Only HTTPS clone URLs are supported.
+       * 
+ * + * string clone_url = 1 [json_name = "cloneUrl"]; + * @param value The bytes for cloneUrl to set. + * @return This builder for chaining. + */ + public Builder setCloneUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cloneUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object branch_ = ""; + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 2 [json_name = "branch"]; + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 2 [json_name = "branch"]; + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 2 [json_name = "branch"]; + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 2 [json_name = "branch"]; + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 2 [json_name = "branch"]; + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object latestCommit_ = ""; + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 3 [json_name = "latestCommit"]; + * @return The latestCommit. + */ + public java.lang.String getLatestCommit() { + java.lang.Object ref = latestCommit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestCommit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 3 [json_name = "latestCommit"]; + * @return The bytes for latestCommit. + */ + public com.google.protobuf.ByteString + getLatestCommitBytes() { + java.lang.Object ref = latestCommit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + latestCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 3 [json_name = "latestCommit"]; + * @param value The latestCommit to set. + * @return This builder for chaining. + */ + public Builder setLatestCommit( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + latestCommit_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 3 [json_name = "latestCommit"]; + * @return This builder for chaining. + */ + public Builder clearLatestCommit() { + latestCommit_ = getDefaultInstance().getLatestCommit(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 3 [json_name = "latestCommit"]; + * @param value The bytes for latestCommit to set. + * @return This builder for chaining. + */ + public Builder setLatestCommitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + latestCommit_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUncommitedFilesIsMutable() { + if (!uncommitedFiles_.isModifiable()) { + uncommitedFiles_ = new com.google.protobuf.LazyStringArrayList(uncommitedFiles_); + } + bitField0_ |= 0x00000008; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @return A list containing the uncommitedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUncommitedFilesList() { + uncommitedFiles_.makeImmutable(); + return uncommitedFiles_; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @return The count of uncommitedFiles. + */ + public int getUncommitedFilesCount() { + return uncommitedFiles_.size(); + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param index The index of the element to return. + * @return The uncommitedFiles at the given index. + */ + public java.lang.String getUncommitedFiles(int index) { + return uncommitedFiles_.get(index); + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the uncommitedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUncommitedFilesBytes(int index) { + return uncommitedFiles_.getByteString(index); + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param index The index to set the value at. + * @param value The uncommitedFiles to set. + * @return This builder for chaining. + */ + public Builder setUncommitedFiles( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param value The uncommitedFiles to add. + * @return This builder for chaining. + */ + public Builder addUncommitedFiles( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param values The uncommitedFiles to add. + * @return This builder for chaining. + */ + public Builder addAllUncommitedFiles( + java.lang.Iterable values) { + ensureUncommitedFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uncommitedFiles_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @return This builder for chaining. + */ + public Builder clearUncommitedFiles() { + uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is an array of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 4 [json_name = "uncommitedFiles"]; + * @param value The bytes of the uncommitedFiles to add. + * @return This builder for chaining. + */ + public Builder addUncommitedFilesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int totalUncommitedFiles_ ; + /** + *
+       * the total number of uncommited files
+       * 
+ * + * int32 total_uncommited_files = 5 [json_name = "totalUncommitedFiles"]; + * @return The totalUncommitedFiles. + */ + @java.lang.Override + public int getTotalUncommitedFiles() { + return totalUncommitedFiles_; + } + /** + *
+       * the total number of uncommited files
+       * 
+ * + * int32 total_uncommited_files = 5 [json_name = "totalUncommitedFiles"]; + * @param value The totalUncommitedFiles to set. + * @return This builder for chaining. + */ + public Builder setTotalUncommitedFiles(int value) { + + totalUncommitedFiles_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * the total number of uncommited files
+       * 
+ * + * int32 total_uncommited_files = 5 [json_name = "totalUncommitedFiles"]; + * @return This builder for chaining. + */ + public Builder clearTotalUncommitedFiles() { + bitField0_ = (bitField0_ & ~0x00000010); + totalUncommitedFiles_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUntrackedFilesIsMutable() { + if (!untrackedFiles_.isModifiable()) { + untrackedFiles_ = new com.google.protobuf.LazyStringArrayList(untrackedFiles_); + } + bitField0_ |= 0x00000020; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @return A list containing the untrackedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUntrackedFilesList() { + untrackedFiles_.makeImmutable(); + return untrackedFiles_; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @return The count of untrackedFiles. + */ + public int getUntrackedFilesCount() { + return untrackedFiles_.size(); + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param index The index of the element to return. + * @return The untrackedFiles at the given index. + */ + public java.lang.String getUntrackedFiles(int index) { + return untrackedFiles_.get(index); + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the untrackedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUntrackedFilesBytes(int index) { + return untrackedFiles_.getByteString(index); + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param index The index to set the value at. + * @param value The untrackedFiles to set. + * @return This builder for chaining. + */ + public Builder setUntrackedFiles( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUntrackedFilesIsMutable(); + untrackedFiles_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param value The untrackedFiles to add. + * @return This builder for chaining. + */ + public Builder addUntrackedFiles( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUntrackedFilesIsMutable(); + untrackedFiles_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param values The untrackedFiles to add. + * @return This builder for chaining. + */ + public Builder addAllUntrackedFiles( + java.lang.Iterable values) { + ensureUntrackedFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, untrackedFiles_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @return This builder for chaining. + */ + public Builder clearUntrackedFiles() { + untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; + onChanged(); + return this; + } + /** + *
+       * untracked_files is an array of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 6 [json_name = "untrackedFiles"]; + * @param value The bytes of the untrackedFiles to add. + * @return This builder for chaining. + */ + public Builder addUntrackedFilesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUntrackedFilesIsMutable(); + untrackedFiles_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int totalUntrackedFiles_ ; + /** + *
+       * the total number of untracked files
+       * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return The totalUntrackedFiles. + */ + @java.lang.Override + public int getTotalUntrackedFiles() { + return totalUntrackedFiles_; + } + /** + *
+       * the total number of untracked files
+       * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @param value The totalUntrackedFiles to set. + * @return This builder for chaining. + */ + public Builder setTotalUntrackedFiles(int value) { + + totalUntrackedFiles_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * the total number of untracked files
+       * 
+ * + * int32 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return This builder for chaining. + */ + public Builder clearTotalUntrackedFiles() { + bitField0_ = (bitField0_ & ~0x00000040); + totalUntrackedFiles_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnpushedCommitsIsMutable() { + if (!unpushedCommits_.isModifiable()) { + unpushedCommits_ = new com.google.protobuf.LazyStringArrayList(unpushedCommits_); + } + bitField0_ |= 0x00000080; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @return A list containing the unpushedCommits. + */ + public com.google.protobuf.ProtocolStringList + getUnpushedCommitsList() { + unpushedCommits_.makeImmutable(); + return unpushedCommits_; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @return The count of unpushedCommits. + */ + public int getUnpushedCommitsCount() { + return unpushedCommits_.size(); + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param index The index of the element to return. + * @return The unpushedCommits at the given index. + */ + public java.lang.String getUnpushedCommits(int index) { + return unpushedCommits_.get(index); + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param index The index of the value to return. + * @return The bytes of the unpushedCommits at the given index. + */ + public com.google.protobuf.ByteString + getUnpushedCommitsBytes(int index) { + return unpushedCommits_.getByteString(index); + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param index The index to set the value at. + * @param value The unpushedCommits to set. + * @return This builder for chaining. + */ + public Builder setUnpushedCommits( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param value The unpushedCommits to add. + * @return This builder for chaining. + */ + public Builder addUnpushedCommits( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param values The unpushedCommits to add. + * @return This builder for chaining. + */ + public Builder addAllUnpushedCommits( + java.lang.Iterable values) { + ensureUnpushedCommitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unpushedCommits_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @return This builder for chaining. + */ + public Builder clearUnpushedCommits() { + unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is an array of unpushed changes in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string unpushed_commits = 8 [json_name = "unpushedCommits"]; + * @param value The bytes of the unpushedCommits to add. + * @return This builder for chaining. + */ + public Builder addUnpushedCommitsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int totalUnpushedCommits_ ; + /** + *
+       * the total number of unpushed changes
+       * 
+ * + * int32 total_unpushed_commits = 9 [json_name = "totalUnpushedCommits"]; + * @return The totalUnpushedCommits. + */ + @java.lang.Override + public int getTotalUnpushedCommits() { + return totalUnpushedCommits_; + } + /** + *
+       * the total number of unpushed changes
+       * 
+ * + * int32 total_unpushed_commits = 9 [json_name = "totalUnpushedCommits"]; + * @param value The totalUnpushedCommits to set. + * @return This builder for chaining. + */ + public Builder setTotalUnpushedCommits(int value) { + + totalUnpushedCommits_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * the total number of unpushed changes
+       * 
+ * + * int32 total_unpushed_commits = 9 [json_name = "totalUnpushedCommits"]; + * @return This builder for chaining. + */ + public Builder clearTotalUnpushedCommits() { + bitField0_ = (bitField0_ & ~0x00000100); + totalUnpushedCommits_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceGitStatus) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceGitStatus) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceGitStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspacePhaseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspacePhase) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.WorkspacePhase.Phase name = 1 [json_name = "name"]; + * @return The enum numeric value on the wire for name. + */ + int getNameValue(); + /** + * .gitpod.v1.WorkspacePhase.Phase name = 1 [json_name = "name"]; + * @return The name. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase getName(); + + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + * @return Whether the lastTransitionTime field is set. + */ + boolean hasLastTransitionTime(); + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + * @return The lastTransitionTime. + */ + com.google.protobuf.Timestamp getLastTransitionTime(); + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + */ + com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.WorkspacePhase} + */ + public static final class WorkspacePhase extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspacePhase) + WorkspacePhaseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspacePhase.class.getName()); + } + // Use WorkspacePhase.newBuilder() to construct. + private WorkspacePhase(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspacePhase() { + name_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePhase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePhase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Builder.class); + } + + /** + * Protobuf enum {@code gitpod.v1.WorkspacePhase.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Unknown indicates an issue within the workspace manager in that it cannot
+       * determine the actual phase of a workspace. This phase is usually
+       * accompanied by an error.
+       * 
+ * + * PHASE_UNSPECIFIED = 0; + */ + PHASE_UNSPECIFIED(0), + /** + *
+       * Preparing means that we haven't actually started the workspace instance
+       * just yet, but rather are still preparing for launch.
+       * 
+ * + * PHASE_PREPARING = 1; + */ + PHASE_PREPARING(1), + /** + *
+       * ImageBuild indicates that there's an image build running for this
+       * workspace.
+       * 
+ * + * PHASE_IMAGEBUILD = 2; + */ + PHASE_IMAGEBUILD(2), + /** + *
+       * Pending means the workspace does not yet consume resources in the
+       * cluster, but rather is looking for some space within the cluster. If for
+       * example the cluster needs to scale up to accomodate the workspace, the
+       * workspace will be in Pending state until that happened.
+       * 
+ * + * PHASE_PENDING = 3; + */ + PHASE_PENDING(3), + /** + *
+       * Creating means the workspace is currently being created. That includes
+       * downloading the images required to run the workspace over the network.
+       * The time spent in this phase varies widely and depends on the current
+       * network speed, image size and cache states.
+       * 
+ * + * PHASE_CREATING = 4; + */ + PHASE_CREATING(4), + /** + *
+       * Initializing is the phase in which the workspace is executing the
+       * appropriate workspace initializer (e.g. Git clone or backup download).
+       * After this phase one can expect the workspace to either be Running or
+       * Failed.
+       * 
+ * + * PHASE_INITIALIZING = 5; + */ + PHASE_INITIALIZING(5), + /** + *
+       * Running means the workspace is able to actively perform work, either by
+       * serving a user through Theia, or as a headless workspace.
+       * 
+ * + * PHASE_RUNNING = 6; + */ + PHASE_RUNNING(6), + /** + *
+       * Interrupted is an exceptional state where the container should be running
+       * but is temporarily unavailable. When in this state, we expect it to
+       * become running or stopping anytime soon.
+       * 
+ * + * PHASE_INTERRUPTED = 7; + */ + PHASE_INTERRUPTED(7), + /** + *
+       * Paused means the workspace is currently unavailable, akin to stopped,
+       * but faster to wake up.
+       * 
+ * + * PHASE_PAUSED = 8; + */ + PHASE_PAUSED(8), + /** + *
+       * Stopping means that the workspace is currently shutting down. It could go
+       * to stopped every moment.
+       * 
+ * + * PHASE_STOPPING = 9; + */ + PHASE_STOPPING(9), + /** + *
+       * Stopped means the workspace ended regularly because it was shut down.
+       * 
+ * + * PHASE_STOPPED = 10; + */ + PHASE_STOPPED(10), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Phase.class.getName()); + } + /** + *
+       * Unknown indicates an issue within the workspace manager in that it cannot
+       * determine the actual phase of a workspace. This phase is usually
+       * accompanied by an error.
+       * 
+ * + * PHASE_UNSPECIFIED = 0; + */ + public static final int PHASE_UNSPECIFIED_VALUE = 0; + /** + *
+       * Preparing means that we haven't actually started the workspace instance
+       * just yet, but rather are still preparing for launch.
+       * 
+ * + * PHASE_PREPARING = 1; + */ + public static final int PHASE_PREPARING_VALUE = 1; + /** + *
+       * ImageBuild indicates that there's an image build running for this
+       * workspace.
+       * 
+ * + * PHASE_IMAGEBUILD = 2; + */ + public static final int PHASE_IMAGEBUILD_VALUE = 2; + /** + *
+       * Pending means the workspace does not yet consume resources in the
+       * cluster, but rather is looking for some space within the cluster. If for
+       * example the cluster needs to scale up to accomodate the workspace, the
+       * workspace will be in Pending state until that happened.
+       * 
+ * + * PHASE_PENDING = 3; + */ + public static final int PHASE_PENDING_VALUE = 3; + /** + *
+       * Creating means the workspace is currently being created. That includes
+       * downloading the images required to run the workspace over the network.
+       * The time spent in this phase varies widely and depends on the current
+       * network speed, image size and cache states.
+       * 
+ * + * PHASE_CREATING = 4; + */ + public static final int PHASE_CREATING_VALUE = 4; + /** + *
+       * Initializing is the phase in which the workspace is executing the
+       * appropriate workspace initializer (e.g. Git clone or backup download).
+       * After this phase one can expect the workspace to either be Running or
+       * Failed.
+       * 
+ * + * PHASE_INITIALIZING = 5; + */ + public static final int PHASE_INITIALIZING_VALUE = 5; + /** + *
+       * Running means the workspace is able to actively perform work, either by
+       * serving a user through Theia, or as a headless workspace.
+       * 
+ * + * PHASE_RUNNING = 6; + */ + public static final int PHASE_RUNNING_VALUE = 6; + /** + *
+       * Interrupted is an exceptional state where the container should be running
+       * but is temporarily unavailable. When in this state, we expect it to
+       * become running or stopping anytime soon.
+       * 
+ * + * PHASE_INTERRUPTED = 7; + */ + public static final int PHASE_INTERRUPTED_VALUE = 7; + /** + *
+       * Paused means the workspace is currently unavailable, akin to stopped,
+       * but faster to wake up.
+       * 
+ * + * PHASE_PAUSED = 8; + */ + public static final int PHASE_PAUSED_VALUE = 8; + /** + *
+       * Stopping means that the workspace is currently shutting down. It could go
+       * to stopped every moment.
+       * 
+ * + * PHASE_STOPPING = 9; + */ + public static final int PHASE_STOPPING_VALUE = 9; + /** + *
+       * Stopped means the workspace ended regularly because it was shut down.
+       * 
+ * + * PHASE_STOPPED = 10; + */ + public static final int PHASE_STOPPED_VALUE = 10; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Phase forNumber(int value) { + switch (value) { + case 0: return PHASE_UNSPECIFIED; + case 1: return PHASE_PREPARING; + case 2: return PHASE_IMAGEBUILD; + case 3: return PHASE_PENDING; + case 4: return PHASE_CREATING; + case 5: return PHASE_INITIALIZING; + case 6: return PHASE_RUNNING; + case 7: return PHASE_INTERRUPTED; + case 8: return PHASE_PAUSED; + case 9: return PHASE_STOPPING; + case 10: return PHASE_STOPPED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.WorkspacePhase.Phase) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private int name_ = 0; + /** + * .gitpod.v1.WorkspacePhase.Phase name = 1 [json_name = "name"]; + * @return The enum numeric value on the wire for name. + */ + @java.lang.Override public int getNameValue() { + return name_; + } + /** + * .gitpod.v1.WorkspacePhase.Phase name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase getName() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase.forNumber(name_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase.UNRECOGNIZED : result; + } + + public static final int LAST_TRANSITION_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp lastTransitionTime_; + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + * @return Whether the lastTransitionTime field is set. + */ + @java.lang.Override + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + * @return The lastTransitionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastTransitionTime() { + return lastTransitionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { + return lastTransitionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (name_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase.PHASE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getLastTransitionTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (name_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase.PHASE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLastTransitionTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase) obj; + + if (name_ != other.name_) return false; + if (hasLastTransitionTime() != other.hasLastTransitionTime()) return false; + if (hasLastTransitionTime()) { + if (!getLastTransitionTime() + .equals(other.getLastTransitionTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + name_; + if (hasLastTransitionTime()) { + hash = (37 * hash) + LAST_TRANSITION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastTransitionTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WorkspacePhase} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspacePhase) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePhase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePhase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getLastTransitionTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = 0; + lastTransitionTime_ = null; + if (lastTransitionTimeBuilder_ != null) { + lastTransitionTimeBuilder_.dispose(); + lastTransitionTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspacePhase_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastTransitionTime_ = lastTransitionTimeBuilder_ == null + ? lastTransitionTime_ + : lastTransitionTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.getDefaultInstance()) return this; + if (other.name_ != 0) { + setNameValue(other.getNameValue()); + } + if (other.hasLastTransitionTime()) { + mergeLastTransitionTime(other.getLastTransitionTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + name_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getLastTransitionTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int name_ = 0; + /** + * .gitpod.v1.WorkspacePhase.Phase name = 1 [json_name = "name"]; + * @return The enum numeric value on the wire for name. + */ + @java.lang.Override public int getNameValue() { + return name_; + } + /** + * .gitpod.v1.WorkspacePhase.Phase name = 1 [json_name = "name"]; + * @param value The enum numeric value on the wire for name to set. + * @return This builder for chaining. + */ + public Builder setNameValue(int value) { + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspacePhase.Phase name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase getName() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase.forNumber(name_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase.UNRECOGNIZED : result; + } + /** + * .gitpod.v1.WorkspacePhase.Phase name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspacePhase.Phase name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastTransitionTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastTransitionTimeBuilder_; + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + * @return Whether the lastTransitionTime field is set. + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + * @return The lastTransitionTime. + */ + public com.google.protobuf.Timestamp getLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + return lastTransitionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; + } else { + return lastTransitionTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + */ + public Builder setLastTransitionTime(com.google.protobuf.Timestamp value) { + if (lastTransitionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastTransitionTime_ = value; + } else { + lastTransitionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + */ + public Builder setLastTransitionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = builderForValue.build(); + } else { + lastTransitionTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + */ + public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { + if (lastTransitionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + lastTransitionTime_ != null && + lastTransitionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastTransitionTimeBuilder().mergeFrom(value); + } else { + lastTransitionTime_ = value; + } + } else { + lastTransitionTimeBuilder_.mergeFrom(value); + } + if (lastTransitionTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + */ + public Builder clearLastTransitionTime() { + bitField0_ = (bitField0_ & ~0x00000002); + lastTransitionTime_ = null; + if (lastTransitionTimeBuilder_ != null) { + lastTransitionTimeBuilder_.dispose(); + lastTransitionTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + */ + public com.google.protobuf.Timestamp.Builder getLastTransitionTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLastTransitionTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { + if (lastTransitionTimeBuilder_ != null) { + return lastTransitionTimeBuilder_.getMessageOrBuilder(); + } else { + return lastTransitionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastTransitionTime_; + } + } + /** + * .google.protobuf.Timestamp last_transition_time = 2 [json_name = "lastTransitionTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getLastTransitionTimeFieldBuilder() { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastTransitionTime(), + getParentForChildren(), + isClean()); + lastTransitionTime_ = null; + } + return lastTransitionTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspacePhase) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspacePhase) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspacePhase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspacePhase getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceInitializerOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceInitializer) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + java.util.List + getSpecsList(); + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec getSpecs(int index); + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + int getSpecsCount(); + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + java.util.List + getSpecsOrBuilderList(); + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.SpecOrBuilder getSpecsOrBuilder( + int index); + } + /** + *
+   * WorkspaceInitializer specifies how a workspace is to be initialized
+   * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceInitializer} + */ + public static final class WorkspaceInitializer extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceInitializer) + WorkspaceInitializerOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceInitializer.class.getName()); + } + // Use WorkspaceInitializer.newBuilder() to construct. + private WorkspaceInitializer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceInitializer() { + specs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Builder.class); + } + + public interface SpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceInitializer.Spec) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + * @return Whether the git field is set. + */ + boolean hasGit(); + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + * @return The git. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer getGit(); + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializerOrBuilder getGitOrBuilder(); + + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + * @return The snapshot. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer getSnapshot(); + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializerOrBuilder getSnapshotOrBuilder(); + + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + boolean hasPrebuild(); + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + * @return The prebuild. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer getPrebuild(); + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializerOrBuilder getPrebuildOrBuilder(); + + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + * @return Whether the download field is set. + */ + boolean hasDownload(); + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + * @return The download. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer getDownload(); + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializerOrBuilder getDownloadOrBuilder(); + + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.SpecCase getSpecCase(); + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceInitializer.Spec} + */ + public static final class Spec extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceInitializer.Spec) + SpecOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + Spec.class.getName()); + } + // Use Spec.newBuilder() to construct. + private Spec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Spec() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_Spec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_Spec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder.class); + } + + private int specCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object spec_; + public enum SpecCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GIT(1), + SNAPSHOT(2), + PREBUILD(3), + DOWNLOAD(4), + SPEC_NOT_SET(0); + private final int value; + private SpecCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SpecCase valueOf(int value) { + return forNumber(value); + } + + public static SpecCase forNumber(int value) { + switch (value) { + case 1: return GIT; + case 2: return SNAPSHOT; + case 3: return PREBUILD; + case 4: return DOWNLOAD; + case 0: return SPEC_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SpecCase + getSpecCase() { + return SpecCase.forNumber( + specCase_); + } + + public static final int GIT_FIELD_NUMBER = 1; + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + * @return Whether the git field is set. + */ + @java.lang.Override + public boolean hasGit() { + return specCase_ == 1; + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + * @return The git. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer getGit() { + if (specCase_ == 1) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDefaultInstance(); + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializerOrBuilder getGitOrBuilder() { + if (specCase_ == 1) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDefaultInstance(); + } + + public static final int SNAPSHOT_FIELD_NUMBER = 2; + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return specCase_ == 2; + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + * @return The snapshot. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer getSnapshot() { + if (specCase_ == 2) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.getDefaultInstance(); + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializerOrBuilder getSnapshotOrBuilder() { + if (specCase_ == 2) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.getDefaultInstance(); + } + + public static final int PREBUILD_FIELD_NUMBER = 3; + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + @java.lang.Override + public boolean hasPrebuild() { + return specCase_ == 3; + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer getPrebuild() { + if (specCase_ == 3) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.getDefaultInstance(); + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializerOrBuilder getPrebuildOrBuilder() { + if (specCase_ == 3) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.getDefaultInstance(); + } + + public static final int DOWNLOAD_FIELD_NUMBER = 4; + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + * @return Whether the download field is set. + */ + @java.lang.Override + public boolean hasDownload() { + return specCase_ == 4; + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + * @return The download. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer getDownload() { + if (specCase_ == 4) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.getDefaultInstance(); + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializerOrBuilder getDownloadOrBuilder() { + if (specCase_ == 4) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (specCase_ == 1) { + output.writeMessage(1, (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) spec_); + } + if (specCase_ == 2) { + output.writeMessage(2, (io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) spec_); + } + if (specCase_ == 3) { + output.writeMessage(3, (io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) spec_); + } + if (specCase_ == 4) { + output.writeMessage(4, (io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) spec_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (specCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) spec_); + } + if (specCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) spec_); + } + if (specCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) spec_); + } + if (specCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) spec_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec) obj; + + if (!getSpecCase().equals(other.getSpecCase())) return false; + switch (specCase_) { + case 1: + if (!getGit() + .equals(other.getGit())) return false; + break; + case 2: + if (!getSnapshot() + .equals(other.getSnapshot())) return false; + break; + case 3: + if (!getPrebuild() + .equals(other.getPrebuild())) return false; + break; + case 4: + if (!getDownload() + .equals(other.getDownload())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (specCase_) { + case 1: + hash = (37 * hash) + GIT_FIELD_NUMBER; + hash = (53 * hash) + getGit().hashCode(); + break; + case 2: + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + break; + case 3: + hash = (37 * hash) + PREBUILD_FIELD_NUMBER; + hash = (53 * hash) + getPrebuild().hashCode(); + break; + case 4: + hash = (37 * hash) + DOWNLOAD_FIELD_NUMBER; + hash = (53 * hash) + getDownload().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceInitializer.Spec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceInitializer.Spec) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.SpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_Spec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_Spec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gitBuilder_ != null) { + gitBuilder_.clear(); + } + if (snapshotBuilder_ != null) { + snapshotBuilder_.clear(); + } + if (prebuildBuilder_ != null) { + prebuildBuilder_.clear(); + } + if (downloadBuilder_ != null) { + downloadBuilder_.clear(); + } + specCase_ = 0; + spec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_Spec_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec result) { + result.specCase_ = specCase_; + result.spec_ = this.spec_; + if (specCase_ == 1 && + gitBuilder_ != null) { + result.spec_ = gitBuilder_.build(); + } + if (specCase_ == 2 && + snapshotBuilder_ != null) { + result.spec_ = snapshotBuilder_.build(); + } + if (specCase_ == 3 && + prebuildBuilder_ != null) { + result.spec_ = prebuildBuilder_.build(); + } + if (specCase_ == 4 && + downloadBuilder_ != null) { + result.spec_ = downloadBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.getDefaultInstance()) return this; + switch (other.getSpecCase()) { + case GIT: { + mergeGit(other.getGit()); + break; + } + case SNAPSHOT: { + mergeSnapshot(other.getSnapshot()); + break; + } + case PREBUILD: { + mergePrebuild(other.getPrebuild()); + break; + } + case DOWNLOAD: { + mergeDownload(other.getDownload()); + break; + } + case SPEC_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getGitFieldBuilder().getBuilder(), + extensionRegistry); + specCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getSnapshotFieldBuilder().getBuilder(), + extensionRegistry); + specCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getPrebuildFieldBuilder().getBuilder(), + extensionRegistry); + specCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getDownloadFieldBuilder().getBuilder(), + extensionRegistry); + specCase_ = 4; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int specCase_ = 0; + private java.lang.Object spec_; + public SpecCase + getSpecCase() { + return SpecCase.forNumber( + specCase_); + } + + public Builder clearSpec() { + specCase_ = 0; + spec_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializerOrBuilder> gitBuilder_; + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + * @return Whether the git field is set. + */ + @java.lang.Override + public boolean hasGit() { + return specCase_ == 1; + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + * @return The git. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer getGit() { + if (gitBuilder_ == null) { + if (specCase_ == 1) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDefaultInstance(); + } else { + if (specCase_ == 1) { + return gitBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDefaultInstance(); + } + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + */ + public Builder setGit(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer value) { + if (gitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + gitBuilder_.setMessage(value); + } + specCase_ = 1; + return this; + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + */ + public Builder setGit( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.Builder builderForValue) { + if (gitBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + gitBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 1; + return this; + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + */ + public Builder mergeGit(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer value) { + if (gitBuilder_ == null) { + if (specCase_ == 1 && + spec_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDefaultInstance()) { + spec_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.newBuilder((io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) spec_) + .mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 1) { + gitBuilder_.mergeFrom(value); + } else { + gitBuilder_.setMessage(value); + } + } + specCase_ = 1; + return this; + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + */ + public Builder clearGit() { + if (gitBuilder_ == null) { + if (specCase_ == 1) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 1) { + specCase_ = 0; + spec_ = null; + } + gitBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.Builder getGitBuilder() { + return getGitFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializerOrBuilder getGitOrBuilder() { + if ((specCase_ == 1) && (gitBuilder_ != null)) { + return gitBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 1) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDefaultInstance(); + } + } + /** + * .gitpod.v1.GitInitializer git = 1 [json_name = "git"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializerOrBuilder> + getGitFieldBuilder() { + if (gitBuilder_ == null) { + if (!(specCase_ == 1)) { + spec_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDefaultInstance(); + } + gitBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializerOrBuilder>( + (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 1; + onChanged(); + return gitBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializerOrBuilder> snapshotBuilder_; + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return specCase_ == 2; + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + * @return The snapshot. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer getSnapshot() { + if (snapshotBuilder_ == null) { + if (specCase_ == 2) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.getDefaultInstance(); + } else { + if (specCase_ == 2) { + return snapshotBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.getDefaultInstance(); + } + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + */ + public Builder setSnapshot(io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + snapshotBuilder_.setMessage(value); + } + specCase_ = 2; + return this; + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + */ + public Builder setSnapshot( + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.Builder builderForValue) { + if (snapshotBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 2; + return this; + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + */ + public Builder mergeSnapshot(io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer value) { + if (snapshotBuilder_ == null) { + if (specCase_ == 2 && + spec_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.getDefaultInstance()) { + spec_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.newBuilder((io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) spec_) + .mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 2) { + snapshotBuilder_.mergeFrom(value); + } else { + snapshotBuilder_.setMessage(value); + } + } + specCase_ = 2; + return this; + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + */ + public Builder clearSnapshot() { + if (snapshotBuilder_ == null) { + if (specCase_ == 2) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 2) { + specCase_ = 0; + spec_ = null; + } + snapshotBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.Builder getSnapshotBuilder() { + return getSnapshotFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializerOrBuilder getSnapshotOrBuilder() { + if ((specCase_ == 2) && (snapshotBuilder_ != null)) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 2) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.getDefaultInstance(); + } + } + /** + * .gitpod.v1.SnapshotInitializer snapshot = 2 [json_name = "snapshot"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializerOrBuilder> + getSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + if (!(specCase_ == 2)) { + spec_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.getDefaultInstance(); + } + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializerOrBuilder>( + (io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 2; + onChanged(); + return snapshotBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializerOrBuilder> prebuildBuilder_; + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + @java.lang.Override + public boolean hasPrebuild() { + return specCase_ == 3; + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer getPrebuild() { + if (prebuildBuilder_ == null) { + if (specCase_ == 3) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.getDefaultInstance(); + } else { + if (specCase_ == 3) { + return prebuildBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.getDefaultInstance(); + } + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + */ + public Builder setPrebuild(io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer value) { + if (prebuildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + prebuildBuilder_.setMessage(value); + } + specCase_ = 3; + return this; + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + */ + public Builder setPrebuild( + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.Builder builderForValue) { + if (prebuildBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + prebuildBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 3; + return this; + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + */ + public Builder mergePrebuild(io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer value) { + if (prebuildBuilder_ == null) { + if (specCase_ == 3 && + spec_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.getDefaultInstance()) { + spec_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.newBuilder((io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) spec_) + .mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 3) { + prebuildBuilder_.mergeFrom(value); + } else { + prebuildBuilder_.setMessage(value); + } + } + specCase_ = 3; + return this; + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + */ + public Builder clearPrebuild() { + if (prebuildBuilder_ == null) { + if (specCase_ == 3) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 3) { + specCase_ = 0; + spec_ = null; + } + prebuildBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.Builder getPrebuildBuilder() { + return getPrebuildFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializerOrBuilder getPrebuildOrBuilder() { + if ((specCase_ == 3) && (prebuildBuilder_ != null)) { + return prebuildBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 3) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.getDefaultInstance(); + } + } + /** + * .gitpod.v1.PrebuildInitializer prebuild = 3 [json_name = "prebuild"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializerOrBuilder> + getPrebuildFieldBuilder() { + if (prebuildBuilder_ == null) { + if (!(specCase_ == 3)) { + spec_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.getDefaultInstance(); + } + prebuildBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializerOrBuilder>( + (io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 3; + onChanged(); + return prebuildBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializerOrBuilder> downloadBuilder_; + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + * @return Whether the download field is set. + */ + @java.lang.Override + public boolean hasDownload() { + return specCase_ == 4; + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + * @return The download. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer getDownload() { + if (downloadBuilder_ == null) { + if (specCase_ == 4) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.getDefaultInstance(); + } else { + if (specCase_ == 4) { + return downloadBuilder_.getMessage(); + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.getDefaultInstance(); + } + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + */ + public Builder setDownload(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer value) { + if (downloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + downloadBuilder_.setMessage(value); + } + specCase_ = 4; + return this; + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + */ + public Builder setDownload( + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.Builder builderForValue) { + if (downloadBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + downloadBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 4; + return this; + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + */ + public Builder mergeDownload(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer value) { + if (downloadBuilder_ == null) { + if (specCase_ == 4 && + spec_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.getDefaultInstance()) { + spec_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.newBuilder((io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) spec_) + .mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 4) { + downloadBuilder_.mergeFrom(value); + } else { + downloadBuilder_.setMessage(value); + } + } + specCase_ = 4; + return this; + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + */ + public Builder clearDownload() { + if (downloadBuilder_ == null) { + if (specCase_ == 4) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 4) { + specCase_ = 0; + spec_ = null; + } + downloadBuilder_.clear(); + } + return this; + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.Builder getDownloadBuilder() { + return getDownloadFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializerOrBuilder getDownloadOrBuilder() { + if ((specCase_ == 4) && (downloadBuilder_ != null)) { + return downloadBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 4) { + return (io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) spec_; + } + return io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.getDefaultInstance(); + } + } + /** + * .gitpod.v1.FileDownloadInitializer download = 4 [json_name = "download"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializerOrBuilder> + getDownloadFieldBuilder() { + if (downloadBuilder_ == null) { + if (!(specCase_ == 4)) { + spec_ = io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.getDefaultInstance(); + } + downloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializerOrBuilder>( + (io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 4; + onChanged(); + return downloadBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceInitializer.Spec) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceInitializer.Spec) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int SPECS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List specs_; + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + @java.lang.Override + public java.util.List getSpecsList() { + return specs_; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + @java.lang.Override + public java.util.List + getSpecsOrBuilderList() { + return specs_; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + @java.lang.Override + public int getSpecsCount() { + return specs_.size(); + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec getSpecs(int index) { + return specs_.get(index); + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.SpecOrBuilder getSpecsOrBuilder( + int index) { + return specs_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < specs_.size(); i++) { + output.writeMessage(1, specs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < specs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, specs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer) obj; + + if (!getSpecsList() + .equals(other.getSpecsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSpecsCount() > 0) { + hash = (37 * hash) + SPECS_FIELD_NUMBER; + hash = (53 * hash) + getSpecsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceInitializer specifies how a workspace is to be initialized
+     * 
+ * + * Protobuf type {@code gitpod.v1.WorkspaceInitializer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceInitializer) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (specsBuilder_ == null) { + specs_ = java.util.Collections.emptyList(); + } else { + specs_ = null; + specsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceInitializer_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer result) { + if (specsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + specs_ = java.util.Collections.unmodifiableList(specs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.specs_ = specs_; + } else { + result.specs_ = specsBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.getDefaultInstance()) return this; + if (specsBuilder_ == null) { + if (!other.specs_.isEmpty()) { + if (specs_.isEmpty()) { + specs_ = other.specs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSpecsIsMutable(); + specs_.addAll(other.specs_); + } + onChanged(); + } + } else { + if (!other.specs_.isEmpty()) { + if (specsBuilder_.isEmpty()) { + specsBuilder_.dispose(); + specsBuilder_ = null; + specs_ = other.specs_; + bitField0_ = (bitField0_ & ~0x00000001); + specsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSpecsFieldBuilder() : null; + } else { + specsBuilder_.addAllMessages(other.specs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec m = + input.readMessage( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.parser(), + extensionRegistry); + if (specsBuilder_ == null) { + ensureSpecsIsMutable(); + specs_.add(m); + } else { + specsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List specs_ = + java.util.Collections.emptyList(); + private void ensureSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + specs_ = new java.util.ArrayList(specs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.SpecOrBuilder> specsBuilder_; + + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public java.util.List getSpecsList() { + if (specsBuilder_ == null) { + return java.util.Collections.unmodifiableList(specs_); + } else { + return specsBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public int getSpecsCount() { + if (specsBuilder_ == null) { + return specs_.size(); + } else { + return specsBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec getSpecs(int index) { + if (specsBuilder_ == null) { + return specs_.get(index); + } else { + return specsBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public Builder setSpecs( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec value) { + if (specsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecsIsMutable(); + specs_.set(index, value); + onChanged(); + } else { + specsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public Builder setSpecs( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder builderForValue) { + if (specsBuilder_ == null) { + ensureSpecsIsMutable(); + specs_.set(index, builderForValue.build()); + onChanged(); + } else { + specsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public Builder addSpecs(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec value) { + if (specsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecsIsMutable(); + specs_.add(value); + onChanged(); + } else { + specsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public Builder addSpecs( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec value) { + if (specsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecsIsMutable(); + specs_.add(index, value); + onChanged(); + } else { + specsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public Builder addSpecs( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder builderForValue) { + if (specsBuilder_ == null) { + ensureSpecsIsMutable(); + specs_.add(builderForValue.build()); + onChanged(); + } else { + specsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public Builder addSpecs( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder builderForValue) { + if (specsBuilder_ == null) { + ensureSpecsIsMutable(); + specs_.add(index, builderForValue.build()); + onChanged(); + } else { + specsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public Builder addAllSpecs( + java.lang.Iterable values) { + if (specsBuilder_ == null) { + ensureSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, specs_); + onChanged(); + } else { + specsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public Builder clearSpecs() { + if (specsBuilder_ == null) { + specs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + specsBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public Builder removeSpecs(int index) { + if (specsBuilder_ == null) { + ensureSpecsIsMutable(); + specs_.remove(index); + onChanged(); + } else { + specsBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder getSpecsBuilder( + int index) { + return getSpecsFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.SpecOrBuilder getSpecsOrBuilder( + int index) { + if (specsBuilder_ == null) { + return specs_.get(index); } else { + return specsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public java.util.List + getSpecsOrBuilderList() { + if (specsBuilder_ != null) { + return specsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(specs_); + } + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder addSpecsBuilder() { + return getSpecsFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder addSpecsBuilder( + int index) { + return getSpecsFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.WorkspaceInitializer.Spec specs = 1 [json_name = "specs"]; + */ + public java.util.List + getSpecsBuilderList() { + return getSpecsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.SpecOrBuilder> + getSpecsFieldBuilder() { + if (specsBuilder_ == null) { + specsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.Spec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer.SpecOrBuilder>( + specs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + specs_ = null; + } + return specsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceInitializer) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceInitializer) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceInitializer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GitInitializerOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GitInitializer) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * remote_uri is the Git remote origin
+     * 
+ * + * string remote_uri = 1 [json_name = "remoteUri"]; + * @return The remoteUri. + */ + java.lang.String getRemoteUri(); + /** + *
+     * remote_uri is the Git remote origin
+     * 
+ * + * string remote_uri = 1 [json_name = "remoteUri"]; + * @return The bytes for remoteUri. + */ + com.google.protobuf.ByteString + getRemoteUriBytes(); + + /** + *
+     * upstream_Remote_uri is the fork upstream of a repository
+     * 
+ * + * string upstream_remote_uri = 2 [json_name = "upstreamRemoteUri"]; + * @return The upstreamRemoteUri. + */ + java.lang.String getUpstreamRemoteUri(); + /** + *
+     * upstream_Remote_uri is the fork upstream of a repository
+     * 
+ * + * string upstream_remote_uri = 2 [json_name = "upstreamRemoteUri"]; + * @return The bytes for upstreamRemoteUri. + */ + com.google.protobuf.ByteString + getUpstreamRemoteUriBytes(); + + /** + *
+     * the target mode determines what gets checked out
+     * 
+ * + * .gitpod.v1.GitInitializer.CloneTargetMode target_mode = 3 [json_name = "targetMode"]; + * @return The enum numeric value on the wire for targetMode. + */ + int getTargetModeValue(); + /** + *
+     * the target mode determines what gets checked out
+     * 
+ * + * .gitpod.v1.GitInitializer.CloneTargetMode target_mode = 3 [json_name = "targetMode"]; + * @return The targetMode. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode getTargetMode(); + + /** + *
+     * the value for the clone target mode - use depends on the target mode
+     * 
+ * + * string clone_target = 4 [json_name = "cloneTarget"]; + * @return The cloneTarget. + */ + java.lang.String getCloneTarget(); + /** + *
+     * the value for the clone target mode - use depends on the target mode
+     * 
+ * + * string clone_target = 4 [json_name = "cloneTarget"]; + * @return The bytes for cloneTarget. + */ + com.google.protobuf.ByteString + getCloneTargetBytes(); + + /** + *
+     * a path relative to the workspace root in which the code will be checked out
+     * to
+     * 
+ * + * string checkout_location = 5 [json_name = "checkoutLocation"]; + * @return The checkoutLocation. + */ + java.lang.String getCheckoutLocation(); + /** + *
+     * a path relative to the workspace root in which the code will be checked out
+     * to
+     * 
+ * + * string checkout_location = 5 [json_name = "checkoutLocation"]; + * @return The bytes for checkoutLocation. + */ + com.google.protobuf.ByteString + getCheckoutLocationBytes(); + + /** + *
+     * config specifies the Git configuration for this workspace
+     * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + *
+     * config specifies the Git configuration for this workspace
+     * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + * @return The config. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig getConfig(); + /** + *
+     * config specifies the Git configuration for this workspace
+     * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfigOrBuilder getConfigOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.GitInitializer} + */ + public static final class GitInitializer extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GitInitializer) + GitInitializerOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GitInitializer.class.getName()); + } + // Use GitInitializer.newBuilder() to construct. + private GitInitializer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GitInitializer() { + remoteUri_ = ""; + upstreamRemoteUri_ = ""; + targetMode_ = 0; + cloneTarget_ = ""; + checkoutLocation_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.Builder.class); + } + + /** + *
+     * CloneTargetMode is the target state in which we want to leave a
+     * GitWorkspace
+     * 
+ * + * Protobuf enum {@code gitpod.v1.GitInitializer.CloneTargetMode} + */ + public enum CloneTargetMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CLONE_TARGET_MODE_UNSPECIFIED = 0; + */ + CLONE_TARGET_MODE_UNSPECIFIED(0), + /** + *
+       * REMOTE_HEAD has the local WS point at the remote branch head
+       * 
+ * + * CLONE_TARGET_MODE_REMOTE_HEAD = 1; + */ + CLONE_TARGET_MODE_REMOTE_HEAD(1), + /** + *
+       * REMOTE_COMMIT has the local WS point at a specific commit
+       * 
+ * + * CLONE_TARGET_MODE_REMOTE_COMMIT = 2; + */ + CLONE_TARGET_MODE_REMOTE_COMMIT(2), + /** + *
+       * REMOTE_BRANCH has the local WS point at a remote branch
+       * 
+ * + * CLONE_TARGET_MODE_REMOTE_BRANCH = 3; + */ + CLONE_TARGET_MODE_REMOTE_BRANCH(3), + /** + *
+       * LOCAL_BRANCH creates a local branch in the workspace
+       * 
+ * + * CLONE_TARGET_MODE_LOCAL_BRANCH = 4; + */ + CLONE_TARGET_MODE_LOCAL_BRANCH(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CloneTargetMode.class.getName()); + } + /** + * CLONE_TARGET_MODE_UNSPECIFIED = 0; + */ + public static final int CLONE_TARGET_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+       * REMOTE_HEAD has the local WS point at the remote branch head
+       * 
+ * + * CLONE_TARGET_MODE_REMOTE_HEAD = 1; + */ + public static final int CLONE_TARGET_MODE_REMOTE_HEAD_VALUE = 1; + /** + *
+       * REMOTE_COMMIT has the local WS point at a specific commit
+       * 
+ * + * CLONE_TARGET_MODE_REMOTE_COMMIT = 2; + */ + public static final int CLONE_TARGET_MODE_REMOTE_COMMIT_VALUE = 2; + /** + *
+       * REMOTE_BRANCH has the local WS point at a remote branch
+       * 
+ * + * CLONE_TARGET_MODE_REMOTE_BRANCH = 3; + */ + public static final int CLONE_TARGET_MODE_REMOTE_BRANCH_VALUE = 3; + /** + *
+       * LOCAL_BRANCH creates a local branch in the workspace
+       * 
+ * + * CLONE_TARGET_MODE_LOCAL_BRANCH = 4; + */ + public static final int CLONE_TARGET_MODE_LOCAL_BRANCH_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CloneTargetMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CloneTargetMode forNumber(int value) { + switch (value) { + case 0: return CLONE_TARGET_MODE_UNSPECIFIED; + case 1: return CLONE_TARGET_MODE_REMOTE_HEAD; + case 2: return CLONE_TARGET_MODE_REMOTE_COMMIT; + case 3: return CLONE_TARGET_MODE_REMOTE_BRANCH; + case 4: return CLONE_TARGET_MODE_LOCAL_BRANCH; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CloneTargetMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CloneTargetMode findValueByNumber(int number) { + return CloneTargetMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDescriptor().getEnumTypes().get(0); + } + + private static final CloneTargetMode[] VALUES = values(); + + public static CloneTargetMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CloneTargetMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.GitInitializer.CloneTargetMode) + } + + /** + *
+     * AuthMethod is the means of authentication used during clone
+     * 
+ * + * Protobuf enum {@code gitpod.v1.GitInitializer.AuthMethod} + */ + public enum AuthMethod + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * NO_AUTH disables authentication during clone
+       * 
+ * + * AUTH_METHOD_UNSPECIFIED = 0; + */ + AUTH_METHOD_UNSPECIFIED(0), + /** + *
+       * BASIC_AUTH uses HTTP basic auth during clone (fails if repo is not cloned
+       * through http)
+       * 
+ * + * AUTH_METHOD_BASIC_AUTH = 1; + */ + AUTH_METHOD_BASIC_AUTH(1), + /** + *
+       * BASIC_AUTH_OTS uses HTTP basic auth during the clone with the secrets
+       * coming from the OTS URL. Fails if either the OTS download or the clone
+       * fail.
+       * 
+ * + * AUTH_METHOD_BASIC_AUTH_OTS = 2; + */ + AUTH_METHOD_BASIC_AUTH_OTS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + AuthMethod.class.getName()); + } + /** + *
+       * NO_AUTH disables authentication during clone
+       * 
+ * + * AUTH_METHOD_UNSPECIFIED = 0; + */ + public static final int AUTH_METHOD_UNSPECIFIED_VALUE = 0; + /** + *
+       * BASIC_AUTH uses HTTP basic auth during clone (fails if repo is not cloned
+       * through http)
+       * 
+ * + * AUTH_METHOD_BASIC_AUTH = 1; + */ + public static final int AUTH_METHOD_BASIC_AUTH_VALUE = 1; + /** + *
+       * BASIC_AUTH_OTS uses HTTP basic auth during the clone with the secrets
+       * coming from the OTS URL. Fails if either the OTS download or the clone
+       * fail.
+       * 
+ * + * AUTH_METHOD_BASIC_AUTH_OTS = 2; + */ + public static final int AUTH_METHOD_BASIC_AUTH_OTS_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthMethod valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AuthMethod forNumber(int value) { + switch (value) { + case 0: return AUTH_METHOD_UNSPECIFIED; + case 1: return AUTH_METHOD_BASIC_AUTH; + case 2: return AUTH_METHOD_BASIC_AUTH_OTS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AuthMethod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthMethod findValueByNumber(int number) { + return AuthMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDescriptor().getEnumTypes().get(1); + } + + private static final AuthMethod[] VALUES = values(); + + public static AuthMethod valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AuthMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:gitpod.v1.GitInitializer.AuthMethod) + } + + public interface GitConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GitInitializer.GitConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * custom config values to be set on clone provided through `.gitpod.yml`
+       * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + int getCustomConfigCount(); + /** + *
+       * custom config values to be set on clone provided through `.gitpod.yml`
+       * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + boolean containsCustomConfig( + java.lang.String key); + /** + * Use {@link #getCustomConfigMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCustomConfig(); + /** + *
+       * custom config values to be set on clone provided through `.gitpod.yml`
+       * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + java.util.Map + getCustomConfigMap(); + /** + *
+       * custom config values to be set on clone provided through `.gitpod.yml`
+       * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + /* nullable */ +java.lang.String getCustomConfigOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+       * custom config values to be set on clone provided through `.gitpod.yml`
+       * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + java.lang.String getCustomConfigOrThrow( + java.lang.String key); + + /** + *
+       * authentication method
+       * 
+ * + * .gitpod.v1.GitInitializer.AuthMethod authentication = 2 [json_name = "authentication"]; + * @return The enum numeric value on the wire for authentication. + */ + int getAuthenticationValue(); + /** + *
+       * authentication method
+       * 
+ * + * .gitpod.v1.GitInitializer.AuthMethod authentication = 2 [json_name = "authentication"]; + * @return The authentication. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod getAuthentication(); + + /** + *
+       * auth_user is the username used to authenticate the clone
+       * 
+ * + * string auth_user = 3 [json_name = "authUser"]; + * @return The authUser. + */ + java.lang.String getAuthUser(); + /** + *
+       * auth_user is the username used to authenticate the clone
+       * 
+ * + * string auth_user = 3 [json_name = "authUser"]; + * @return The bytes for authUser. + */ + com.google.protobuf.ByteString + getAuthUserBytes(); + + /** + *
+       * auth_password is the password used to authenticate the clone (can also be
+       * an API token)
+       * 
+ * + * string auth_password = 4 [json_name = "authPassword"]; + * @return The authPassword. + */ + java.lang.String getAuthPassword(); + /** + *
+       * auth_password is the password used to authenticate the clone (can also be
+       * an API token)
+       * 
+ * + * string auth_password = 4 [json_name = "authPassword"]; + * @return The bytes for authPassword. + */ + com.google.protobuf.ByteString + getAuthPasswordBytes(); + + /** + *
+       * auth_ots is a URL where one can download the authentication secret
+       * (<username>:<password>) using a GET request.
+       * 
+ * + * string auth_ots = 5 [json_name = "authOts"]; + * @return The authOts. + */ + java.lang.String getAuthOts(); + /** + *
+       * auth_ots is a URL where one can download the authentication secret
+       * (<username>:<password>) using a GET request.
+       * 
+ * + * string auth_ots = 5 [json_name = "authOts"]; + * @return The bytes for authOts. + */ + com.google.protobuf.ByteString + getAuthOtsBytes(); + } + /** + * Protobuf type {@code gitpod.v1.GitInitializer.GitConfig} + */ + public static final class GitConfig extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GitInitializer.GitConfig) + GitConfigOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GitConfig.class.getName()); + } + // Use GitConfig.newBuilder() to construct. + private GitConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GitConfig() { + authentication_ = 0; + authUser_ = ""; + authPassword_ = ""; + authOts_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_GitConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetCustomConfig(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_GitConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.Builder.class); + } + + public static final int CUSTOM_CONFIG_FIELD_NUMBER = 1; + private static final class CustomConfigDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_GitConfig_CustomConfigEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> customConfig_; + private com.google.protobuf.MapField + internalGetCustomConfig() { + if (customConfig_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomConfigDefaultEntryHolder.defaultEntry); + } + return customConfig_; + } + public int getCustomConfigCount() { + return internalGetCustomConfig().getMap().size(); + } + /** + *
+       * custom config values to be set on clone provided through `.gitpod.yml`
+       * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + @java.lang.Override + public boolean containsCustomConfig( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCustomConfig().getMap().containsKey(key); + } + /** + * Use {@link #getCustomConfigMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomConfig() { + return getCustomConfigMap(); + } + /** + *
+       * custom config values to be set on clone provided through `.gitpod.yml`
+       * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + @java.lang.Override + public java.util.Map getCustomConfigMap() { + return internalGetCustomConfig().getMap(); + } + /** + *
+       * custom config values to be set on clone provided through `.gitpod.yml`
+       * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getCustomConfigOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCustomConfig().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * custom config values to be set on clone provided through `.gitpod.yml`
+       * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + @java.lang.Override + public java.lang.String getCustomConfigOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCustomConfig().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int AUTHENTICATION_FIELD_NUMBER = 2; + private int authentication_ = 0; + /** + *
+       * authentication method
+       * 
+ * + * .gitpod.v1.GitInitializer.AuthMethod authentication = 2 [json_name = "authentication"]; + * @return The enum numeric value on the wire for authentication. + */ + @java.lang.Override public int getAuthenticationValue() { + return authentication_; + } + /** + *
+       * authentication method
+       * 
+ * + * .gitpod.v1.GitInitializer.AuthMethod authentication = 2 [json_name = "authentication"]; + * @return The authentication. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod getAuthentication() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod result = io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod.forNumber(authentication_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod.UNRECOGNIZED : result; + } + + public static final int AUTH_USER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object authUser_ = ""; + /** + *
+       * auth_user is the username used to authenticate the clone
+       * 
+ * + * string auth_user = 3 [json_name = "authUser"]; + * @return The authUser. + */ + @java.lang.Override + public java.lang.String getAuthUser() { + java.lang.Object ref = authUser_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authUser_ = s; + return s; + } + } + /** + *
+       * auth_user is the username used to authenticate the clone
+       * 
+ * + * string auth_user = 3 [json_name = "authUser"]; + * @return The bytes for authUser. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthUserBytes() { + java.lang.Object ref = authUser_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_PASSWORD_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object authPassword_ = ""; + /** + *
+       * auth_password is the password used to authenticate the clone (can also be
+       * an API token)
+       * 
+ * + * string auth_password = 4 [json_name = "authPassword"]; + * @return The authPassword. + */ + @java.lang.Override + public java.lang.String getAuthPassword() { + java.lang.Object ref = authPassword_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authPassword_ = s; + return s; + } + } + /** + *
+       * auth_password is the password used to authenticate the clone (can also be
+       * an API token)
+       * 
+ * + * string auth_password = 4 [json_name = "authPassword"]; + * @return The bytes for authPassword. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthPasswordBytes() { + java.lang.Object ref = authPassword_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_OTS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object authOts_ = ""; + /** + *
+       * auth_ots is a URL where one can download the authentication secret
+       * (<username>:<password>) using a GET request.
+       * 
+ * + * string auth_ots = 5 [json_name = "authOts"]; + * @return The authOts. + */ + @java.lang.Override + public java.lang.String getAuthOts() { + java.lang.Object ref = authOts_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authOts_ = s; + return s; + } + } + /** + *
+       * auth_ots is a URL where one can download the authentication secret
+       * (<username>:<password>) using a GET request.
+       * 
+ * + * string auth_ots = 5 [json_name = "authOts"]; + * @return The bytes for authOts. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthOtsBytes() { + java.lang.Object ref = authOts_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authOts_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetCustomConfig(), + CustomConfigDefaultEntryHolder.defaultEntry, + 1); + if (authentication_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod.AUTH_METHOD_UNSPECIFIED.getNumber()) { + output.writeEnum(2, authentication_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authUser_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authUser_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authPassword_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, authPassword_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authOts_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, authOts_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetCustomConfig().getMap().entrySet()) { + com.google.protobuf.MapEntry + customConfig__ = CustomConfigDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, customConfig__); + } + if (authentication_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod.AUTH_METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, authentication_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authUser_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authUser_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authPassword_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, authPassword_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authOts_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, authOts_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig) obj; + + if (!internalGetCustomConfig().equals( + other.internalGetCustomConfig())) return false; + if (authentication_ != other.authentication_) return false; + if (!getAuthUser() + .equals(other.getAuthUser())) return false; + if (!getAuthPassword() + .equals(other.getAuthPassword())) return false; + if (!getAuthOts() + .equals(other.getAuthOts())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetCustomConfig().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomConfig().hashCode(); + } + hash = (37 * hash) + AUTHENTICATION_FIELD_NUMBER; + hash = (53 * hash) + authentication_; + hash = (37 * hash) + AUTH_USER_FIELD_NUMBER; + hash = (53 * hash) + getAuthUser().hashCode(); + hash = (37 * hash) + AUTH_PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getAuthPassword().hashCode(); + hash = (37 * hash) + AUTH_OTS_FIELD_NUMBER; + hash = (53 * hash) + getAuthOts().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GitInitializer.GitConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GitInitializer.GitConfig) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_GitConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetCustomConfig(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableCustomConfig(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_GitConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableCustomConfig().clear(); + authentication_ = 0; + authUser_ = ""; + authPassword_ = ""; + authOts_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_GitConfig_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customConfig_ = internalGetCustomConfig(); + result.customConfig_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authentication_ = authentication_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authUser_ = authUser_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.authPassword_ = authPassword_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.authOts_ = authOts_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.getDefaultInstance()) return this; + internalGetMutableCustomConfig().mergeFrom( + other.internalGetCustomConfig()); + bitField0_ |= 0x00000001; + if (other.authentication_ != 0) { + setAuthenticationValue(other.getAuthenticationValue()); + } + if (!other.getAuthUser().isEmpty()) { + authUser_ = other.authUser_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAuthPassword().isEmpty()) { + authPassword_ = other.authPassword_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getAuthOts().isEmpty()) { + authOts_ = other.authOts_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + customConfig__ = input.readMessage( + CustomConfigDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCustomConfig().getMutableMap().put( + customConfig__.getKey(), customConfig__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + authentication_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + authUser_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + authPassword_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + authOts_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> customConfig_; + private com.google.protobuf.MapField + internalGetCustomConfig() { + if (customConfig_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomConfigDefaultEntryHolder.defaultEntry); + } + return customConfig_; + } + private com.google.protobuf.MapField + internalGetMutableCustomConfig() { + if (customConfig_ == null) { + customConfig_ = com.google.protobuf.MapField.newMapField( + CustomConfigDefaultEntryHolder.defaultEntry); + } + if (!customConfig_.isMutable()) { + customConfig_ = customConfig_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return customConfig_; + } + public int getCustomConfigCount() { + return internalGetCustomConfig().getMap().size(); + } + /** + *
+         * custom config values to be set on clone provided through `.gitpod.yml`
+         * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + @java.lang.Override + public boolean containsCustomConfig( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCustomConfig().getMap().containsKey(key); + } + /** + * Use {@link #getCustomConfigMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomConfig() { + return getCustomConfigMap(); + } + /** + *
+         * custom config values to be set on clone provided through `.gitpod.yml`
+         * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + @java.lang.Override + public java.util.Map getCustomConfigMap() { + return internalGetCustomConfig().getMap(); + } + /** + *
+         * custom config values to be set on clone provided through `.gitpod.yml`
+         * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getCustomConfigOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCustomConfig().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+         * custom config values to be set on clone provided through `.gitpod.yml`
+         * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + @java.lang.Override + public java.lang.String getCustomConfigOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCustomConfig().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearCustomConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableCustomConfig().getMutableMap() + .clear(); + return this; + } + /** + *
+         * custom config values to be set on clone provided through `.gitpod.yml`
+         * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + public Builder removeCustomConfig( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCustomConfig().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomConfig() { + bitField0_ |= 0x00000001; + return internalGetMutableCustomConfig().getMutableMap(); + } + /** + *
+         * custom config values to be set on clone provided through `.gitpod.yml`
+         * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + public Builder putCustomConfig( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableCustomConfig().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+         * custom config values to be set on clone provided through `.gitpod.yml`
+         * 
+ * + * map<string, string> custom_config = 1 [json_name = "customConfig"]; + */ + public Builder putAllCustomConfig( + java.util.Map values) { + internalGetMutableCustomConfig().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + private int authentication_ = 0; + /** + *
+         * authentication method
+         * 
+ * + * .gitpod.v1.GitInitializer.AuthMethod authentication = 2 [json_name = "authentication"]; + * @return The enum numeric value on the wire for authentication. + */ + @java.lang.Override public int getAuthenticationValue() { + return authentication_; + } + /** + *
+         * authentication method
+         * 
+ * + * .gitpod.v1.GitInitializer.AuthMethod authentication = 2 [json_name = "authentication"]; + * @param value The enum numeric value on the wire for authentication to set. + * @return This builder for chaining. + */ + public Builder setAuthenticationValue(int value) { + authentication_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * authentication method
+         * 
+ * + * .gitpod.v1.GitInitializer.AuthMethod authentication = 2 [json_name = "authentication"]; + * @return The authentication. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod getAuthentication() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod result = io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod.forNumber(authentication_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod.UNRECOGNIZED : result; + } + /** + *
+         * authentication method
+         * 
+ * + * .gitpod.v1.GitInitializer.AuthMethod authentication = 2 [json_name = "authentication"]; + * @param value The authentication to set. + * @return This builder for chaining. + */ + public Builder setAuthentication(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.AuthMethod value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + authentication_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * authentication method
+         * 
+ * + * .gitpod.v1.GitInitializer.AuthMethod authentication = 2 [json_name = "authentication"]; + * @return This builder for chaining. + */ + public Builder clearAuthentication() { + bitField0_ = (bitField0_ & ~0x00000002); + authentication_ = 0; + onChanged(); + return this; + } + + private java.lang.Object authUser_ = ""; + /** + *
+         * auth_user is the username used to authenticate the clone
+         * 
+ * + * string auth_user = 3 [json_name = "authUser"]; + * @return The authUser. + */ + public java.lang.String getAuthUser() { + java.lang.Object ref = authUser_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authUser_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * auth_user is the username used to authenticate the clone
+         * 
+ * + * string auth_user = 3 [json_name = "authUser"]; + * @return The bytes for authUser. + */ + public com.google.protobuf.ByteString + getAuthUserBytes() { + java.lang.Object ref = authUser_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * auth_user is the username used to authenticate the clone
+         * 
+ * + * string auth_user = 3 [json_name = "authUser"]; + * @param value The authUser to set. + * @return This builder for chaining. + */ + public Builder setAuthUser( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authUser_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * auth_user is the username used to authenticate the clone
+         * 
+ * + * string auth_user = 3 [json_name = "authUser"]; + * @return This builder for chaining. + */ + public Builder clearAuthUser() { + authUser_ = getDefaultInstance().getAuthUser(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+         * auth_user is the username used to authenticate the clone
+         * 
+ * + * string auth_user = 3 [json_name = "authUser"]; + * @param value The bytes for authUser to set. + * @return This builder for chaining. + */ + public Builder setAuthUserBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authUser_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object authPassword_ = ""; + /** + *
+         * auth_password is the password used to authenticate the clone (can also be
+         * an API token)
+         * 
+ * + * string auth_password = 4 [json_name = "authPassword"]; + * @return The authPassword. + */ + public java.lang.String getAuthPassword() { + java.lang.Object ref = authPassword_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authPassword_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * auth_password is the password used to authenticate the clone (can also be
+         * an API token)
+         * 
+ * + * string auth_password = 4 [json_name = "authPassword"]; + * @return The bytes for authPassword. + */ + public com.google.protobuf.ByteString + getAuthPasswordBytes() { + java.lang.Object ref = authPassword_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * auth_password is the password used to authenticate the clone (can also be
+         * an API token)
+         * 
+ * + * string auth_password = 4 [json_name = "authPassword"]; + * @param value The authPassword to set. + * @return This builder for chaining. + */ + public Builder setAuthPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authPassword_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * auth_password is the password used to authenticate the clone (can also be
+         * an API token)
+         * 
+ * + * string auth_password = 4 [json_name = "authPassword"]; + * @return This builder for chaining. + */ + public Builder clearAuthPassword() { + authPassword_ = getDefaultInstance().getAuthPassword(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+         * auth_password is the password used to authenticate the clone (can also be
+         * an API token)
+         * 
+ * + * string auth_password = 4 [json_name = "authPassword"]; + * @param value The bytes for authPassword to set. + * @return This builder for chaining. + */ + public Builder setAuthPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authPassword_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object authOts_ = ""; + /** + *
+         * auth_ots is a URL where one can download the authentication secret
+         * (<username>:<password>) using a GET request.
+         * 
+ * + * string auth_ots = 5 [json_name = "authOts"]; + * @return The authOts. + */ + public java.lang.String getAuthOts() { + java.lang.Object ref = authOts_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authOts_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * auth_ots is a URL where one can download the authentication secret
+         * (<username>:<password>) using a GET request.
+         * 
+ * + * string auth_ots = 5 [json_name = "authOts"]; + * @return The bytes for authOts. + */ + public com.google.protobuf.ByteString + getAuthOtsBytes() { + java.lang.Object ref = authOts_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authOts_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * auth_ots is a URL where one can download the authentication secret
+         * (<username>:<password>) using a GET request.
+         * 
+ * + * string auth_ots = 5 [json_name = "authOts"]; + * @param value The authOts to set. + * @return This builder for chaining. + */ + public Builder setAuthOts( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authOts_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * auth_ots is a URL where one can download the authentication secret
+         * (<username>:<password>) using a GET request.
+         * 
+ * + * string auth_ots = 5 [json_name = "authOts"]; + * @return This builder for chaining. + */ + public Builder clearAuthOts() { + authOts_ = getDefaultInstance().getAuthOts(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+         * auth_ots is a URL where one can download the authentication secret
+         * (<username>:<password>) using a GET request.
+         * 
+ * + * string auth_ots = 5 [json_name = "authOts"]; + * @param value The bytes for authOts to set. + * @return This builder for chaining. + */ + public Builder setAuthOtsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authOts_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GitInitializer.GitConfig) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GitInitializer.GitConfig) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int REMOTE_URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object remoteUri_ = ""; + /** + *
+     * remote_uri is the Git remote origin
+     * 
+ * + * string remote_uri = 1 [json_name = "remoteUri"]; + * @return The remoteUri. + */ + @java.lang.Override + public java.lang.String getRemoteUri() { + java.lang.Object ref = remoteUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteUri_ = s; + return s; + } + } + /** + *
+     * remote_uri is the Git remote origin
+     * 
+ * + * string remote_uri = 1 [json_name = "remoteUri"]; + * @return The bytes for remoteUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRemoteUriBytes() { + java.lang.Object ref = remoteUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPSTREAM_REMOTE_URI_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object upstreamRemoteUri_ = ""; + /** + *
+     * upstream_Remote_uri is the fork upstream of a repository
+     * 
+ * + * string upstream_remote_uri = 2 [json_name = "upstreamRemoteUri"]; + * @return The upstreamRemoteUri. + */ + @java.lang.Override + public java.lang.String getUpstreamRemoteUri() { + java.lang.Object ref = upstreamRemoteUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + upstreamRemoteUri_ = s; + return s; + } + } + /** + *
+     * upstream_Remote_uri is the fork upstream of a repository
+     * 
+ * + * string upstream_remote_uri = 2 [json_name = "upstreamRemoteUri"]; + * @return The bytes for upstreamRemoteUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUpstreamRemoteUriBytes() { + java.lang.Object ref = upstreamRemoteUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + upstreamRemoteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_MODE_FIELD_NUMBER = 3; + private int targetMode_ = 0; + /** + *
+     * the target mode determines what gets checked out
+     * 
+ * + * .gitpod.v1.GitInitializer.CloneTargetMode target_mode = 3 [json_name = "targetMode"]; + * @return The enum numeric value on the wire for targetMode. + */ + @java.lang.Override public int getTargetModeValue() { + return targetMode_; + } + /** + *
+     * the target mode determines what gets checked out
+     * 
+ * + * .gitpod.v1.GitInitializer.CloneTargetMode target_mode = 3 [json_name = "targetMode"]; + * @return The targetMode. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode getTargetMode() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode result = io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode.forNumber(targetMode_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode.UNRECOGNIZED : result; + } + + public static final int CLONE_TARGET_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object cloneTarget_ = ""; + /** + *
+     * the value for the clone target mode - use depends on the target mode
+     * 
+ * + * string clone_target = 4 [json_name = "cloneTarget"]; + * @return The cloneTarget. + */ + @java.lang.Override + public java.lang.String getCloneTarget() { + java.lang.Object ref = cloneTarget_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneTarget_ = s; + return s; + } + } + /** + *
+     * the value for the clone target mode - use depends on the target mode
+     * 
+ * + * string clone_target = 4 [json_name = "cloneTarget"]; + * @return The bytes for cloneTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCloneTargetBytes() { + java.lang.Object ref = cloneTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHECKOUT_LOCATION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object checkoutLocation_ = ""; + /** + *
+     * a path relative to the workspace root in which the code will be checked out
+     * to
+     * 
+ * + * string checkout_location = 5 [json_name = "checkoutLocation"]; + * @return The checkoutLocation. + */ + @java.lang.Override + public java.lang.String getCheckoutLocation() { + java.lang.Object ref = checkoutLocation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkoutLocation_ = s; + return s; + } + } + /** + *
+     * a path relative to the workspace root in which the code will be checked out
+     * to
+     * 
+ * + * string checkout_location = 5 [json_name = "checkoutLocation"]; + * @return The bytes for checkoutLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCheckoutLocationBytes() { + java.lang.Object ref = checkoutLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkoutLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIG_FIELD_NUMBER = 6; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig config_; + /** + *
+     * config specifies the Git configuration for this workspace
+     * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * config specifies the Git configuration for this workspace
+     * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + * @return The config. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig getConfig() { + return config_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.getDefaultInstance() : config_; + } + /** + *
+     * config specifies the Git configuration for this workspace
+     * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfigOrBuilder getConfigOrBuilder() { + return config_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.getDefaultInstance() : config_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remoteUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, remoteUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(upstreamRemoteUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, upstreamRemoteUri_); + } + if (targetMode_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode.CLONE_TARGET_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, targetMode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneTarget_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, cloneTarget_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(checkoutLocation_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, checkoutLocation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remoteUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, remoteUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(upstreamRemoteUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, upstreamRemoteUri_); + } + if (targetMode_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode.CLONE_TARGET_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, targetMode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloneTarget_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, cloneTarget_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(checkoutLocation_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, checkoutLocation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) obj; + + if (!getRemoteUri() + .equals(other.getRemoteUri())) return false; + if (!getUpstreamRemoteUri() + .equals(other.getUpstreamRemoteUri())) return false; + if (targetMode_ != other.targetMode_) return false; + if (!getCloneTarget() + .equals(other.getCloneTarget())) return false; + if (!getCheckoutLocation() + .equals(other.getCheckoutLocation())) return false; + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig() + .equals(other.getConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_URI_FIELD_NUMBER; + hash = (53 * hash) + getRemoteUri().hashCode(); + hash = (37 * hash) + UPSTREAM_REMOTE_URI_FIELD_NUMBER; + hash = (53 * hash) + getUpstreamRemoteUri().hashCode(); + hash = (37 * hash) + TARGET_MODE_FIELD_NUMBER; + hash = (53 * hash) + targetMode_; + hash = (37 * hash) + CLONE_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getCloneTarget().hashCode(); + hash = (37 * hash) + CHECKOUT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getCheckoutLocation().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.GitInitializer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GitInitializer) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + remoteUri_ = ""; + upstreamRemoteUri_ = ""; + targetMode_ = 0; + cloneTarget_ = ""; + checkoutLocation_ = ""; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitInitializer_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.remoteUri_ = remoteUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.upstreamRemoteUri_ = upstreamRemoteUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetMode_ = targetMode_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cloneTarget_ = cloneTarget_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.checkoutLocation_ = checkoutLocation_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.getDefaultInstance()) return this; + if (!other.getRemoteUri().isEmpty()) { + remoteUri_ = other.remoteUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUpstreamRemoteUri().isEmpty()) { + upstreamRemoteUri_ = other.upstreamRemoteUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.targetMode_ != 0) { + setTargetModeValue(other.getTargetModeValue()); + } + if (!other.getCloneTarget().isEmpty()) { + cloneTarget_ = other.cloneTarget_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getCheckoutLocation().isEmpty()) { + checkoutLocation_ = other.checkoutLocation_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + remoteUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + upstreamRemoteUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + targetMode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + cloneTarget_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + checkoutLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object remoteUri_ = ""; + /** + *
+       * remote_uri is the Git remote origin
+       * 
+ * + * string remote_uri = 1 [json_name = "remoteUri"]; + * @return The remoteUri. + */ + public java.lang.String getRemoteUri() { + java.lang.Object ref = remoteUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * remote_uri is the Git remote origin
+       * 
+ * + * string remote_uri = 1 [json_name = "remoteUri"]; + * @return The bytes for remoteUri. + */ + public com.google.protobuf.ByteString + getRemoteUriBytes() { + java.lang.Object ref = remoteUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * remote_uri is the Git remote origin
+       * 
+ * + * string remote_uri = 1 [json_name = "remoteUri"]; + * @param value The remoteUri to set. + * @return This builder for chaining. + */ + public Builder setRemoteUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + remoteUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * remote_uri is the Git remote origin
+       * 
+ * + * string remote_uri = 1 [json_name = "remoteUri"]; + * @return This builder for chaining. + */ + public Builder clearRemoteUri() { + remoteUri_ = getDefaultInstance().getRemoteUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * remote_uri is the Git remote origin
+       * 
+ * + * string remote_uri = 1 [json_name = "remoteUri"]; + * @param value The bytes for remoteUri to set. + * @return This builder for chaining. + */ + public Builder setRemoteUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + remoteUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object upstreamRemoteUri_ = ""; + /** + *
+       * upstream_Remote_uri is the fork upstream of a repository
+       * 
+ * + * string upstream_remote_uri = 2 [json_name = "upstreamRemoteUri"]; + * @return The upstreamRemoteUri. + */ + public java.lang.String getUpstreamRemoteUri() { + java.lang.Object ref = upstreamRemoteUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + upstreamRemoteUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * upstream_Remote_uri is the fork upstream of a repository
+       * 
+ * + * string upstream_remote_uri = 2 [json_name = "upstreamRemoteUri"]; + * @return The bytes for upstreamRemoteUri. + */ + public com.google.protobuf.ByteString + getUpstreamRemoteUriBytes() { + java.lang.Object ref = upstreamRemoteUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + upstreamRemoteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * upstream_Remote_uri is the fork upstream of a repository
+       * 
+ * + * string upstream_remote_uri = 2 [json_name = "upstreamRemoteUri"]; + * @param value The upstreamRemoteUri to set. + * @return This builder for chaining. + */ + public Builder setUpstreamRemoteUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + upstreamRemoteUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * upstream_Remote_uri is the fork upstream of a repository
+       * 
+ * + * string upstream_remote_uri = 2 [json_name = "upstreamRemoteUri"]; + * @return This builder for chaining. + */ + public Builder clearUpstreamRemoteUri() { + upstreamRemoteUri_ = getDefaultInstance().getUpstreamRemoteUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * upstream_Remote_uri is the fork upstream of a repository
+       * 
+ * + * string upstream_remote_uri = 2 [json_name = "upstreamRemoteUri"]; + * @param value The bytes for upstreamRemoteUri to set. + * @return This builder for chaining. + */ + public Builder setUpstreamRemoteUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + upstreamRemoteUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int targetMode_ = 0; + /** + *
+       * the target mode determines what gets checked out
+       * 
+ * + * .gitpod.v1.GitInitializer.CloneTargetMode target_mode = 3 [json_name = "targetMode"]; + * @return The enum numeric value on the wire for targetMode. + */ + @java.lang.Override public int getTargetModeValue() { + return targetMode_; + } + /** + *
+       * the target mode determines what gets checked out
+       * 
+ * + * .gitpod.v1.GitInitializer.CloneTargetMode target_mode = 3 [json_name = "targetMode"]; + * @param value The enum numeric value on the wire for targetMode to set. + * @return This builder for chaining. + */ + public Builder setTargetModeValue(int value) { + targetMode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * the target mode determines what gets checked out
+       * 
+ * + * .gitpod.v1.GitInitializer.CloneTargetMode target_mode = 3 [json_name = "targetMode"]; + * @return The targetMode. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode getTargetMode() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode result = io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode.forNumber(targetMode_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode.UNRECOGNIZED : result; + } + /** + *
+       * the target mode determines what gets checked out
+       * 
+ * + * .gitpod.v1.GitInitializer.CloneTargetMode target_mode = 3 [json_name = "targetMode"]; + * @param value The targetMode to set. + * @return This builder for chaining. + */ + public Builder setTargetMode(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.CloneTargetMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + targetMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * the target mode determines what gets checked out
+       * 
+ * + * .gitpod.v1.GitInitializer.CloneTargetMode target_mode = 3 [json_name = "targetMode"]; + * @return This builder for chaining. + */ + public Builder clearTargetMode() { + bitField0_ = (bitField0_ & ~0x00000004); + targetMode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object cloneTarget_ = ""; + /** + *
+       * the value for the clone target mode - use depends on the target mode
+       * 
+ * + * string clone_target = 4 [json_name = "cloneTarget"]; + * @return The cloneTarget. + */ + public java.lang.String getCloneTarget() { + java.lang.Object ref = cloneTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloneTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the value for the clone target mode - use depends on the target mode
+       * 
+ * + * string clone_target = 4 [json_name = "cloneTarget"]; + * @return The bytes for cloneTarget. + */ + public com.google.protobuf.ByteString + getCloneTargetBytes() { + java.lang.Object ref = cloneTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloneTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the value for the clone target mode - use depends on the target mode
+       * 
+ * + * string clone_target = 4 [json_name = "cloneTarget"]; + * @param value The cloneTarget to set. + * @return This builder for chaining. + */ + public Builder setCloneTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cloneTarget_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * the value for the clone target mode - use depends on the target mode
+       * 
+ * + * string clone_target = 4 [json_name = "cloneTarget"]; + * @return This builder for chaining. + */ + public Builder clearCloneTarget() { + cloneTarget_ = getDefaultInstance().getCloneTarget(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * the value for the clone target mode - use depends on the target mode
+       * 
+ * + * string clone_target = 4 [json_name = "cloneTarget"]; + * @param value The bytes for cloneTarget to set. + * @return This builder for chaining. + */ + public Builder setCloneTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cloneTarget_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object checkoutLocation_ = ""; + /** + *
+       * a path relative to the workspace root in which the code will be checked out
+       * to
+       * 
+ * + * string checkout_location = 5 [json_name = "checkoutLocation"]; + * @return The checkoutLocation. + */ + public java.lang.String getCheckoutLocation() { + java.lang.Object ref = checkoutLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkoutLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * a path relative to the workspace root in which the code will be checked out
+       * to
+       * 
+ * + * string checkout_location = 5 [json_name = "checkoutLocation"]; + * @return The bytes for checkoutLocation. + */ + public com.google.protobuf.ByteString + getCheckoutLocationBytes() { + java.lang.Object ref = checkoutLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkoutLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * a path relative to the workspace root in which the code will be checked out
+       * to
+       * 
+ * + * string checkout_location = 5 [json_name = "checkoutLocation"]; + * @param value The checkoutLocation to set. + * @return This builder for chaining. + */ + public Builder setCheckoutLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + checkoutLocation_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * a path relative to the workspace root in which the code will be checked out
+       * to
+       * 
+ * + * string checkout_location = 5 [json_name = "checkoutLocation"]; + * @return This builder for chaining. + */ + public Builder clearCheckoutLocation() { + checkoutLocation_ = getDefaultInstance().getCheckoutLocation(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * a path relative to the workspace root in which the code will be checked out
+       * to
+       * 
+ * + * string checkout_location = 5 [json_name = "checkoutLocation"]; + * @param value The bytes for checkoutLocation to set. + * @return This builder for chaining. + */ + public Builder setCheckoutLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + checkoutLocation_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig config_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfigOrBuilder> configBuilder_; + /** + *
+       * config specifies the Git configuration for this workspace
+       * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+       * config specifies the Git configuration for this workspace
+       * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + * @return The config. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.getDefaultInstance() : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + *
+       * config specifies the Git configuration for this workspace
+       * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + */ + public Builder setConfig(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * config specifies the Git configuration for this workspace
+       * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + */ + public Builder setConfig( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * config specifies the Git configuration for this workspace
+       * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + */ + public Builder mergeConfig(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + config_ != null && + config_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+       * config specifies the Git configuration for this workspace
+       * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * config specifies the Git configuration for this workspace
+       * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + *
+       * config specifies the Git configuration for this workspace
+       * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.getDefaultInstance() : config_; + } + } + /** + *
+       * config specifies the Git configuration for this workspace
+       * 
+ * + * .gitpod.v1.GitInitializer.GitConfig config = 6 [json_name = "config"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfig.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer.GitConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GitInitializer) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GitInitializer) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitInitializer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitInitializer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SnapshotInitializerOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.SnapshotInitializer) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * reference of the snapshot to restore
+     * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. + */ + java.lang.String getSnapshotId(); + /** + *
+     * reference of the snapshot to restore
+     * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. + */ + com.google.protobuf.ByteString + getSnapshotIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.SnapshotInitializer} + */ + public static final class SnapshotInitializer extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.SnapshotInitializer) + SnapshotInitializerOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + SnapshotInitializer.class.getName()); + } + // Use SnapshotInitializer.newBuilder() to construct. + private SnapshotInitializer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SnapshotInitializer() { + snapshotId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SnapshotInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SnapshotInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.Builder.class); + } + + public static final int SNAPSHOT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object snapshotId_ = ""; + /** + *
+     * reference of the snapshot to restore
+     * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. + */ + @java.lang.Override + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotId_ = s; + return s; + } + } + /** + *
+     * reference of the snapshot to restore
+     * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, snapshotId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snapshotId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) obj; + + if (!getSnapshotId() + .equals(other.getSnapshotId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.SnapshotInitializer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.SnapshotInitializer) + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SnapshotInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SnapshotInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + snapshotId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_SnapshotInitializer_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshotId_ = snapshotId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer.getDefaultInstance()) return this; + if (!other.getSnapshotId().isEmpty()) { + snapshotId_ = other.snapshotId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + snapshotId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object snapshotId_ = ""; + /** + *
+       * reference of the snapshot to restore
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. + */ + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * reference of the snapshot to restore
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. + */ + public com.google.protobuf.ByteString + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * reference of the snapshot to restore
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @param value The snapshotId to set. + * @return This builder for chaining. + */ + public Builder setSnapshotId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + snapshotId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * reference of the snapshot to restore
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return This builder for chaining. + */ + public Builder clearSnapshotId() { + snapshotId_ = getDefaultInstance().getSnapshotId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * reference of the snapshot to restore
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @param value The bytes for snapshotId to set. + * @return This builder for chaining. + */ + public Builder setSnapshotIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + snapshotId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.SnapshotInitializer) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.SnapshotInitializer) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotInitializer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.SnapshotInitializer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrebuildInitializerOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.PrebuildInitializer) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * reference of the prebuild to restore
+     * 
+ * + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + java.lang.String getPrebuildId(); + /** + *
+     * reference of the prebuild to restore
+     * 
+ * + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + com.google.protobuf.ByteString + getPrebuildIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.PrebuildInitializer} + */ + public static final class PrebuildInitializer extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.PrebuildInitializer) + PrebuildInitializerOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + PrebuildInitializer.class.getName()); + } + // Use PrebuildInitializer.newBuilder() to construct. + private PrebuildInitializer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrebuildInitializer() { + prebuildId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_PrebuildInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_PrebuildInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.Builder.class); + } + + public static final int PREBUILD_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object prebuildId_ = ""; + /** + *
+     * reference of the prebuild to restore
+     * 
+ * + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + @java.lang.Override + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } + } + /** + *
+     * reference of the prebuild to restore
+     * 
+ * + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, prebuildId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, prebuildId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) obj; + + if (!getPrebuildId() + .equals(other.getPrebuildId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREBUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.PrebuildInitializer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.PrebuildInitializer) + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_PrebuildInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_PrebuildInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prebuildId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_PrebuildInitializer_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prebuildId_ = prebuildId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer.getDefaultInstance()) return this; + if (!other.getPrebuildId().isEmpty()) { + prebuildId_ = other.prebuildId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + prebuildId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object prebuildId_ = ""; + /** + *
+       * reference of the prebuild to restore
+       * 
+ * + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * reference of the prebuild to restore
+       * 
+ * + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. + */ + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * reference of the prebuild to restore
+       * 
+ * + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prebuildId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * reference of the prebuild to restore
+       * 
+ * + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @return This builder for chaining. + */ + public Builder clearPrebuildId() { + prebuildId_ = getDefaultInstance().getPrebuildId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * reference of the prebuild to restore
+       * 
+ * + * string prebuild_id = 1 [json_name = "prebuildId"]; + * @param value The bytes for prebuildId to set. + * @return This builder for chaining. + */ + public Builder setPrebuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prebuildId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.PrebuildInitializer) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.PrebuildInitializer) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuildInitializer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.PrebuildInitializer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FileDownloadInitializerOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.FileDownloadInitializer) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + java.util.List + getFilesList(); + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo getFiles(int index); + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + int getFilesCount(); + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + java.util.List + getFilesOrBuilderList(); + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfoOrBuilder getFilesOrBuilder( + int index); + + /** + * string target_location = 2 [json_name = "targetLocation"]; + * @return The targetLocation. + */ + java.lang.String getTargetLocation(); + /** + * string target_location = 2 [json_name = "targetLocation"]; + * @return The bytes for targetLocation. + */ + com.google.protobuf.ByteString + getTargetLocationBytes(); + } + /** + *
+   * FileDownloadInitializer downloads files and uses them as workspace content.
+   * 
+ * + * Protobuf type {@code gitpod.v1.FileDownloadInitializer} + */ + public static final class FileDownloadInitializer extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.FileDownloadInitializer) + FileDownloadInitializerOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + FileDownloadInitializer.class.getName()); + } + // Use FileDownloadInitializer.newBuilder() to construct. + private FileDownloadInitializer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private FileDownloadInitializer() { + files_ = java.util.Collections.emptyList(); + targetLocation_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.Builder.class); + } + + public interface FileInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.FileDownloadInitializer.FileInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string url = 1 [json_name = "url"]; + * @return The url. + */ + java.lang.String getUrl(); + /** + * string url = 1 [json_name = "url"]; + * @return The bytes for url. + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + *
+       * file_path is relative to the target_location, e.g. if target_location is
+       * in `/workspace/myrepo` a file_path of `foobar/file` would produce a file
+       * in `/workspace/myrepo/foobar/file`. file_path must include the filename.
+       * The FileDownloadInitializer will create any parent directories necessary
+       * to place the file.
+       * 
+ * + * string file_path = 2 [json_name = "filePath"]; + * @return The filePath. + */ + java.lang.String getFilePath(); + /** + *
+       * file_path is relative to the target_location, e.g. if target_location is
+       * in `/workspace/myrepo` a file_path of `foobar/file` would produce a file
+       * in `/workspace/myrepo/foobar/file`. file_path must include the filename.
+       * The FileDownloadInitializer will create any parent directories necessary
+       * to place the file.
+       * 
+ * + * string file_path = 2 [json_name = "filePath"]; + * @return The bytes for filePath. + */ + com.google.protobuf.ByteString + getFilePathBytes(); + + /** + *
+       * digest is a hash of the file content in the OCI digest format (see
+       * https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
+       * This information is used to compute subsequent
+       * content versions, and to validate the file content was downloaded
+       * correctly.
+       * 
+ * + * string digest = 3 [json_name = "digest"]; + * @return The digest. + */ + java.lang.String getDigest(); + /** + *
+       * digest is a hash of the file content in the OCI digest format (see
+       * https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
+       * This information is used to compute subsequent
+       * content versions, and to validate the file content was downloaded
+       * correctly.
+       * 
+ * + * string digest = 3 [json_name = "digest"]; + * @return The bytes for digest. + */ + com.google.protobuf.ByteString + getDigestBytes(); + } + /** + * Protobuf type {@code gitpod.v1.FileDownloadInitializer.FileInfo} + */ + public static final class FileInfo extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.FileDownloadInitializer.FileInfo) + FileInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + FileInfo.class.getName()); + } + // Use FileInfo.newBuilder() to construct. + private FileInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private FileInfo() { + url_ = ""; + filePath_ = ""; + digest_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + * string url = 1 [json_name = "url"]; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + * string url = 1 [json_name = "url"]; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object filePath_ = ""; + /** + *
+       * file_path is relative to the target_location, e.g. if target_location is
+       * in `/workspace/myrepo` a file_path of `foobar/file` would produce a file
+       * in `/workspace/myrepo/foobar/file`. file_path must include the filename.
+       * The FileDownloadInitializer will create any parent directories necessary
+       * to place the file.
+       * 
+ * + * string file_path = 2 [json_name = "filePath"]; + * @return The filePath. + */ + @java.lang.Override + public java.lang.String getFilePath() { + java.lang.Object ref = filePath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filePath_ = s; + return s; + } + } + /** + *
+       * file_path is relative to the target_location, e.g. if target_location is
+       * in `/workspace/myrepo` a file_path of `foobar/file` would produce a file
+       * in `/workspace/myrepo/foobar/file`. file_path must include the filename.
+       * The FileDownloadInitializer will create any parent directories necessary
+       * to place the file.
+       * 
+ * + * string file_path = 2 [json_name = "filePath"]; + * @return The bytes for filePath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilePathBytes() { + java.lang.Object ref = filePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIGEST_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object digest_ = ""; + /** + *
+       * digest is a hash of the file content in the OCI digest format (see
+       * https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
+       * This information is used to compute subsequent
+       * content versions, and to validate the file content was downloaded
+       * correctly.
+       * 
+ * + * string digest = 3 [json_name = "digest"]; + * @return The digest. + */ + @java.lang.Override + public java.lang.String getDigest() { + java.lang.Object ref = digest_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + digest_ = s; + return s; + } + } + /** + *
+       * digest is a hash of the file content in the OCI digest format (see
+       * https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
+       * This information is used to compute subsequent
+       * content versions, and to validate the file content was downloaded
+       * correctly.
+       * 
+ * + * string digest = 3 [json_name = "digest"]; + * @return The bytes for digest. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDigestBytes() { + java.lang.Object ref = digest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + digest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filePath_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(digest_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, digest_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filePath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filePath_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(digest_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, digest_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo) obj; + + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getFilePath() + .equals(other.getFilePath())) return false; + if (!getDigest() + .equals(other.getDigest())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFilePath().hashCode(); + hash = (37 * hash) + DIGEST_FIELD_NUMBER; + hash = (53 * hash) + getDigest().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.FileDownloadInitializer.FileInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.FileDownloadInitializer.FileInfo) + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + url_ = ""; + filePath_ = ""; + digest_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filePath_ = filePath_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.digest_ = digest_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilePath().isEmpty()) { + filePath_ = other.filePath_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDigest().isEmpty()) { + digest_ = other.digest_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filePath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + digest_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object url_ = ""; + /** + * string url = 1 [json_name = "url"]; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string url = 1 [json_name = "url"]; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string url = 1 [json_name = "url"]; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string url = 1 [json_name = "url"]; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string url = 1 [json_name = "url"]; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filePath_ = ""; + /** + *
+         * file_path is relative to the target_location, e.g. if target_location is
+         * in `/workspace/myrepo` a file_path of `foobar/file` would produce a file
+         * in `/workspace/myrepo/foobar/file`. file_path must include the filename.
+         * The FileDownloadInitializer will create any parent directories necessary
+         * to place the file.
+         * 
+ * + * string file_path = 2 [json_name = "filePath"]; + * @return The filePath. + */ + public java.lang.String getFilePath() { + java.lang.Object ref = filePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * file_path is relative to the target_location, e.g. if target_location is
+         * in `/workspace/myrepo` a file_path of `foobar/file` would produce a file
+         * in `/workspace/myrepo/foobar/file`. file_path must include the filename.
+         * The FileDownloadInitializer will create any parent directories necessary
+         * to place the file.
+         * 
+ * + * string file_path = 2 [json_name = "filePath"]; + * @return The bytes for filePath. + */ + public com.google.protobuf.ByteString + getFilePathBytes() { + java.lang.Object ref = filePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * file_path is relative to the target_location, e.g. if target_location is
+         * in `/workspace/myrepo` a file_path of `foobar/file` would produce a file
+         * in `/workspace/myrepo/foobar/file`. file_path must include the filename.
+         * The FileDownloadInitializer will create any parent directories necessary
+         * to place the file.
+         * 
+ * + * string file_path = 2 [json_name = "filePath"]; + * @param value The filePath to set. + * @return This builder for chaining. + */ + public Builder setFilePath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + filePath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * file_path is relative to the target_location, e.g. if target_location is
+         * in `/workspace/myrepo` a file_path of `foobar/file` would produce a file
+         * in `/workspace/myrepo/foobar/file`. file_path must include the filename.
+         * The FileDownloadInitializer will create any parent directories necessary
+         * to place the file.
+         * 
+ * + * string file_path = 2 [json_name = "filePath"]; + * @return This builder for chaining. + */ + public Builder clearFilePath() { + filePath_ = getDefaultInstance().getFilePath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * file_path is relative to the target_location, e.g. if target_location is
+         * in `/workspace/myrepo` a file_path of `foobar/file` would produce a file
+         * in `/workspace/myrepo/foobar/file`. file_path must include the filename.
+         * The FileDownloadInitializer will create any parent directories necessary
+         * to place the file.
+         * 
+ * + * string file_path = 2 [json_name = "filePath"]; + * @param value The bytes for filePath to set. + * @return This builder for chaining. + */ + public Builder setFilePathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filePath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object digest_ = ""; + /** + *
+         * digest is a hash of the file content in the OCI digest format (see
+         * https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
+         * This information is used to compute subsequent
+         * content versions, and to validate the file content was downloaded
+         * correctly.
+         * 
+ * + * string digest = 3 [json_name = "digest"]; + * @return The digest. + */ + public java.lang.String getDigest() { + java.lang.Object ref = digest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + digest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * digest is a hash of the file content in the OCI digest format (see
+         * https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
+         * This information is used to compute subsequent
+         * content versions, and to validate the file content was downloaded
+         * correctly.
+         * 
+ * + * string digest = 3 [json_name = "digest"]; + * @return The bytes for digest. + */ + public com.google.protobuf.ByteString + getDigestBytes() { + java.lang.Object ref = digest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + digest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * digest is a hash of the file content in the OCI digest format (see
+         * https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
+         * This information is used to compute subsequent
+         * content versions, and to validate the file content was downloaded
+         * correctly.
+         * 
+ * + * string digest = 3 [json_name = "digest"]; + * @param value The digest to set. + * @return This builder for chaining. + */ + public Builder setDigest( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + digest_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * digest is a hash of the file content in the OCI digest format (see
+         * https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
+         * This information is used to compute subsequent
+         * content versions, and to validate the file content was downloaded
+         * correctly.
+         * 
+ * + * string digest = 3 [json_name = "digest"]; + * @return This builder for chaining. + */ + public Builder clearDigest() { + digest_ = getDefaultInstance().getDigest(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+         * digest is a hash of the file content in the OCI digest format (see
+         * https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
+         * This information is used to compute subsequent
+         * content versions, and to validate the file content was downloaded
+         * correctly.
+         * 
+ * + * string digest = 3 [json_name = "digest"]; + * @param value The bytes for digest to set. + * @return This builder for chaining. + */ + public Builder setDigestBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + digest_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.FileDownloadInitializer.FileInfo) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.FileDownloadInitializer.FileInfo) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int FILES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List files_; + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo getFiles(int index) { + return files_.get(index); + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfoOrBuilder getFilesOrBuilder( + int index) { + return files_.get(index); + } + + public static final int TARGET_LOCATION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object targetLocation_ = ""; + /** + * string target_location = 2 [json_name = "targetLocation"]; + * @return The targetLocation. + */ + @java.lang.Override + public java.lang.String getTargetLocation() { + java.lang.Object ref = targetLocation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLocation_ = s; + return s; + } + } + /** + * string target_location = 2 [json_name = "targetLocation"]; + * @return The bytes for targetLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetLocationBytes() { + java.lang.Object ref = targetLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(1, files_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetLocation_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, targetLocation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, files_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetLocation_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, targetLocation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) obj; + + if (!getFilesList() + .equals(other.getFilesList())) return false; + if (!getTargetLocation() + .equals(other.getTargetLocation())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (37 * hash) + TARGET_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getTargetLocation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * FileDownloadInitializer downloads files and uses them as workspace content.
+     * 
+ * + * Protobuf type {@code gitpod.v1.FileDownloadInitializer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.FileDownloadInitializer) + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + targetLocation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_FileDownloadInitializer_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetLocation_ = targetLocation_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.getDefaultInstance()) return this; + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000001); + filesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getFilesFieldBuilder() : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + if (!other.getTargetLocation().isEmpty()) { + targetLocation_ = other.targetLocation_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo m = + input.readMessage( + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.parser(), + extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + targetLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List files_ = + java.util.Collections.emptyList(); + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfoOrBuilder> filesBuilder_; + + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public Builder setFiles( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public Builder setFiles( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public Builder addFiles(io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public Builder addFiles( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public Builder addFiles( + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public Builder addFiles( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder getFilesBuilder( + int index) { + return getFilesFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfoOrBuilder getFilesOrBuilder( + int index) { + if (filesBuilder_ == null) { + return files_.get(index); } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder addFilesBuilder() { + return getFilesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder addFilesBuilder( + int index) { + return getFilesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.FileDownloadInitializer.FileInfo files = 1 [json_name = "files"]; + */ + public java.util.List + getFilesBuilderList() { + return getFilesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfoOrBuilder> + getFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfo.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer.FileInfoOrBuilder>( + files_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + files_ = null; + } + return filesBuilder_; + } + + private java.lang.Object targetLocation_ = ""; + /** + * string target_location = 2 [json_name = "targetLocation"]; + * @return The targetLocation. + */ + public java.lang.String getTargetLocation() { + java.lang.Object ref = targetLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string target_location = 2 [json_name = "targetLocation"]; + * @return The bytes for targetLocation. + */ + public com.google.protobuf.ByteString + getTargetLocationBytes() { + java.lang.Object ref = targetLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string target_location = 2 [json_name = "targetLocation"]; + * @param value The targetLocation to set. + * @return This builder for chaining. + */ + public Builder setTargetLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + targetLocation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string target_location = 2 [json_name = "targetLocation"]; + * @return This builder for chaining. + */ + public Builder clearTargetLocation() { + targetLocation_ = getDefaultInstance().getTargetLocation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string target_location = 2 [json_name = "targetLocation"]; + * @param value The bytes for targetLocation to set. + * @return This builder for chaining. + */ + public Builder setTargetLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + targetLocation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.FileDownloadInitializer) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.FileDownloadInitializer) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileDownloadInitializer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.FileDownloadInitializer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GitStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.GitStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The branch. + */ + java.lang.String getBranch(); + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The bytes for branch. + */ + com.google.protobuf.ByteString + getBranchBytes(); + + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The latestCommit. + */ + java.lang.String getLatestCommit(); + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The bytes for latestCommit. + */ + com.google.protobuf.ByteString + getLatestCommitBytes(); + + /** + *
+     * uncommited_files is the number of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return A list containing the uncommitedFiles. + */ + java.util.List + getUncommitedFilesList(); + /** + *
+     * uncommited_files is the number of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return The count of uncommitedFiles. + */ + int getUncommitedFilesCount(); + /** + *
+     * uncommited_files is the number of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the element to return. + * @return The uncommitedFiles at the given index. + */ + java.lang.String getUncommitedFiles(int index); + /** + *
+     * uncommited_files is the number of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the uncommitedFiles at the given index. + */ + com.google.protobuf.ByteString + getUncommitedFilesBytes(int index); + + /** + *
+     * the total number of uncommited files
+     * 
+ * + * int64 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @return The totalUncommitedFiles. + */ + long getTotalUncommitedFiles(); + + /** + *
+     * untracked_files is the number of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return A list containing the untrackedFiles. + */ + java.util.List + getUntrackedFilesList(); + /** + *
+     * untracked_files is the number of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return The count of untrackedFiles. + */ + int getUntrackedFilesCount(); + /** + *
+     * untracked_files is the number of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the element to return. + * @return The untrackedFiles at the given index. + */ + java.lang.String getUntrackedFiles(int index); + /** + *
+     * untracked_files is the number of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the untrackedFiles at the given index. + */ + com.google.protobuf.ByteString + getUntrackedFilesBytes(int index); + + /** + *
+     * the total number of untracked files
+     * 
+ * + * int64 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return The totalUntrackedFiles. + */ + long getTotalUntrackedFiles(); + + /** + *
+     * unpushed_commits is the number of unpushed changes in the workspace,
+     * possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return A list containing the unpushedCommits. + */ + java.util.List + getUnpushedCommitsList(); + /** + *
+     * unpushed_commits is the number of unpushed changes in the workspace,
+     * possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return The count of unpushedCommits. + */ + int getUnpushedCommitsCount(); + /** + *
+     * unpushed_commits is the number of unpushed changes in the workspace,
+     * possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the element to return. + * @return The unpushedCommits at the given index. + */ + java.lang.String getUnpushedCommits(int index); + /** + *
+     * unpushed_commits is the number of unpushed changes in the workspace,
+     * possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the value to return. + * @return The bytes of the unpushedCommits at the given index. + */ + com.google.protobuf.ByteString + getUnpushedCommitsBytes(int index); + + /** + *
+     * the total number of unpushed changes
+     * 
+ * + * int64 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @return The totalUnpushedCommits. + */ + long getTotalUnpushedCommits(); + } + /** + *
+   * GitStatus describes the current Git working copy status, akin to a
+   * combination of "git status" and "git branch"
+   * 
+ * + * Protobuf type {@code gitpod.v1.GitStatus} + */ + public static final class GitStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.GitStatus) + GitStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + GitStatus.class.getName()); + } + // Use GitStatus.newBuilder() to construct. + private GitStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GitStatus() { + branch_ = ""; + latestCommit_ = ""; + uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus.Builder.class); + } + + public static final int BRANCH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object branch_ = ""; + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } + } + /** + *
+     * branch is branch we're currently on
+     * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATEST_COMMIT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object latestCommit_ = ""; + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The latestCommit. + */ + @java.lang.Override + public java.lang.String getLatestCommit() { + java.lang.Object ref = latestCommit_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestCommit_ = s; + return s; + } + } + /** + *
+     * latest_commit is the most recent commit on the current branch
+     * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The bytes for latestCommit. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLatestCommitBytes() { + java.lang.Object ref = latestCommit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + latestCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNCOMMITED_FILES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * uncommited_files is the number of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return A list containing the uncommitedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUncommitedFilesList() { + return uncommitedFiles_; + } + /** + *
+     * uncommited_files is the number of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return The count of uncommitedFiles. + */ + public int getUncommitedFilesCount() { + return uncommitedFiles_.size(); + } + /** + *
+     * uncommited_files is the number of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the element to return. + * @return The uncommitedFiles at the given index. + */ + public java.lang.String getUncommitedFiles(int index) { + return uncommitedFiles_.get(index); + } + /** + *
+     * uncommited_files is the number of uncommitted files, possibly truncated
+     * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the uncommitedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUncommitedFilesBytes(int index) { + return uncommitedFiles_.getByteString(index); + } + + public static final int TOTAL_UNCOMMITED_FILES_FIELD_NUMBER = 6; + private long totalUncommitedFiles_ = 0L; + /** + *
+     * the total number of uncommited files
+     * 
+ * + * int64 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @return The totalUncommitedFiles. + */ + @java.lang.Override + public long getTotalUncommitedFiles() { + return totalUncommitedFiles_; + } + + public static final int UNTRACKED_FILES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * untracked_files is the number of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return A list containing the untrackedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUntrackedFilesList() { + return untrackedFiles_; + } + /** + *
+     * untracked_files is the number of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return The count of untrackedFiles. + */ + public int getUntrackedFilesCount() { + return untrackedFiles_.size(); + } + /** + *
+     * untracked_files is the number of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the element to return. + * @return The untrackedFiles at the given index. + */ + public java.lang.String getUntrackedFiles(int index) { + return untrackedFiles_.get(index); + } + /** + *
+     * untracked_files is the number of untracked files in the workspace, possibly
+     * truncated
+     * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the untrackedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUntrackedFilesBytes(int index) { + return untrackedFiles_.getByteString(index); + } + + public static final int TOTAL_UNTRACKED_FILES_FIELD_NUMBER = 7; + private long totalUntrackedFiles_ = 0L; + /** + *
+     * the total number of untracked files
+     * 
+ * + * int64 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return The totalUntrackedFiles. + */ + @java.lang.Override + public long getTotalUntrackedFiles() { + return totalUntrackedFiles_; + } + + public static final int UNPUSHED_COMMITS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * unpushed_commits is the number of unpushed changes in the workspace,
+     * possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return A list containing the unpushedCommits. + */ + public com.google.protobuf.ProtocolStringList + getUnpushedCommitsList() { + return unpushedCommits_; + } + /** + *
+     * unpushed_commits is the number of unpushed changes in the workspace,
+     * possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return The count of unpushedCommits. + */ + public int getUnpushedCommitsCount() { + return unpushedCommits_.size(); + } + /** + *
+     * unpushed_commits is the number of unpushed changes in the workspace,
+     * possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the element to return. + * @return The unpushedCommits at the given index. + */ + public java.lang.String getUnpushedCommits(int index) { + return unpushedCommits_.get(index); + } + /** + *
+     * unpushed_commits is the number of unpushed changes in the workspace,
+     * possibly truncated
+     * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the value to return. + * @return The bytes of the unpushedCommits at the given index. + */ + public com.google.protobuf.ByteString + getUnpushedCommitsBytes(int index) { + return unpushedCommits_.getByteString(index); + } + + public static final int TOTAL_UNPUSHED_COMMITS_FIELD_NUMBER = 8; + private long totalUnpushedCommits_ = 0L; + /** + *
+     * the total number of unpushed changes
+     * 
+ * + * int64 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @return The totalUnpushedCommits. + */ + @java.lang.Override + public long getTotalUnpushedCommits() { + return totalUnpushedCommits_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestCommit_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, latestCommit_); + } + for (int i = 0; i < uncommitedFiles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, uncommitedFiles_.getRaw(i)); + } + for (int i = 0; i < untrackedFiles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, untrackedFiles_.getRaw(i)); + } + for (int i = 0; i < unpushedCommits_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, unpushedCommits_.getRaw(i)); + } + if (totalUncommitedFiles_ != 0L) { + output.writeInt64(6, totalUncommitedFiles_); + } + if (totalUntrackedFiles_ != 0L) { + output.writeInt64(7, totalUntrackedFiles_); + } + if (totalUnpushedCommits_ != 0L) { + output.writeInt64(8, totalUnpushedCommits_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestCommit_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, latestCommit_); + } + { + int dataSize = 0; + for (int i = 0; i < uncommitedFiles_.size(); i++) { + dataSize += computeStringSizeNoTag(uncommitedFiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getUncommitedFilesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < untrackedFiles_.size(); i++) { + dataSize += computeStringSizeNoTag(untrackedFiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getUntrackedFilesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < unpushedCommits_.size(); i++) { + dataSize += computeStringSizeNoTag(unpushedCommits_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnpushedCommitsList().size(); + } + if (totalUncommitedFiles_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, totalUncommitedFiles_); + } + if (totalUntrackedFiles_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, totalUntrackedFiles_); + } + if (totalUnpushedCommits_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, totalUnpushedCommits_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus) obj; + + if (!getBranch() + .equals(other.getBranch())) return false; + if (!getLatestCommit() + .equals(other.getLatestCommit())) return false; + if (!getUncommitedFilesList() + .equals(other.getUncommitedFilesList())) return false; + if (getTotalUncommitedFiles() + != other.getTotalUncommitedFiles()) return false; + if (!getUntrackedFilesList() + .equals(other.getUntrackedFilesList())) return false; + if (getTotalUntrackedFiles() + != other.getTotalUntrackedFiles()) return false; + if (!getUnpushedCommitsList() + .equals(other.getUnpushedCommitsList())) return false; + if (getTotalUnpushedCommits() + != other.getTotalUnpushedCommits()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + hash = (37 * hash) + LATEST_COMMIT_FIELD_NUMBER; + hash = (53 * hash) + getLatestCommit().hashCode(); + if (getUncommitedFilesCount() > 0) { + hash = (37 * hash) + UNCOMMITED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getUncommitedFilesList().hashCode(); + } + hash = (37 * hash) + TOTAL_UNCOMMITED_FILES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalUncommitedFiles()); + if (getUntrackedFilesCount() > 0) { + hash = (37 * hash) + UNTRACKED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getUntrackedFilesList().hashCode(); + } + hash = (37 * hash) + TOTAL_UNTRACKED_FILES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalUntrackedFiles()); + if (getUnpushedCommitsCount() > 0) { + hash = (37 * hash) + UNPUSHED_COMMITS_FIELD_NUMBER; + hash = (53 * hash) + getUnpushedCommitsList().hashCode(); + } + hash = (37 * hash) + TOTAL_UNPUSHED_COMMITS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalUnpushedCommits()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * GitStatus describes the current Git working copy status, akin to a
+     * combination of "git status" and "git branch"
+     * 
+ * + * Protobuf type {@code gitpod.v1.GitStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.GitStatus) + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + branch_ = ""; + latestCommit_ = ""; + uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + totalUncommitedFiles_ = 0L; + untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + totalUntrackedFiles_ = 0L; + unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + totalUnpushedCommits_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_GitStatus_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.branch_ = branch_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.latestCommit_ = latestCommit_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + uncommitedFiles_.makeImmutable(); + result.uncommitedFiles_ = uncommitedFiles_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.totalUncommitedFiles_ = totalUncommitedFiles_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + untrackedFiles_.makeImmutable(); + result.untrackedFiles_ = untrackedFiles_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.totalUntrackedFiles_ = totalUntrackedFiles_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + unpushedCommits_.makeImmutable(); + result.unpushedCommits_ = unpushedCommits_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.totalUnpushedCommits_ = totalUnpushedCommits_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus.getDefaultInstance()) return this; + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLatestCommit().isEmpty()) { + latestCommit_ = other.latestCommit_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.uncommitedFiles_.isEmpty()) { + if (uncommitedFiles_.isEmpty()) { + uncommitedFiles_ = other.uncommitedFiles_; + bitField0_ |= 0x00000004; + } else { + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.addAll(other.uncommitedFiles_); + } + onChanged(); + } + if (other.getTotalUncommitedFiles() != 0L) { + setTotalUncommitedFiles(other.getTotalUncommitedFiles()); + } + if (!other.untrackedFiles_.isEmpty()) { + if (untrackedFiles_.isEmpty()) { + untrackedFiles_ = other.untrackedFiles_; + bitField0_ |= 0x00000010; + } else { + ensureUntrackedFilesIsMutable(); + untrackedFiles_.addAll(other.untrackedFiles_); + } + onChanged(); + } + if (other.getTotalUntrackedFiles() != 0L) { + setTotalUntrackedFiles(other.getTotalUntrackedFiles()); + } + if (!other.unpushedCommits_.isEmpty()) { + if (unpushedCommits_.isEmpty()) { + unpushedCommits_ = other.unpushedCommits_; + bitField0_ |= 0x00000040; + } else { + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.addAll(other.unpushedCommits_); + } + onChanged(); + } + if (other.getTotalUnpushedCommits() != 0L) { + setTotalUnpushedCommits(other.getTotalUnpushedCommits()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + latestCommit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUntrackedFilesIsMutable(); + untrackedFiles_.add(s); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.add(s); + break; + } // case 42 + case 48: { + totalUncommitedFiles_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 56: { + totalUntrackedFiles_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: { + totalUnpushedCommits_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object branch_ = ""; + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + branch_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * branch is branch we're currently on
+       * 
+ * + * string branch = 1 [json_name = "branch"]; + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object latestCommit_ = ""; + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The latestCommit. + */ + public java.lang.String getLatestCommit() { + java.lang.Object ref = latestCommit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestCommit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return The bytes for latestCommit. + */ + public com.google.protobuf.ByteString + getLatestCommitBytes() { + java.lang.Object ref = latestCommit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + latestCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @param value The latestCommit to set. + * @return This builder for chaining. + */ + public Builder setLatestCommit( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + latestCommit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @return This builder for chaining. + */ + public Builder clearLatestCommit() { + latestCommit_ = getDefaultInstance().getLatestCommit(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * latest_commit is the most recent commit on the current branch
+       * 
+ * + * string latest_commit = 2 [json_name = "latestCommit"]; + * @param value The bytes for latestCommit to set. + * @return This builder for chaining. + */ + public Builder setLatestCommitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + latestCommit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUncommitedFilesIsMutable() { + if (!uncommitedFiles_.isModifiable()) { + uncommitedFiles_ = new com.google.protobuf.LazyStringArrayList(uncommitedFiles_); + } + bitField0_ |= 0x00000004; + } + /** + *
+       * uncommited_files is the number of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return A list containing the uncommitedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUncommitedFilesList() { + uncommitedFiles_.makeImmutable(); + return uncommitedFiles_; + } + /** + *
+       * uncommited_files is the number of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return The count of uncommitedFiles. + */ + public int getUncommitedFilesCount() { + return uncommitedFiles_.size(); + } + /** + *
+       * uncommited_files is the number of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the element to return. + * @return The uncommitedFiles at the given index. + */ + public java.lang.String getUncommitedFiles(int index) { + return uncommitedFiles_.get(index); + } + /** + *
+       * uncommited_files is the number of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the uncommitedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUncommitedFilesBytes(int index) { + return uncommitedFiles_.getByteString(index); + } + /** + *
+       * uncommited_files is the number of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param index The index to set the value at. + * @param value The uncommitedFiles to set. + * @return This builder for chaining. + */ + public Builder setUncommitedFiles( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is the number of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param value The uncommitedFiles to add. + * @return This builder for chaining. + */ + public Builder addUncommitedFiles( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is the number of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param values The uncommitedFiles to add. + * @return This builder for chaining. + */ + public Builder addAllUncommitedFiles( + java.lang.Iterable values) { + ensureUncommitedFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uncommitedFiles_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is the number of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @return This builder for chaining. + */ + public Builder clearUncommitedFiles() { + uncommitedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+       * uncommited_files is the number of uncommitted files, possibly truncated
+       * 
+ * + * repeated string uncommited_files = 3 [json_name = "uncommitedFiles"]; + * @param value The bytes of the uncommitedFiles to add. + * @return This builder for chaining. + */ + public Builder addUncommitedFilesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUncommitedFilesIsMutable(); + uncommitedFiles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long totalUncommitedFiles_ ; + /** + *
+       * the total number of uncommited files
+       * 
+ * + * int64 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @return The totalUncommitedFiles. + */ + @java.lang.Override + public long getTotalUncommitedFiles() { + return totalUncommitedFiles_; + } + /** + *
+       * the total number of uncommited files
+       * 
+ * + * int64 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @param value The totalUncommitedFiles to set. + * @return This builder for chaining. + */ + public Builder setTotalUncommitedFiles(long value) { + + totalUncommitedFiles_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * the total number of uncommited files
+       * 
+ * + * int64 total_uncommited_files = 6 [json_name = "totalUncommitedFiles"]; + * @return This builder for chaining. + */ + public Builder clearTotalUncommitedFiles() { + bitField0_ = (bitField0_ & ~0x00000008); + totalUncommitedFiles_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUntrackedFilesIsMutable() { + if (!untrackedFiles_.isModifiable()) { + untrackedFiles_ = new com.google.protobuf.LazyStringArrayList(untrackedFiles_); + } + bitField0_ |= 0x00000010; + } + /** + *
+       * untracked_files is the number of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return A list containing the untrackedFiles. + */ + public com.google.protobuf.ProtocolStringList + getUntrackedFilesList() { + untrackedFiles_.makeImmutable(); + return untrackedFiles_; + } + /** + *
+       * untracked_files is the number of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return The count of untrackedFiles. + */ + public int getUntrackedFilesCount() { + return untrackedFiles_.size(); + } + /** + *
+       * untracked_files is the number of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the element to return. + * @return The untrackedFiles at the given index. + */ + public java.lang.String getUntrackedFiles(int index) { + return untrackedFiles_.get(index); + } + /** + *
+       * untracked_files is the number of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index of the value to return. + * @return The bytes of the untrackedFiles at the given index. + */ + public com.google.protobuf.ByteString + getUntrackedFilesBytes(int index) { + return untrackedFiles_.getByteString(index); + } + /** + *
+       * untracked_files is the number of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param index The index to set the value at. + * @param value The untrackedFiles to set. + * @return This builder for chaining. + */ + public Builder setUntrackedFiles( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUntrackedFilesIsMutable(); + untrackedFiles_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * untracked_files is the number of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param value The untrackedFiles to add. + * @return This builder for chaining. + */ + public Builder addUntrackedFiles( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUntrackedFilesIsMutable(); + untrackedFiles_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * untracked_files is the number of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param values The untrackedFiles to add. + * @return This builder for chaining. + */ + public Builder addAllUntrackedFiles( + java.lang.Iterable values) { + ensureUntrackedFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, untrackedFiles_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * untracked_files is the number of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @return This builder for chaining. + */ + public Builder clearUntrackedFiles() { + untrackedFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + *
+       * untracked_files is the number of untracked files in the workspace, possibly
+       * truncated
+       * 
+ * + * repeated string untracked_files = 4 [json_name = "untrackedFiles"]; + * @param value The bytes of the untrackedFiles to add. + * @return This builder for chaining. + */ + public Builder addUntrackedFilesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUntrackedFilesIsMutable(); + untrackedFiles_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private long totalUntrackedFiles_ ; + /** + *
+       * the total number of untracked files
+       * 
+ * + * int64 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return The totalUntrackedFiles. + */ + @java.lang.Override + public long getTotalUntrackedFiles() { + return totalUntrackedFiles_; + } + /** + *
+       * the total number of untracked files
+       * 
+ * + * int64 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @param value The totalUntrackedFiles to set. + * @return This builder for chaining. + */ + public Builder setTotalUntrackedFiles(long value) { + + totalUntrackedFiles_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * the total number of untracked files
+       * 
+ * + * int64 total_untracked_files = 7 [json_name = "totalUntrackedFiles"]; + * @return This builder for chaining. + */ + public Builder clearTotalUntrackedFiles() { + bitField0_ = (bitField0_ & ~0x00000020); + totalUntrackedFiles_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnpushedCommitsIsMutable() { + if (!unpushedCommits_.isModifiable()) { + unpushedCommits_ = new com.google.protobuf.LazyStringArrayList(unpushedCommits_); + } + bitField0_ |= 0x00000040; + } + /** + *
+       * unpushed_commits is the number of unpushed changes in the workspace,
+       * possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return A list containing the unpushedCommits. + */ + public com.google.protobuf.ProtocolStringList + getUnpushedCommitsList() { + unpushedCommits_.makeImmutable(); + return unpushedCommits_; + } + /** + *
+       * unpushed_commits is the number of unpushed changes in the workspace,
+       * possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return The count of unpushedCommits. + */ + public int getUnpushedCommitsCount() { + return unpushedCommits_.size(); + } + /** + *
+       * unpushed_commits is the number of unpushed changes in the workspace,
+       * possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the element to return. + * @return The unpushedCommits at the given index. + */ + public java.lang.String getUnpushedCommits(int index) { + return unpushedCommits_.get(index); + } + /** + *
+       * unpushed_commits is the number of unpushed changes in the workspace,
+       * possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index of the value to return. + * @return The bytes of the unpushedCommits at the given index. + */ + public com.google.protobuf.ByteString + getUnpushedCommitsBytes(int index) { + return unpushedCommits_.getByteString(index); + } + /** + *
+       * unpushed_commits is the number of unpushed changes in the workspace,
+       * possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param index The index to set the value at. + * @param value The unpushedCommits to set. + * @return This builder for chaining. + */ + public Builder setUnpushedCommits( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is the number of unpushed changes in the workspace,
+       * possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param value The unpushedCommits to add. + * @return This builder for chaining. + */ + public Builder addUnpushedCommits( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is the number of unpushed changes in the workspace,
+       * possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param values The unpushedCommits to add. + * @return This builder for chaining. + */ + public Builder addAllUnpushedCommits( + java.lang.Iterable values) { + ensureUnpushedCommitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unpushedCommits_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is the number of unpushed changes in the workspace,
+       * possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @return This builder for chaining. + */ + public Builder clearUnpushedCommits() { + unpushedCommits_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + onChanged(); + return this; + } + /** + *
+       * unpushed_commits is the number of unpushed changes in the workspace,
+       * possibly truncated
+       * 
+ * + * repeated string unpushed_commits = 5 [json_name = "unpushedCommits"]; + * @param value The bytes of the unpushedCommits to add. + * @return This builder for chaining. + */ + public Builder addUnpushedCommitsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUnpushedCommitsIsMutable(); + unpushedCommits_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private long totalUnpushedCommits_ ; + /** + *
+       * the total number of unpushed changes
+       * 
+ * + * int64 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @return The totalUnpushedCommits. + */ + @java.lang.Override + public long getTotalUnpushedCommits() { + return totalUnpushedCommits_; + } + /** + *
+       * the total number of unpushed changes
+       * 
+ * + * int64 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @param value The totalUnpushedCommits to set. + * @return This builder for chaining. + */ + public Builder setTotalUnpushedCommits(long value) { + + totalUnpushedCommits_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * the total number of unpushed changes
+       * 
+ * + * int64 total_unpushed_commits = 8 [json_name = "totalUnpushedCommits"]; + * @return This builder for chaining. + */ + public Builder clearTotalUnpushedCommits() { + bitField0_ = (bitField0_ & ~0x00000080); + totalUnpushedCommits_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.GitStatus) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.GitStatus) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.GitStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies the workspace to update
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies the workspace to update
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return The metadata. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata getMetadata(); + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + boolean hasSpec(); + /** + *
+     * spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + * @return The spec. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec getSpec(); + /** + *
+     * spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * git_status updates the git status of the workspace - this is only here
+     * during the migration
+     * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + * @deprecated gitpod.v1.UpdateWorkspaceRequest.git_status is deprecated. + * See gitpod/v1/workspace.proto;l=790 + * @return Whether the gitStatus field is set. + */ + @java.lang.Deprecated boolean hasGitStatus(); + /** + *
+     * git_status updates the git status of the workspace - this is only here
+     * during the migration
+     * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + * @deprecated gitpod.v1.UpdateWorkspaceRequest.git_status is deprecated. + * See gitpod/v1/workspace.proto;l=790 + * @return The gitStatus. + */ + @java.lang.Deprecated io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus getGitStatus(); + /** + *
+     * git_status updates the git status of the workspace - this is only here
+     * during the migration
+     * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + */ + @java.lang.Deprecated io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder getGitStatusOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspaceRequest} + */ + public static final class UpdateWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateWorkspaceRequest) + UpdateWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateWorkspaceRequest.class.getName()); + } + // Use UpdateWorkspaceRequest.newBuilder() to construct. + private UpdateWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateWorkspaceRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.Builder.class); + } + + public interface UpdateWorkspaceMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+       * pinned indicates whether the workspace is pinned
+       * 
+ * + * optional bool pinned = 2 [json_name = "pinned"]; + * @return Whether the pinned field is set. + */ + boolean hasPinned(); + /** + *
+       * pinned indicates whether the workspace is pinned
+       * 
+ * + * optional bool pinned = 2 [json_name = "pinned"]; + * @return The pinned. + */ + boolean getPinned(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata} + */ + public static final class UpdateWorkspaceMetadata extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata) + UpdateWorkspaceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateWorkspaceMetadata.class.getName()); + } + // Use UpdateWorkspaceMetadata.newBuilder() to construct. + private UpdateWorkspaceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateWorkspaceMetadata() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+       * name is the name of the workspace as specified by the user
+       * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PINNED_FIELD_NUMBER = 2; + private boolean pinned_ = false; + /** + *
+       * pinned indicates whether the workspace is pinned
+       * 
+ * + * optional bool pinned = 2 [json_name = "pinned"]; + * @return Whether the pinned field is set. + */ + @java.lang.Override + public boolean hasPinned() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * pinned indicates whether the workspace is pinned
+       * 
+ * + * optional bool pinned = 2 [json_name = "pinned"]; + * @return The pinned. + */ + @java.lang.Override + public boolean getPinned() { + return pinned_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, pinned_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, pinned_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasPinned() != other.hasPinned()) return false; + if (hasPinned()) { + if (getPinned() + != other.getPinned()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasPinned()) { + hash = (37 * hash) + PINNED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinned()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata) + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pinned_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pinned_ = pinned_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.getDefaultInstance()) return this; + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPinned()) { + setPinned(other.getPinned()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pinned_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+         * name is the name of the workspace as specified by the user
+         * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * name is the name of the workspace as specified by the user
+         * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * name is the name of the workspace as specified by the user
+         * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * name is the name of the workspace as specified by the user
+         * 
+ * + * optional string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * name is the name of the workspace as specified by the user
+         * 
+ * + * optional string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * name is the name of the workspace as specified by the user
+         * 
+ * + * optional string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean pinned_ ; + /** + *
+         * pinned indicates whether the workspace is pinned
+         * 
+ * + * optional bool pinned = 2 [json_name = "pinned"]; + * @return Whether the pinned field is set. + */ + @java.lang.Override + public boolean hasPinned() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * pinned indicates whether the workspace is pinned
+         * 
+ * + * optional bool pinned = 2 [json_name = "pinned"]; + * @return The pinned. + */ + @java.lang.Override + public boolean getPinned() { + return pinned_; + } + /** + *
+         * pinned indicates whether the workspace is pinned
+         * 
+ * + * optional bool pinned = 2 [json_name = "pinned"]; + * @param value The pinned to set. + * @return This builder for chaining. + */ + public Builder setPinned(boolean value) { + + pinned_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * pinned indicates whether the workspace is pinned
+         * 
+ * + * optional bool pinned = 2 [json_name = "pinned"]; + * @return This builder for chaining. + */ + public Builder clearPinned() { + bitField0_ = (bitField0_ & ~0x00000002); + pinned_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkspaceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateTimeoutOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + boolean hasInactivity(); + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + com.google.protobuf.Duration getInactivity(); + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + com.google.protobuf.DurationOrBuilder getInactivityOrBuilder(); + + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return Whether the disconnected field is set. + */ + boolean hasDisconnected(); + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return The disconnected. + */ + com.google.protobuf.Duration getDisconnected(); + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + com.google.protobuf.DurationOrBuilder getDisconnectedOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout} + */ + public static final class UpdateTimeout extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout) + UpdateTimeoutOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateTimeout.class.getName()); + } + // Use UpdateTimeout.newBuilder() to construct. + private UpdateTimeout(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateTimeout() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.Builder.class); + } + + private int bitField0_; + public static final int INACTIVITY_FIELD_NUMBER = 1; + private com.google.protobuf.Duration inactivity_; + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + @java.lang.Override + public boolean hasInactivity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + @java.lang.Override + public com.google.protobuf.Duration getInactivity() { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + /** + *
+       * inacitivity is the maximum time of inactivity before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + + public static final int DISCONNECTED_FIELD_NUMBER = 2; + private com.google.protobuf.Duration disconnected_; + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return Whether the disconnected field is set. + */ + @java.lang.Override + public boolean hasDisconnected() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return The disconnected. + */ + @java.lang.Override + public com.google.protobuf.Duration getDisconnected() { + return disconnected_ == null ? com.google.protobuf.Duration.getDefaultInstance() : disconnected_; + } + /** + *
+       * inacitivity is the maximum time of disconnection before the workspace is
+       * stopped or paused
+       * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDisconnectedOrBuilder() { + return disconnected_ == null ? com.google.protobuf.Duration.getDefaultInstance() : disconnected_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInactivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDisconnected()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInactivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDisconnected()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout) obj; + + if (hasInactivity() != other.hasInactivity()) return false; + if (hasInactivity()) { + if (!getInactivity() + .equals(other.getInactivity())) return false; + } + if (hasDisconnected() != other.hasDisconnected()) return false; + if (hasDisconnected()) { + if (!getDisconnected() + .equals(other.getDisconnected())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInactivity()) { + hash = (37 * hash) + INACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getInactivity().hashCode(); + } + if (hasDisconnected()) { + hash = (37 * hash) + DISCONNECTED_FIELD_NUMBER; + hash = (53 * hash) + getDisconnected().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout) + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeoutOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getInactivityFieldBuilder(); + getDisconnectedFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inactivity_ = null; + if (inactivityBuilder_ != null) { + inactivityBuilder_.dispose(); + inactivityBuilder_ = null; + } + disconnected_ = null; + if (disconnectedBuilder_ != null) { + disconnectedBuilder_.dispose(); + disconnectedBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inactivity_ = inactivityBuilder_ == null + ? inactivity_ + : inactivityBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disconnected_ = disconnectedBuilder_ == null + ? disconnected_ + : disconnectedBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.getDefaultInstance()) return this; + if (other.hasInactivity()) { + mergeInactivity(other.getInactivity()); + } + if (other.hasDisconnected()) { + mergeDisconnected(other.getDisconnected()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getInactivityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDisconnectedFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Duration inactivity_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> inactivityBuilder_; + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return Whether the inactivity field is set. + */ + public boolean hasInactivity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + * @return The inactivity. + */ + public com.google.protobuf.Duration getInactivity() { + if (inactivityBuilder_ == null) { + return inactivity_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } else { + return inactivityBuilder_.getMessage(); + } + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder setInactivity(com.google.protobuf.Duration value) { + if (inactivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inactivity_ = value; + } else { + inactivityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder setInactivity( + com.google.protobuf.Duration.Builder builderForValue) { + if (inactivityBuilder_ == null) { + inactivity_ = builderForValue.build(); + } else { + inactivityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder mergeInactivity(com.google.protobuf.Duration value) { + if (inactivityBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + inactivity_ != null && + inactivity_ != com.google.protobuf.Duration.getDefaultInstance()) { + getInactivityBuilder().mergeFrom(value); + } else { + inactivity_ = value; + } + } else { + inactivityBuilder_.mergeFrom(value); + } + if (inactivity_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public Builder clearInactivity() { + bitField0_ = (bitField0_ & ~0x00000001); + inactivity_ = null; + if (inactivityBuilder_ != null) { + inactivityBuilder_.dispose(); + inactivityBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public com.google.protobuf.Duration.Builder getInactivityBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInactivityFieldBuilder().getBuilder(); + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() { + if (inactivityBuilder_ != null) { + return inactivityBuilder_.getMessageOrBuilder(); + } else { + return inactivity_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : inactivity_; + } + } + /** + *
+         * inacitivity is the maximum time of inactivity before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration inactivity = 1 [json_name = "inactivity"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getInactivityFieldBuilder() { + if (inactivityBuilder_ == null) { + inactivityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getInactivity(), + getParentForChildren(), + isClean()); + inactivity_ = null; + } + return inactivityBuilder_; + } + + private com.google.protobuf.Duration disconnected_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> disconnectedBuilder_; + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return Whether the disconnected field is set. + */ + public boolean hasDisconnected() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + * @return The disconnected. + */ + public com.google.protobuf.Duration getDisconnected() { + if (disconnectedBuilder_ == null) { + return disconnected_ == null ? com.google.protobuf.Duration.getDefaultInstance() : disconnected_; + } else { + return disconnectedBuilder_.getMessage(); + } + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public Builder setDisconnected(com.google.protobuf.Duration value) { + if (disconnectedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + disconnected_ = value; + } else { + disconnectedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public Builder setDisconnected( + com.google.protobuf.Duration.Builder builderForValue) { + if (disconnectedBuilder_ == null) { + disconnected_ = builderForValue.build(); + } else { + disconnectedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public Builder mergeDisconnected(com.google.protobuf.Duration value) { + if (disconnectedBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + disconnected_ != null && + disconnected_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDisconnectedBuilder().mergeFrom(value); + } else { + disconnected_ = value; + } + } else { + disconnectedBuilder_.mergeFrom(value); + } + if (disconnected_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public Builder clearDisconnected() { + bitField0_ = (bitField0_ & ~0x00000002); + disconnected_ = null; + if (disconnectedBuilder_ != null) { + disconnectedBuilder_.dispose(); + disconnectedBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public com.google.protobuf.Duration.Builder getDisconnectedBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDisconnectedFieldBuilder().getBuilder(); + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + public com.google.protobuf.DurationOrBuilder getDisconnectedOrBuilder() { + if (disconnectedBuilder_ != null) { + return disconnectedBuilder_.getMessageOrBuilder(); + } else { + return disconnected_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : disconnected_; + } + } + /** + *
+         * inacitivity is the maximum time of disconnection before the workspace is
+         * stopped or paused
+         * 
+ * + * optional .google.protobuf.Duration disconnected = 2 [json_name = "disconnected"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDisconnectedFieldBuilder() { + if (disconnectedBuilder_ == null) { + disconnectedBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDisconnected(), + getParentForChildren(), + isClean()); + disconnected_ = null; + } + return disconnectedBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTimeout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateWorkspaceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * timeout configures the workspace timeout
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + * @return Whether the timeout field is set. + */ + boolean hasTimeout(); + /** + *
+       * timeout configures the workspace timeout
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + * @return The timeout. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout getTimeout(); + /** + *
+       * timeout configures the workspace timeout
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeoutOrBuilder getTimeoutOrBuilder(); + + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return Whether the admission field is set. + */ + boolean hasAdmission(); + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + int getAdmissionValue(); + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The admission. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission(); + + /** + *
+       * Note(cw): repeated fields have implicit presence. There's a difference
+       * between passing an empty list or nothing.
+       * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @return A list containing the sshPublicKeys. + */ + java.util.List + getSshPublicKeysList(); + /** + *
+       * Note(cw): repeated fields have implicit presence. There's a difference
+       * between passing an empty list or nothing.
+       * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @return The count of sshPublicKeys. + */ + int getSshPublicKeysCount(); + /** + *
+       * Note(cw): repeated fields have implicit presence. There's a difference
+       * between passing an empty list or nothing.
+       * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + java.lang.String getSshPublicKeys(int index); + /** + *
+       * Note(cw): repeated fields have implicit presence. There's a difference
+       * between passing an empty list or nothing.
+       * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + com.google.protobuf.ByteString + getSshPublicKeysBytes(int index); + } + /** + *
+     * Note(cw): Ports cannot be updated here in favour of UpdateWorkspacePorts
+     * call which exists so that we can update individual ports.
+     * 
+ * + * Protobuf type {@code gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec} + */ + public static final class UpdateWorkspaceSpec extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec) + UpdateWorkspaceSpecOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateWorkspaceSpec.class.getName()); + } + // Use UpdateWorkspaceSpec.newBuilder() to construct. + private UpdateWorkspaceSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateWorkspaceSpec() { + admission_ = 0; + sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.Builder.class); + } + + private int bitField0_; + public static final int TIMEOUT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout timeout_; + /** + *
+       * timeout configures the workspace timeout
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + * @return Whether the timeout field is set. + */ + @java.lang.Override + public boolean hasTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * timeout configures the workspace timeout
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + * @return The timeout. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout getTimeout() { + return timeout_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.getDefaultInstance() : timeout_; + } + /** + *
+       * timeout configures the workspace timeout
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeoutOrBuilder getTimeoutOrBuilder() { + return timeout_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.getDefaultInstance() : timeout_; + } + + public static final int ADMISSION_FIELD_NUMBER = 2; + private int admission_ = 0; + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return Whether the admission field is set. + */ + @java.lang.Override public boolean hasAdmission() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+       * admission controlls who can access the workspace and its ports.
+       * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel result = io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.UNRECOGNIZED : result; + } + + public static final int SSH_PUBLIC_KEYS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * Note(cw): repeated fields have implicit presence. There's a difference
+       * between passing an empty list or nothing.
+       * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList + getSshPublicKeysList() { + return sshPublicKeys_; + } + /** + *
+       * Note(cw): repeated fields have implicit presence. There's a difference
+       * between passing an empty list or nothing.
+       * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + /** + *
+       * Note(cw): repeated fields have implicit presence. There's a difference
+       * between passing an empty list or nothing.
+       * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + /** + *
+       * Note(cw): repeated fields have implicit presence. There's a difference
+       * between passing an empty list or nothing.
+       * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString + getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTimeout()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, admission_); + } + for (int i = 0; i < sshPublicKeys_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, sshPublicKeys_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeout()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, admission_); + } + { + int dataSize = 0; + for (int i = 0; i < sshPublicKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(sshPublicKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getSshPublicKeysList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec) obj; + + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (hasAdmission() != other.hasAdmission()) return false; + if (hasAdmission()) { + if (admission_ != other.admission_) return false; + } + if (!getSshPublicKeysList() + .equals(other.getSshPublicKeysList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (hasAdmission()) { + hash = (37 * hash) + ADMISSION_FIELD_NUMBER; + hash = (53 * hash) + admission_; + } + if (getSshPublicKeysCount() > 0) { + hash = (37 * hash) + SSH_PUBLIC_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getSshPublicKeysList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Note(cw): Ports cannot be updated here in favour of UpdateWorkspacePorts
+       * call which exists so that we can update individual ports.
+       * 
+ * + * Protobuf type {@code gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec) + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTimeoutFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); + timeoutBuilder_ = null; + } + admission_ = 0; + sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeout_ = timeoutBuilder_ == null + ? timeout_ + : timeoutBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.admission_ = admission_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + sshPublicKeys_.makeImmutable(); + result.sshPublicKeys_ = sshPublicKeys_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.getDefaultInstance()) return this; + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.hasAdmission()) { + setAdmission(other.getAdmission()); + } + if (!other.sshPublicKeys_.isEmpty()) { + if (sshPublicKeys_.isEmpty()) { + sshPublicKeys_ = other.sshPublicKeys_; + bitField0_ |= 0x00000004; + } else { + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.addAll(other.sshPublicKeys_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + admission_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout timeout_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeoutOrBuilder> timeoutBuilder_; + /** + *
+         * timeout configures the workspace timeout
+         * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + * @return Whether the timeout field is set. + */ + public boolean hasTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * timeout configures the workspace timeout
+         * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + * @return The timeout. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+         * timeout configures the workspace timeout
+         * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + */ + public Builder setTimeout(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + } else { + timeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * timeout configures the workspace timeout
+         * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + */ + public Builder setTimeout( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * timeout configures the workspace timeout
+         * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + */ + public Builder mergeTimeout(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout value) { + if (timeoutBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + timeout_ != null && + timeout_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.getDefaultInstance()) { + getTimeoutBuilder().mergeFrom(value); + } else { + timeout_ = value; + } + } else { + timeoutBuilder_.mergeFrom(value); + } + if (timeout_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+         * timeout configures the workspace timeout
+         * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + */ + public Builder clearTimeout() { + bitField0_ = (bitField0_ & ~0x00000001); + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); + timeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * timeout configures the workspace timeout
+         * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.Builder getTimeoutBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+         * timeout configures the workspace timeout
+         * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeoutOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.getDefaultInstance() : timeout_; + } + } + /** + *
+         * timeout configures the workspace timeout
+         * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateTimeout timeout = 1 [json_name = "timeout"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeoutOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeout.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateTimeoutOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private int admission_ = 0; + /** + *
+         * admission controlls who can access the workspace and its ports.
+         * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return Whether the admission field is set. + */ + @java.lang.Override public boolean hasAdmission() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * admission controlls who can access the workspace and its ports.
+         * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + @java.lang.Override public int getAdmissionValue() { + return admission_; + } + /** + *
+         * admission controlls who can access the workspace and its ports.
+         * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @param value The enum numeric value on the wire for admission to set. + * @return This builder for chaining. + */ + public Builder setAdmissionValue(int value) { + admission_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * admission controlls who can access the workspace and its ports.
+         * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return The admission. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel result = io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.forNumber(admission_); + return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel.UNRECOGNIZED : result; + } + /** + *
+         * admission controlls who can access the workspace and its ports.
+         * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @param value The admission to set. + * @return This builder for chaining. + */ + public Builder setAdmission(io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + admission_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * admission controlls who can access the workspace and its ports.
+         * 
+ * + * optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"]; + * @return This builder for chaining. + */ + public Builder clearAdmission() { + bitField0_ = (bitField0_ & ~0x00000002); + admission_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSshPublicKeysIsMutable() { + if (!sshPublicKeys_.isModifiable()) { + sshPublicKeys_ = new com.google.protobuf.LazyStringArrayList(sshPublicKeys_); + } + bitField0_ |= 0x00000004; + } + /** + *
+         * Note(cw): repeated fields have implicit presence. There's a difference
+         * between passing an empty list or nothing.
+         * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList + getSshPublicKeysList() { + sshPublicKeys_.makeImmutable(); + return sshPublicKeys_; + } + /** + *
+         * Note(cw): repeated fields have implicit presence. There's a difference
+         * between passing an empty list or nothing.
+         * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + /** + *
+         * Note(cw): repeated fields have implicit presence. There's a difference
+         * between passing an empty list or nothing.
+         * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + /** + *
+         * Note(cw): repeated fields have implicit presence. There's a difference
+         * between passing an empty list or nothing.
+         * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString + getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + /** + *
+         * Note(cw): repeated fields have implicit presence. There's a difference
+         * between passing an empty list or nothing.
+         * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param index The index to set the value at. + * @param value The sshPublicKeys to set. + * @return This builder for chaining. + */ + public Builder setSshPublicKeys( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Note(cw): repeated fields have implicit presence. There's a difference
+         * between passing an empty list or nothing.
+         * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param value The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeys( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Note(cw): repeated fields have implicit presence. There's a difference
+         * between passing an empty list or nothing.
+         * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param values The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addAllSshPublicKeys( + java.lang.Iterable values) { + ensureSshPublicKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sshPublicKeys_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Note(cw): repeated fields have implicit presence. There's a difference
+         * between passing an empty list or nothing.
+         * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @return This builder for chaining. + */ + public Builder clearSshPublicKeys() { + sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+         * Note(cw): repeated fields have implicit presence. There's a difference
+         * between passing an empty list or nothing.
+         * 
+ * + * repeated string ssh_public_keys = 3 [json_name = "sshPublicKeys"]; + * @param value The bytes of the sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkspaceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies the workspace to update
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies the workspace to update
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata_; + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return The metadata. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata getMetadata() { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is data associated with this workspace that's required for other
+     * parts of Gitpod to function
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 3; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec_; + /** + *
+     * spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + * @return The spec. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec getSpec() { + return spec_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.getDefaultInstance() : spec_; + } + /** + *
+     * spec is the configuration of the workspace that's required for the
+     * ws-manager to start the workspace
+     * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.getDefaultInstance() : spec_; + } + + public static final int GIT_STATUS_FIELD_NUMBER = 4; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus gitStatus_; + /** + *
+     * git_status updates the git status of the workspace - this is only here
+     * during the migration
+     * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + * @deprecated gitpod.v1.UpdateWorkspaceRequest.git_status is deprecated. + * See gitpod/v1/workspace.proto;l=790 + * @return Whether the gitStatus field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasGitStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * git_status updates the git status of the workspace - this is only here
+     * during the migration
+     * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + * @deprecated gitpod.v1.UpdateWorkspaceRequest.git_status is deprecated. + * See gitpod/v1/workspace.proto;l=790 + * @return The gitStatus. + */ + @java.lang.Override + @java.lang.Deprecated public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus getGitStatus() { + return gitStatus_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance() : gitStatus_; + } + /** + *
+     * git_status updates the git status of the workspace - this is only here
+     * during the migration
+     * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder getGitStatusOrBuilder() { + return gitStatus_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance() : gitStatus_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getGitStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGitStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasGitStatus() != other.hasGitStatus()) return false; + if (hasGitStatus()) { + if (!getGitStatus() + .equals(other.getGitStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasGitStatus()) { + hash = (37 * hash) + GIT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getGitStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateWorkspaceRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + getGitStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + gitStatus_ = null; + if (gitStatusBuilder_ != null) { + gitStatusBuilder_.dispose(); + gitStatusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.spec_ = specBuilder_ == null + ? spec_ + : specBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gitStatus_ = gitStatusBuilder_ == null + ? gitStatus_ + : gitStatusBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasGitStatus()) { + mergeGitStatus(other.getGitStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getGitStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies the workspace to update
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to update
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to update
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to update
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to update
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadataOrBuilder> metadataBuilder_; + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + * @return The metadata. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public Builder setMetadata(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public Builder setMetadata( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public Builder mergeMetadata(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + metadata_ != null && + metadata_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * metadata is data associated with this workspace that's required for other
+       * parts of Gitpod to function
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceMetadata metadata = 2 [json_name = "metadata"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpecOrBuilder> specBuilder_; + /** + *
+       * spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + * @return The spec. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder setSpec(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder setSpec( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder mergeSpec(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + spec_ != null && + spec_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.getDefaultInstance()) { + getSpecBuilder().mergeFrom(value); + } else { + spec_ = value; + } + } else { + specBuilder_.mergeFrom(value); + } + if (spec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public Builder clearSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * spec is the configuration of the workspace that's required for the
+       * ws-manager to start the workspace
+       * 
+ * + * optional .gitpod.v1.UpdateWorkspaceRequest.UpdateWorkspaceSpec spec = 3 [json_name = "spec"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateWorkspaceSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus gitStatus_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder> gitStatusBuilder_; + /** + *
+       * git_status updates the git status of the workspace - this is only here
+       * during the migration
+       * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + * @deprecated gitpod.v1.UpdateWorkspaceRequest.git_status is deprecated. + * See gitpod/v1/workspace.proto;l=790 + * @return Whether the gitStatus field is set. + */ + @java.lang.Deprecated public boolean hasGitStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * git_status updates the git status of the workspace - this is only here
+       * during the migration
+       * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + * @deprecated gitpod.v1.UpdateWorkspaceRequest.git_status is deprecated. + * See gitpod/v1/workspace.proto;l=790 + * @return The gitStatus. + */ + @java.lang.Deprecated public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus getGitStatus() { + if (gitStatusBuilder_ == null) { + return gitStatus_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance() : gitStatus_; + } else { + return gitStatusBuilder_.getMessage(); + } + } + /** + *
+       * git_status updates the git status of the workspace - this is only here
+       * during the migration
+       * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + */ + @java.lang.Deprecated public Builder setGitStatus(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus value) { + if (gitStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gitStatus_ = value; + } else { + gitStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * git_status updates the git status of the workspace - this is only here
+       * during the migration
+       * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + */ + @java.lang.Deprecated public Builder setGitStatus( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder builderForValue) { + if (gitStatusBuilder_ == null) { + gitStatus_ = builderForValue.build(); + } else { + gitStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * git_status updates the git status of the workspace - this is only here
+       * during the migration
+       * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeGitStatus(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus value) { + if (gitStatusBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + gitStatus_ != null && + gitStatus_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance()) { + getGitStatusBuilder().mergeFrom(value); + } else { + gitStatus_ = value; + } + } else { + gitStatusBuilder_.mergeFrom(value); + } + if (gitStatus_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * git_status updates the git status of the workspace - this is only here
+       * during the migration
+       * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + */ + @java.lang.Deprecated public Builder clearGitStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + gitStatus_ = null; + if (gitStatusBuilder_ != null) { + gitStatusBuilder_.dispose(); + gitStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * git_status updates the git status of the workspace - this is only here
+       * during the migration
+       * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + */ + @java.lang.Deprecated public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder getGitStatusBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGitStatusFieldBuilder().getBuilder(); + } + /** + *
+       * git_status updates the git status of the workspace - this is only here
+       * during the migration
+       * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + */ + @java.lang.Deprecated public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder getGitStatusOrBuilder() { + if (gitStatusBuilder_ != null) { + return gitStatusBuilder_.getMessageOrBuilder(); + } else { + return gitStatus_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.getDefaultInstance() : gitStatus_; + } + } + /** + *
+       * git_status updates the git status of the workspace - this is only here
+       * during the migration
+       * 
+ * + * optional .gitpod.v1.WorkspaceGitStatus git_status = 4 [json_name = "gitStatus", deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder> + getGitStatusFieldBuilder() { + if (gitStatusBuilder_ == null) { + gitStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatus.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceGitStatusOrBuilder>( + getGitStatus(), + getParentForChildren(), + isClean()); + gitStatus_ = null; + } + return gitStatusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateWorkspaceRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.UpdateWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + boolean hasWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspaceResponse} + */ + public static final class UpdateWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.UpdateWorkspaceResponse) + UpdateWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + UpdateWorkspaceResponse.class.getName()); + } + // Use UpdateWorkspaceResponse.newBuilder() to construct. + private UpdateWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse.Builder.class); + } + + private int bitField0_; + public static final int WORKSPACE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + @java.lang.Override + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getWorkspace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkspace()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse) obj; + + if (hasWorkspace() != other.hasWorkspace()) return false; + if (hasWorkspace()) { + if (!getWorkspace() + .equals(other.getWorkspace())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkspace()) { + hash = (37 * hash) + WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getWorkspace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.UpdateWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.UpdateWorkspaceResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getWorkspaceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_UpdateWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspace_ = workspaceBuilder_ == null + ? workspace_ + : workspaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse.getDefaultInstance()) return this; + if (other.hasWorkspace()) { + mergeWorkspace(other.getWorkspace()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getWorkspaceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> workspaceBuilder_; + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + * @return The workspace. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + if (workspaceBuilder_ == null) { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } else { + return workspaceBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder setWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspace_ = value; + } else { + workspaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder setWorkspace( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder builderForValue) { + if (workspaceBuilder_ == null) { + workspace_ = builderForValue.build(); + } else { + workspaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder mergeWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + workspace_ != null && + workspace_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance()) { + getWorkspaceBuilder().mergeFrom(value); + } else { + workspace_ = value; + } + } else { + workspaceBuilder_.mergeFrom(value); + } + if (workspace_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public Builder clearWorkspace() { + bitField0_ = (bitField0_ & ~0x00000001); + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder getWorkspaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWorkspaceFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + if (workspaceBuilder_ != null) { + return workspaceBuilder_.getMessageOrBuilder(); + } else { + return workspace_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + } + /** + * .gitpod.v1.Workspace workspace = 1 [json_name = "workspace"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> + getWorkspaceFieldBuilder() { + if (workspaceBuilder_ == null) { + workspaceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder>( + getWorkspace(), + getParentForChildren(), + isClean()); + workspace_ = null; + } + return workspaceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.UpdateWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.UpdateWorkspaceResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StopWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.StopWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies which workspace should be stopped.
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies which workspace should be stopped.
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.StopWorkspaceRequest} + */ + public static final class StopWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.StopWorkspaceRequest) + StopWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StopWorkspaceRequest.class.getName()); + } + // Use StopWorkspaceRequest.newBuilder() to construct. + private StopWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StopWorkspaceRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies which workspace should be stopped.
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies which workspace should be stopped.
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.StopWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.StopWorkspaceRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies which workspace should be stopped.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies which workspace should be stopped.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies which workspace should be stopped.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies which workspace should be stopped.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies which workspace should be stopped.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.StopWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.StopWorkspaceRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StopWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.StopWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.StopWorkspaceResponse} + */ + public static final class StopWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.StopWorkspaceResponse) + StopWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + StopWorkspaceResponse.class.getName()); + } + // Use StopWorkspaceResponse.newBuilder() to construct. + private StopWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StopWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.StopWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.StopWorkspaceResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_StopWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.StopWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.StopWorkspaceResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteWorkspaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies the workspace that is going to delete.
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies the workspace that is going to delete.
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.DeleteWorkspaceRequest} + */ + public static final class DeleteWorkspaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteWorkspaceRequest) + DeleteWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteWorkspaceRequest.class.getName()); + } + // Use DeleteWorkspaceRequest.newBuilder() to construct. + private DeleteWorkspaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteWorkspaceRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies the workspace that is going to delete.
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies the workspace that is going to delete.
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteWorkspaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteWorkspaceRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies the workspace that is going to delete.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies the workspace that is going to delete.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies the workspace that is going to delete.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace that is going to delete.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace that is going to delete.
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteWorkspaceRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteWorkspaceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.DeleteWorkspaceResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.DeleteWorkspaceResponse} + */ + public static final class DeleteWorkspaceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.DeleteWorkspaceResponse) + DeleteWorkspaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + DeleteWorkspaceResponse.class.getName()); + } + // Use DeleteWorkspaceResponse.newBuilder() to construct. + private DeleteWorkspaceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DeleteWorkspaceResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.DeleteWorkspaceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.DeleteWorkspaceResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_DeleteWorkspaceResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.DeleteWorkspaceResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.DeleteWorkspaceResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkspaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListWorkspaceClassesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListWorkspaceClassesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination(); + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspaceClassesRequest} + */ + public static final class ListWorkspaceClassesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListWorkspaceClassesRequest) + ListWorkspaceClassesRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspaceClassesRequest.class.getName()); + } + // Use ListWorkspaceClassesRequest.newBuilder() to construct. + private ListWorkspaceClassesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspaceClassesRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspaceClassesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListWorkspaceClassesRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationRequest pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationRequest value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationRequest.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationRequest pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationRequest, io.gitpod.publicapi.v1.Pagination.PaginationRequest.Builder, io.gitpod.publicapi.v1.Pagination.PaginationRequestOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListWorkspaceClassesRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListWorkspaceClassesRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspaceClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListWorkspaceClassesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ListWorkspaceClassesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination(); + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder(); + + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + java.util.List + getWorkspaceClassesList(); + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass getWorkspaceClasses(int index); + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + int getWorkspaceClassesCount(); + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + java.util.List + getWorkspaceClassesOrBuilderList(); + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder getWorkspaceClassesOrBuilder( + int index); + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspaceClassesResponse} + */ + public static final class ListWorkspaceClassesResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ListWorkspaceClassesResponse) + ListWorkspaceClassesResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ListWorkspaceClassesResponse.class.getName()); + } + // Use ListWorkspaceClassesResponse.newBuilder() to construct. + private ListWorkspaceClassesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListWorkspaceClassesResponse() { + workspaceClasses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse.Builder.class); + } + + private int bitField0_; + public static final int PAGINATION_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + + public static final int WORKSPACE_CLASSES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List workspaceClasses_; + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public java.util.List getWorkspaceClassesList() { + return workspaceClasses_; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public java.util.List + getWorkspaceClassesOrBuilderList() { + return workspaceClasses_; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public int getWorkspaceClassesCount() { + return workspaceClasses_.size(); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass getWorkspaceClasses(int index) { + return workspaceClasses_.get(index); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder getWorkspaceClassesOrBuilder( + int index) { + return workspaceClasses_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPagination()); + } + for (int i = 0; i < workspaceClasses_.size(); i++) { + output.writeMessage(2, workspaceClasses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPagination()); + } + for (int i = 0; i < workspaceClasses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, workspaceClasses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse) obj; + + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getWorkspaceClassesList() + .equals(other.getWorkspaceClassesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + if (getWorkspaceClassesCount() > 0) { + hash = (37 * hash) + WORKSPACE_CLASSES_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceClassesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ListWorkspaceClassesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ListWorkspaceClassesResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getPaginationFieldBuilder(); + getWorkspaceClassesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + if (workspaceClassesBuilder_ == null) { + workspaceClasses_ = java.util.Collections.emptyList(); + } else { + workspaceClasses_ = null; + workspaceClassesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ListWorkspaceClassesResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse result) { + if (workspaceClassesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + workspaceClasses_ = java.util.Collections.unmodifiableList(workspaceClasses_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.workspaceClasses_ = workspaceClasses_; + } else { + result.workspaceClasses_ = workspaceClassesBuilder_.build(); + } + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse.getDefaultInstance()) return this; + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + if (workspaceClassesBuilder_ == null) { + if (!other.workspaceClasses_.isEmpty()) { + if (workspaceClasses_.isEmpty()) { + workspaceClasses_ = other.workspaceClasses_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.addAll(other.workspaceClasses_); + } + onChanged(); + } + } else { + if (!other.workspaceClasses_.isEmpty()) { + if (workspaceClassesBuilder_.isEmpty()) { + workspaceClassesBuilder_.dispose(); + workspaceClassesBuilder_ = null; + workspaceClasses_ = other.workspaceClasses_; + bitField0_ = (bitField0_ & ~0x00000002); + workspaceClassesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getWorkspaceClassesFieldBuilder() : null; + } else { + workspaceClassesBuilder_.addAllMessages(other.workspaceClasses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass m = + input.readMessage( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.parser(), + extensionRegistry); + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(m); + } else { + workspaceClassesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.Pagination.PaginationResponse pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> paginationBuilder_; + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + * @return The pagination. + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder setPagination( + io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder mergePagination(io.gitpod.publicapi.v1.Pagination.PaginationResponse value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pagination_ != null && + pagination_ != io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000001); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder getPaginationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + public io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.gitpod.publicapi.v1.Pagination.PaginationResponse.getDefaultInstance() : pagination_; + } + } + /** + * .gitpod.v1.PaginationResponse pagination = 1 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.Pagination.PaginationResponse, io.gitpod.publicapi.v1.Pagination.PaginationResponse.Builder, io.gitpod.publicapi.v1.Pagination.PaginationResponseOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + private java.util.List workspaceClasses_ = + java.util.Collections.emptyList(); + private void ensureWorkspaceClassesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + workspaceClasses_ = new java.util.ArrayList(workspaceClasses_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder> workspaceClassesBuilder_; + + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public java.util.List getWorkspaceClassesList() { + if (workspaceClassesBuilder_ == null) { + return java.util.Collections.unmodifiableList(workspaceClasses_); + } else { + return workspaceClassesBuilder_.getMessageList(); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public int getWorkspaceClassesCount() { + if (workspaceClassesBuilder_ == null) { + return workspaceClasses_.size(); + } else { + return workspaceClassesBuilder_.getCount(); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass getWorkspaceClasses(int index) { + if (workspaceClassesBuilder_ == null) { + return workspaceClasses_.get(index); + } else { + return workspaceClassesBuilder_.getMessage(index); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder setWorkspaceClasses( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass value) { + if (workspaceClassesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.set(index, value); + onChanged(); + } else { + workspaceClassesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder setWorkspaceClasses( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder builderForValue) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.set(index, builderForValue.build()); + onChanged(); + } else { + workspaceClassesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addWorkspaceClasses(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass value) { + if (workspaceClassesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(value); + onChanged(); + } else { + workspaceClassesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addWorkspaceClasses( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass value) { + if (workspaceClassesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(index, value); + onChanged(); + } else { + workspaceClassesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addWorkspaceClasses( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder builderForValue) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(builderForValue.build()); + onChanged(); + } else { + workspaceClassesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addWorkspaceClasses( + int index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder builderForValue) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.add(index, builderForValue.build()); + onChanged(); + } else { + workspaceClassesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder addAllWorkspaceClasses( + java.lang.Iterable values) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workspaceClasses_); + onChanged(); + } else { + workspaceClassesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder clearWorkspaceClasses() { + if (workspaceClassesBuilder_ == null) { + workspaceClasses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + workspaceClassesBuilder_.clear(); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public Builder removeWorkspaceClasses(int index) { + if (workspaceClassesBuilder_ == null) { + ensureWorkspaceClassesIsMutable(); + workspaceClasses_.remove(index); + onChanged(); + } else { + workspaceClassesBuilder_.remove(index); + } + return this; + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder getWorkspaceClassesBuilder( + int index) { + return getWorkspaceClassesFieldBuilder().getBuilder(index); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder getWorkspaceClassesOrBuilder( + int index) { + if (workspaceClassesBuilder_ == null) { + return workspaceClasses_.get(index); } else { + return workspaceClassesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public java.util.List + getWorkspaceClassesOrBuilderList() { + if (workspaceClassesBuilder_ != null) { + return workspaceClassesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workspaceClasses_); + } + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder addWorkspaceClassesBuilder() { + return getWorkspaceClassesFieldBuilder().addBuilder( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder addWorkspaceClassesBuilder( + int index) { + return getWorkspaceClassesFieldBuilder().addBuilder( + index, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.getDefaultInstance()); + } + /** + * repeated .gitpod.v1.WorkspaceClass workspace_classes = 2 [json_name = "workspaceClasses"]; + */ + public java.util.List + getWorkspaceClassesBuilderList() { + return getWorkspaceClassesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder> + getWorkspaceClassesFieldBuilder() { + if (workspaceClassesBuilder_ == null) { + workspaceClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder>( + workspaceClasses_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + workspaceClasses_ = null; + } + return workspaceClassesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ListWorkspaceClassesResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ListWorkspaceClassesResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspaceClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParseContextURLRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ParseContextURLRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * context_url is the URL to parse
+     * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + java.lang.String getContextUrl(); + /** + *
+     * context_url is the URL to parse
+     * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + com.google.protobuf.ByteString + getContextUrlBytes(); + + /** + *
+     * configuration_id is the ID of the configuration to use
+     * 
+ * + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + /** + *
+     * configuration_id is the ID of the configuration to use
+     * 
+ * + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString + getConfigurationIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.ParseContextURLRequest} + */ + public static final class ParseContextURLRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ParseContextURLRequest) + ParseContextURLRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ParseContextURLRequest.class.getName()); + } + // Use ParseContextURLRequest.newBuilder() to construct. + private ParseContextURLRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ParseContextURLRequest() { + contextUrl_ = ""; + configurationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest.Builder.class); + } + + public static final int CONTEXT_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object contextUrl_ = ""; + /** + *
+     * context_url is the URL to parse
+     * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + @java.lang.Override + public java.lang.String getContextUrl() { + java.lang.Object ref = contextUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextUrl_ = s; + return s; + } + } + /** + *
+     * context_url is the URL to parse
+     * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = contextUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIGURATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + /** + *
+     * configuration_id is the ID of the configuration to use
+     * 
+ * + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + /** + *
+     * configuration_id is the ID of the configuration to use
+     * 
+ * + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, contextUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, configurationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contextUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, configurationId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest) obj; + + if (!getContextUrl() + .equals(other.getContextUrl())) return false; + if (!getConfigurationId() + .equals(other.getConfigurationId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTEXT_URL_FIELD_NUMBER; + hash = (53 * hash) + getContextUrl().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ParseContextURLRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ParseContextURLRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextUrl_ = ""; + configurationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contextUrl_ = contextUrl_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.configurationId_ = configurationId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest.getDefaultInstance()) return this; + if (!other.getContextUrl().isEmpty()) { + contextUrl_ = other.contextUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + contextUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object contextUrl_ = ""; + /** + *
+       * context_url is the URL to parse
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + public java.lang.String getContextUrl() { + java.lang.Object ref = contextUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * context_url is the URL to parse
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = contextUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * context_url is the URL to parse
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @param value The contextUrl to set. + * @return This builder for chaining. + */ + public Builder setContextUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + contextUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * context_url is the URL to parse
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return This builder for chaining. + */ + public Builder clearContextUrl() { + contextUrl_ = getDefaultInstance().getContextUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * context_url is the URL to parse
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @param value The bytes for contextUrl to set. + * @return This builder for chaining. + */ + public Builder setContextUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + contextUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object configurationId_ = ""; + /** + *
+       * configuration_id is the ID of the configuration to use
+       * 
+ * + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * configuration_id is the ID of the configuration to use
+       * 
+ * + * string configuration_id = 2 [json_name = "configurationId"]; + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString + getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * configuration_id is the ID of the configuration to use
+       * 
+ * + * string configuration_id = 2 [json_name = "configurationId"]; + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + configurationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * configuration_id is the ID of the configuration to use
+       * 
+ * + * string configuration_id = 2 [json_name = "configurationId"]; + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * configuration_id is the ID of the configuration to use
+       * 
+ * + * string configuration_id = 2 [json_name = "configurationId"]; + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ParseContextURLRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ParseContextURLRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseContextURLRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParseContextURLResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.ParseContextURLResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return The metadata. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getMetadata(); + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder getMetadataOrBuilder(); + + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + boolean hasSpec(); + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + * @return The spec. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getSpec(); + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder getSpecOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.ParseContextURLResponse} + */ + public static final class ParseContextURLResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.ParseContextURLResponse) + ParseContextURLResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + ParseContextURLResponse.class.getName()); + } + // Use ParseContextURLResponse.newBuilder() to construct. + private ParseContextURLResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ParseContextURLResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata metadata_; + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return The metadata. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getMetadata() { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec spec_; + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + * @return The spec. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getSpec() { + return spec_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance() : spec_; + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance() : spec_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.ParseContextURLResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.ParseContextURLResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_ParseContextURLResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.spec_ = specBuilder_ == null + ? spec_ + : specBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder> metadataBuilder_; + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + * @return The metadata. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public Builder setMetadata(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public Builder setMetadata( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public Builder mergeMetadata(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + metadata_ != null && + metadata_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.getDefaultInstance() : metadata_; + } + } + /** + * .gitpod.v1.WorkspaceMetadata metadata = 1 [json_name = "metadata"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadata.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec spec_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder> specBuilder_; + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + * @return The spec. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + */ + public Builder setSpec(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + */ + public Builder setSpec( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + */ + public Builder mergeSpec(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + spec_ != null && + spec_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance()) { + getSpecBuilder().mergeFrom(value); + } else { + spec_ = value; + } + } else { + specBuilder_.mergeFrom(value); + } + if (spec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + */ + public Builder clearSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.getDefaultInstance() : spec_; + } + } + /** + * .gitpod.v1.WorkspaceSpec spec = 2 [json_name = "spec"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.ParseContextURLResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.ParseContextURLResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseContextURLResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceClassOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceClass) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the unique identifier of the workspace class
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is the unique identifier of the workspace class
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * display_name is the human readable name of the workspace class
+     * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+     * display_name is the human readable name of the workspace class
+     * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+     * description is a human readable description of the workspace class
+     * 
+ * + * string description = 3 [json_name = "description"]; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * description is a human readable description of the workspace class
+     * 
+ * + * string description = 3 [json_name = "description"]; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * is_default indicates if this workspace class is the default one
+     * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @return The isDefault. + */ + boolean getIsDefault(); + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceClass} + */ + public static final class WorkspaceClass extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceClass) + WorkspaceClassOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceClass.class.getName()); + } + // Use WorkspaceClass.newBuilder() to construct. + private WorkspaceClass(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceClass() { + id_ = ""; + displayName_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceClass_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceClass_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is the unique identifier of the workspace class
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is the unique identifier of the workspace class
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + *
+     * display_name is the human readable name of the workspace class
+     * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *
+     * display_name is the human readable name of the workspace class
+     * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+     * description is a human readable description of the workspace class
+     * 
+ * + * string description = 3 [json_name = "description"]; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * description is a human readable description of the workspace class
+     * 
+ * + * string description = 3 [json_name = "description"]; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_DEFAULT_FIELD_NUMBER = 4; + private boolean isDefault_ = false; + /** + *
+     * is_default indicates if this workspace class is the default one
+     * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @return The isDefault. + */ + @java.lang.Override + public boolean getIsDefault() { + return isDefault_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (isDefault_ != false) { + output.writeBool(4, isDefault_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (isDefault_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isDefault_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getIsDefault() + != other.getIsDefault()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + IS_DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDefault()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceClass} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceClass) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClassOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceClass_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceClass_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + displayName_ = ""; + description_ = ""; + isDefault_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceClass_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isDefault_ = isDefault_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getIsDefault() != false) { + setIsDefault(other.getIsDefault()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + isDefault_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the workspace class
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * display_name is the human readable name of the workspace class
+       * 
+ * + * string display_name = 2 [json_name = "displayName"]; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * description is a human readable description of the workspace class
+       * 
+ * + * string description = 3 [json_name = "description"]; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean isDefault_ ; + /** + *
+       * is_default indicates if this workspace class is the default one
+       * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @return The isDefault. + */ + @java.lang.Override + public boolean getIsDefault() { + return isDefault_; + } + /** + *
+       * is_default indicates if this workspace class is the default one
+       * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @param value The isDefault to set. + * @return This builder for chaining. + */ + public Builder setIsDefault(boolean value) { + + isDefault_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * is_default indicates if this workspace class is the default one
+       * 
+ * + * bool is_default = 4 [json_name = "isDefault"]; + * @return This builder for chaining. + */ + public Builder clearIsDefault() { + bitField0_ = (bitField0_ & ~0x00000008); + isDefault_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceClass) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceClass) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceClass getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateWorkspaceSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateWorkspaceSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * workspace_id specifies the workspace to create snapshot
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id specifies the workspace to create snapshot
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.CreateWorkspaceSnapshotRequest} + */ + public static final class CreateWorkspaceSnapshotRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateWorkspaceSnapshotRequest) + CreateWorkspaceSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateWorkspaceSnapshotRequest.class.getName()); + } + // Use CreateWorkspaceSnapshotRequest.newBuilder() to construct. + private CreateWorkspaceSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateWorkspaceSnapshotRequest() { + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest.Builder.class); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id specifies the workspace to create snapshot
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id specifies the workspace to create snapshot
+     *
+     * +required
+     * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workspaceId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest) obj; + + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateWorkspaceSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateWorkspaceSnapshotRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workspaceId_ = workspaceId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest.getDefaultInstance()) return this; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id specifies the workspace to create snapshot
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to create snapshot
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id specifies the workspace to create snapshot
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to create snapshot
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * workspace_id specifies the workspace to create snapshot
+       *
+       * +required
+       * 
+ * + * string workspace_id = 1 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateWorkspaceSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateWorkspaceSnapshotRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkspaceSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateWorkspaceSnapshotResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.CreateWorkspaceSnapshotResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + * @return The snapshot. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot getSnapshot(); + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshotOrBuilder getSnapshotOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.CreateWorkspaceSnapshotResponse} + */ + public static final class CreateWorkspaceSnapshotResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.CreateWorkspaceSnapshotResponse) + CreateWorkspaceSnapshotResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + CreateWorkspaceSnapshotResponse.class.getName()); + } + // Use CreateWorkspaceSnapshotResponse.newBuilder() to construct. + private CreateWorkspaceSnapshotResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateWorkspaceSnapshotResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse.Builder.class); + } + + private int bitField0_; + public static final int SNAPSHOT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot snapshot_; + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + * @return The snapshot. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot getSnapshot() { + return snapshot_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.getDefaultInstance() : snapshot_; + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshotOrBuilder getSnapshotOrBuilder() { + return snapshot_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.getDefaultInstance() : snapshot_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSnapshot()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnapshot()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse) obj; + + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot() + .equals(other.getSnapshot())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.CreateWorkspaceSnapshotResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.CreateWorkspaceSnapshotResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getSnapshotFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshot_ = snapshotBuilder_ == null + ? snapshot_ + : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse.getDefaultInstance()) return this; + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSnapshotFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot snapshot_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshotOrBuilder> snapshotBuilder_; + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + * @return The snapshot. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.getDefaultInstance() : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + */ + public Builder setSnapshot(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + */ + public Builder setSnapshot( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + */ + public Builder mergeSnapshot(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + snapshot_ != null && + snapshot_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000001); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.Builder getSnapshotBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSnapshotFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshotOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.getDefaultInstance() : snapshot_; + } + } + /** + * .gitpod.v1.WorkspaceSnapshot snapshot = 1 [json_name = "snapshot"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshotOrBuilder> + getSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshotOrBuilder>( + getSnapshot(), + getParentForChildren(), + isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.CreateWorkspaceSnapshotResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.CreateWorkspaceSnapshotResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkspaceSnapshotResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WaitForWorkspaceSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WaitForWorkspaceSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * snapshot_id specifies the snapshot to wait for
+     *
+     * +required
+     * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. + */ + java.lang.String getSnapshotId(); + /** + *
+     * snapshot_id specifies the snapshot to wait for
+     *
+     * +required
+     * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. + */ + com.google.protobuf.ByteString + getSnapshotIdBytes(); + } + /** + * Protobuf type {@code gitpod.v1.WaitForWorkspaceSnapshotRequest} + */ + public static final class WaitForWorkspaceSnapshotRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WaitForWorkspaceSnapshotRequest) + WaitForWorkspaceSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WaitForWorkspaceSnapshotRequest.class.getName()); + } + // Use WaitForWorkspaceSnapshotRequest.newBuilder() to construct. + private WaitForWorkspaceSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WaitForWorkspaceSnapshotRequest() { + snapshotId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest.Builder.class); + } + + public static final int SNAPSHOT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object snapshotId_ = ""; + /** + *
+     * snapshot_id specifies the snapshot to wait for
+     *
+     * +required
+     * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. + */ + @java.lang.Override + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotId_ = s; + return s; + } + } + /** + *
+     * snapshot_id specifies the snapshot to wait for
+     *
+     * +required
+     * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, snapshotId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snapshotId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest) obj; + + if (!getSnapshotId() + .equals(other.getSnapshotId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WaitForWorkspaceSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WaitForWorkspaceSnapshotRequest) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + snapshotId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshotId_ = snapshotId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest.getDefaultInstance()) return this; + if (!other.getSnapshotId().isEmpty()) { + snapshotId_ = other.snapshotId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + snapshotId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object snapshotId_ = ""; + /** + *
+       * snapshot_id specifies the snapshot to wait for
+       *
+       * +required
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. + */ + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * snapshot_id specifies the snapshot to wait for
+       *
+       * +required
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. + */ + public com.google.protobuf.ByteString + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * snapshot_id specifies the snapshot to wait for
+       *
+       * +required
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @param value The snapshotId to set. + * @return This builder for chaining. + */ + public Builder setSnapshotId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + snapshotId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * snapshot_id specifies the snapshot to wait for
+       *
+       * +required
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return This builder for chaining. + */ + public Builder clearSnapshotId() { + snapshotId_ = getDefaultInstance().getSnapshotId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * snapshot_id specifies the snapshot to wait for
+       *
+       * +required
+       * 
+ * + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @param value The bytes for snapshotId to set. + * @return This builder for chaining. + */ + public Builder setSnapshotIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + snapshotId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WaitForWorkspaceSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WaitForWorkspaceSnapshotRequest) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WaitForWorkspaceSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WaitForWorkspaceSnapshotResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WaitForWorkspaceSnapshotResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code gitpod.v1.WaitForWorkspaceSnapshotResponse} + */ + public static final class WaitForWorkspaceSnapshotResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WaitForWorkspaceSnapshotResponse) + WaitForWorkspaceSnapshotResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WaitForWorkspaceSnapshotResponse.class.getName()); + } + // Use WaitForWorkspaceSnapshotResponse.newBuilder() to construct. + private WaitForWorkspaceSnapshotResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WaitForWorkspaceSnapshotResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WaitForWorkspaceSnapshotResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WaitForWorkspaceSnapshotResponse) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WaitForWorkspaceSnapshotResponse) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WaitForWorkspaceSnapshotResponse) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WaitForWorkspaceSnapshotResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceSnapshotOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceSnapshot) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id is the unique identifier of the snapshot
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * id is the unique identifier of the snapshot
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * workspace_id is the source workspace id of snapshot
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * workspace_id is the source workspace id of snapshot
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); + + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + boolean hasCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return The creationTime. + */ + com.google.protobuf.Timestamp getCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceSnapshot} + */ + public static final class WorkspaceSnapshot extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSnapshot) + WorkspaceSnapshotOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceSnapshot.class.getName()); + } + // Use WorkspaceSnapshot.newBuilder() to construct. + private WorkspaceSnapshot(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceSnapshot() { + id_ = ""; + workspaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * id is the unique identifier of the snapshot
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * id is the unique identifier of the snapshot
+     * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * workspace_id is the source workspace id of snapshot
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } + } + /** + *
+     * workspace_id is the source workspace id of snapshot
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATION_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp creationTime_; + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + @java.lang.Override + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return The creationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreationTime() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreationTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workspaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreationTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (hasCreationTime() != other.hasCreationTime()) return false; + if (hasCreationTime()) { + if (!getCreationTime() + .equals(other.getCreationTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + if (hasCreationTime()) { + hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreationTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceSnapshot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceSnapshot) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreationTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + workspaceId_ = ""; + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSnapshot_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspaceId_ = workspaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.creationTime_ = creationTimeBuilder_ == null + ? creationTime_ + : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCreationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * id is the unique identifier of the snapshot
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id is the unique identifier of the snapshot
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id is the unique identifier of the snapshot
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the snapshot
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * id is the unique identifier of the snapshot
+       * 
+ * + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * workspace_id is the source workspace id of snapshot
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * workspace_id is the source workspace id of snapshot
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * workspace_id is the source workspace id of snapshot
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * workspace_id is the source workspace id of snapshot
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * workspace_id is the source workspace id of snapshot
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_; + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return The creationTime. + */ + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder setCreationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + creationTime_ != null && + creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x00000004); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), + getParentForChildren(), + isClean()); + creationTime_ = null; + } + return creationTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSnapshot) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceSnapshot) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceSnapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSnapshot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkspaceSessionOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceSession) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + boolean hasWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + * @return The workspace. + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace(); + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + */ + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder(); + + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + boolean hasCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return The creationTime. + */ + com.google.protobuf.Timestamp getCreationTime(); + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder(); + + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + * @return Whether the deployedTime field is set. + */ + boolean hasDeployedTime(); + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + * @return The deployedTime. + */ + com.google.protobuf.Timestamp getDeployedTime(); + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + */ + com.google.protobuf.TimestampOrBuilder getDeployedTimeOrBuilder(); + + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + * @return Whether the startedTime field is set. + */ + boolean hasStartedTime(); + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + * @return The startedTime. + */ + com.google.protobuf.Timestamp getStartedTime(); + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + */ + com.google.protobuf.TimestampOrBuilder getStartedTimeOrBuilder(); + + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + * @return Whether the stoppingTime field is set. + */ + boolean hasStoppingTime(); + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + * @return The stoppingTime. + */ + com.google.protobuf.Timestamp getStoppingTime(); + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + */ + com.google.protobuf.TimestampOrBuilder getStoppingTimeOrBuilder(); + + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + * @return Whether the stoppedTime field is set. + */ + boolean hasStoppedTime(); + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + * @return The stoppedTime. + */ + com.google.protobuf.Timestamp getStoppedTime(); + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + */ + com.google.protobuf.TimestampOrBuilder getStoppedTimeOrBuilder(); + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceSession} + */ + public static final class WorkspaceSession extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSession) + WorkspaceSessionOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 1, + /* suffix= */ "", + WorkspaceSession.class.getName()); + } + // Use WorkspaceSession.newBuilder() to construct. + private WorkspaceSession(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceSession() { + id_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_FIELD_NUMBER = 2; + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + @java.lang.Override + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + * @return The workspace. + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + */ + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + + public static final int CREATION_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp creationTime_; + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + @java.lang.Override + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return The creationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreationTime() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + + public static final int DEPLOYED_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp deployedTime_; + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + * @return Whether the deployedTime field is set. + */ + @java.lang.Override + public boolean hasDeployedTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + * @return The deployedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeployedTime() { + return deployedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployedTime_; + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeployedTimeOrBuilder() { + return deployedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployedTime_; + } + + public static final int STARTED_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startedTime_; + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + * @return Whether the startedTime field is set. + */ + @java.lang.Override + public boolean hasStartedTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + * @return The startedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartedTime() { + return startedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedTime_; + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartedTimeOrBuilder() { + return startedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedTime_; + } + + public static final int STOPPING_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp stoppingTime_; + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + * @return Whether the stoppingTime field is set. + */ + @java.lang.Override + public boolean hasStoppingTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + * @return The stoppingTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStoppingTime() { + return stoppingTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stoppingTime_; + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStoppingTimeOrBuilder() { + return stoppingTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stoppingTime_; + } + + public static final int STOPPED_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp stoppedTime_; + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + * @return Whether the stoppedTime field is set. + */ + @java.lang.Override + public boolean hasStoppedTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + * @return The stoppedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStoppedTime() { + return stoppedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stoppedTime_; + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStoppedTimeOrBuilder() { + return stoppedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stoppedTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getWorkspace()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getCreationTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getDeployedTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getStartedTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getStoppingTime()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(7, getStoppedTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkspace()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreationTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDeployedTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartedTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getStoppingTime()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getStoppedTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession)) { + return super.equals(obj); + } + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasWorkspace() != other.hasWorkspace()) return false; + if (hasWorkspace()) { + if (!getWorkspace() + .equals(other.getWorkspace())) return false; + } + if (hasCreationTime() != other.hasCreationTime()) return false; + if (hasCreationTime()) { + if (!getCreationTime() + .equals(other.getCreationTime())) return false; + } + if (hasDeployedTime() != other.hasDeployedTime()) return false; + if (hasDeployedTime()) { + if (!getDeployedTime() + .equals(other.getDeployedTime())) return false; + } + if (hasStartedTime() != other.hasStartedTime()) return false; + if (hasStartedTime()) { + if (!getStartedTime() + .equals(other.getStartedTime())) return false; + } + if (hasStoppingTime() != other.hasStoppingTime()) return false; + if (hasStoppingTime()) { + if (!getStoppingTime() + .equals(other.getStoppingTime())) return false; + } + if (hasStoppedTime() != other.hasStoppedTime()) return false; + if (hasStoppedTime()) { + if (!getStoppedTime() + .equals(other.getStoppedTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasWorkspace()) { + hash = (37 * hash) + WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getWorkspace().hashCode(); + } + if (hasCreationTime()) { + hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreationTime().hashCode(); + } + if (hasDeployedTime()) { + hash = (37 * hash) + DEPLOYED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeployedTime().hashCode(); + } + if (hasStartedTime()) { + hash = (37 * hash) + STARTED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartedTime().hashCode(); + } + if (hasStoppingTime()) { + hash = (37 * hash) + STOPPING_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStoppingTime().hashCode(); + } + if (hasStoppedTime()) { + hash = (37 * hash) + STOPPED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStoppedTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.v1.WorkspaceSession} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.v1.WorkspaceSession) + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSessionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder.class); + } + + // Construct using io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getWorkspaceFieldBuilder(); + getCreationTimeFieldBuilder(); + getDeployedTimeFieldBuilder(); + getStartedTimeFieldBuilder(); + getStoppingTimeFieldBuilder(); + getStoppedTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + deployedTime_ = null; + if (deployedTimeBuilder_ != null) { + deployedTimeBuilder_.dispose(); + deployedTimeBuilder_ = null; + } + startedTime_ = null; + if (startedTimeBuilder_ != null) { + startedTimeBuilder_.dispose(); + startedTimeBuilder_ = null; + } + stoppingTime_ = null; + if (stoppingTimeBuilder_ != null) { + stoppingTimeBuilder_.dispose(); + stoppingTimeBuilder_ = null; + } + stoppedTime_ = null; + if (stoppedTimeBuilder_ != null) { + stoppedTimeBuilder_.dispose(); + stoppedTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getDefaultInstanceForType() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession build() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession buildPartial() { + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession result = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspace_ = workspaceBuilder_ == null + ? workspace_ + : workspaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.creationTime_ = creationTimeBuilder_ == null + ? creationTime_ + : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deployedTime_ = deployedTimeBuilder_ == null + ? deployedTime_ + : deployedTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startedTime_ = startedTimeBuilder_ == null + ? startedTime_ + : startedTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.stoppingTime_ = stoppingTimeBuilder_ == null + ? stoppingTime_ + : stoppingTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.stoppedTime_ = stoppedTimeBuilder_ == null + ? stoppedTime_ + : stoppedTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession) { + return mergeFrom((io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession other) { + if (other == io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasWorkspace()) { + mergeWorkspace(other.getWorkspace()); + } + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); + } + if (other.hasDeployedTime()) { + mergeDeployedTime(other.getDeployedTime()); + } + if (other.hasStartedTime()) { + mergeStartedTime(other.getStartedTime()); + } + if (other.hasStoppingTime()) { + mergeStoppingTime(other.getStoppingTime()); + } + if (other.hasStoppedTime()) { + mergeStoppedTime(other.getStoppedTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getWorkspaceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCreationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDeployedTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getStartedTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getStoppingTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getStoppedTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace workspace_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> workspaceBuilder_; + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + * @return Whether the workspace field is set. + */ + public boolean hasWorkspace() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + * @return The workspace. + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace getWorkspace() { + if (workspaceBuilder_ == null) { + return workspace_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } else { + return workspaceBuilder_.getMessage(); + } + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + */ + public Builder setWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspace_ = value; + } else { + workspaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + */ + public Builder setWorkspace( + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder builderForValue) { + if (workspaceBuilder_ == null) { + workspace_ = builderForValue.build(); + } else { + workspaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + */ + public Builder mergeWorkspace(io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace value) { + if (workspaceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + workspace_ != null && + workspace_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance()) { + getWorkspaceBuilder().mergeFrom(value); + } else { + workspace_ = value; + } + } else { + workspaceBuilder_.mergeFrom(value); + } + if (workspace_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + */ + public Builder clearWorkspace() { + bitField0_ = (bitField0_ & ~0x00000002); + workspace_ = null; + if (workspaceBuilder_ != null) { + workspaceBuilder_.dispose(); + workspaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder getWorkspaceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWorkspaceFieldBuilder().getBuilder(); + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + */ + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder getWorkspaceOrBuilder() { + if (workspaceBuilder_ != null) { + return workspaceBuilder_.getMessageOrBuilder(); + } else { + return workspace_ == null ? + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.getDefaultInstance() : workspace_; + } + } + /** + * .gitpod.v1.Workspace workspace = 2 [json_name = "workspace"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder> + getWorkspaceFieldBuilder() { + if (workspaceBuilder_ == null) { + workspaceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace, io.gitpod.publicapi.v1.WorkspaceOuterClass.Workspace.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceOrBuilder>( + getWorkspace(), + getParentForChildren(), + isClean()); + workspace_ = null; + } + return workspaceBuilder_; + } + + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_; + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + * @return The creationTime. + */ + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder setCreationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + creationTime_ != null && + creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x00000004); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_; + } + } + /** + * .google.protobuf.Timestamp creation_time = 3 [json_name = "creationTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), + getParentForChildren(), + isClean()); + creationTime_ = null; + } + return creationTimeBuilder_; + } + + private com.google.protobuf.Timestamp deployedTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deployedTimeBuilder_; + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + * @return Whether the deployedTime field is set. + */ + public boolean hasDeployedTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + * @return The deployedTime. + */ + public com.google.protobuf.Timestamp getDeployedTime() { + if (deployedTimeBuilder_ == null) { + return deployedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployedTime_; + } else { + return deployedTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + */ + public Builder setDeployedTime(com.google.protobuf.Timestamp value) { + if (deployedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedTime_ = value; + } else { + deployedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + */ + public Builder setDeployedTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (deployedTimeBuilder_ == null) { + deployedTime_ = builderForValue.build(); + } else { + deployedTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + */ + public Builder mergeDeployedTime(com.google.protobuf.Timestamp value) { + if (deployedTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + deployedTime_ != null && + deployedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeployedTimeBuilder().mergeFrom(value); + } else { + deployedTime_ = value; + } + } else { + deployedTimeBuilder_.mergeFrom(value); + } + if (deployedTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + */ + public Builder clearDeployedTime() { + bitField0_ = (bitField0_ & ~0x00000008); + deployedTime_ = null; + if (deployedTimeBuilder_ != null) { + deployedTimeBuilder_.dispose(); + deployedTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + */ + public com.google.protobuf.Timestamp.Builder getDeployedTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDeployedTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getDeployedTimeOrBuilder() { + if (deployedTimeBuilder_ != null) { + return deployedTimeBuilder_.getMessageOrBuilder(); + } else { + return deployedTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deployedTime_; + } + } + /** + * .google.protobuf.Timestamp deployed_time = 4 [json_name = "deployedTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDeployedTimeFieldBuilder() { + if (deployedTimeBuilder_ == null) { + deployedTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeployedTime(), + getParentForChildren(), + isClean()); + deployedTime_ = null; + } + return deployedTimeBuilder_; + } + + private com.google.protobuf.Timestamp startedTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedTimeBuilder_; + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + * @return Whether the startedTime field is set. + */ + public boolean hasStartedTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + * @return The startedTime. + */ + public com.google.protobuf.Timestamp getStartedTime() { + if (startedTimeBuilder_ == null) { + return startedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedTime_; + } else { + return startedTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + */ + public Builder setStartedTime(com.google.protobuf.Timestamp value) { + if (startedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedTime_ = value; + } else { + startedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + */ + public Builder setStartedTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedTimeBuilder_ == null) { + startedTime_ = builderForValue.build(); + } else { + startedTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + */ + public Builder mergeStartedTime(com.google.protobuf.Timestamp value) { + if (startedTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + startedTime_ != null && + startedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartedTimeBuilder().mergeFrom(value); + } else { + startedTime_ = value; + } + } else { + startedTimeBuilder_.mergeFrom(value); + } + if (startedTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + */ + public Builder clearStartedTime() { + bitField0_ = (bitField0_ & ~0x00000010); + startedTime_ = null; + if (startedTimeBuilder_ != null) { + startedTimeBuilder_.dispose(); + startedTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + */ + public com.google.protobuf.Timestamp.Builder getStartedTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStartedTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getStartedTimeOrBuilder() { + if (startedTimeBuilder_ != null) { + return startedTimeBuilder_.getMessageOrBuilder(); + } else { + return startedTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedTime_; + } + } + /** + * .google.protobuf.Timestamp started_time = 5 [json_name = "startedTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedTimeFieldBuilder() { + if (startedTimeBuilder_ == null) { + startedTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedTime(), + getParentForChildren(), + isClean()); + startedTime_ = null; + } + return startedTimeBuilder_; + } + + private com.google.protobuf.Timestamp stoppingTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stoppingTimeBuilder_; + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + * @return Whether the stoppingTime field is set. + */ + public boolean hasStoppingTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + * @return The stoppingTime. + */ + public com.google.protobuf.Timestamp getStoppingTime() { + if (stoppingTimeBuilder_ == null) { + return stoppingTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stoppingTime_; + } else { + return stoppingTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + */ + public Builder setStoppingTime(com.google.protobuf.Timestamp value) { + if (stoppingTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stoppingTime_ = value; + } else { + stoppingTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + */ + public Builder setStoppingTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (stoppingTimeBuilder_ == null) { + stoppingTime_ = builderForValue.build(); + } else { + stoppingTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + */ + public Builder mergeStoppingTime(com.google.protobuf.Timestamp value) { + if (stoppingTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + stoppingTime_ != null && + stoppingTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStoppingTimeBuilder().mergeFrom(value); + } else { + stoppingTime_ = value; + } + } else { + stoppingTimeBuilder_.mergeFrom(value); + } + if (stoppingTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + */ + public Builder clearStoppingTime() { + bitField0_ = (bitField0_ & ~0x00000020); + stoppingTime_ = null; + if (stoppingTimeBuilder_ != null) { + stoppingTimeBuilder_.dispose(); + stoppingTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + */ + public com.google.protobuf.Timestamp.Builder getStoppingTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStoppingTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getStoppingTimeOrBuilder() { + if (stoppingTimeBuilder_ != null) { + return stoppingTimeBuilder_.getMessageOrBuilder(); + } else { + return stoppingTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : stoppingTime_; + } + } + /** + * .google.protobuf.Timestamp stopping_time = 6 [json_name = "stoppingTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStoppingTimeFieldBuilder() { + if (stoppingTimeBuilder_ == null) { + stoppingTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStoppingTime(), + getParentForChildren(), + isClean()); + stoppingTime_ = null; + } + return stoppingTimeBuilder_; + } + + private com.google.protobuf.Timestamp stoppedTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stoppedTimeBuilder_; + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + * @return Whether the stoppedTime field is set. + */ + public boolean hasStoppedTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + * @return The stoppedTime. + */ + public com.google.protobuf.Timestamp getStoppedTime() { + if (stoppedTimeBuilder_ == null) { + return stoppedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stoppedTime_; + } else { + return stoppedTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + */ + public Builder setStoppedTime(com.google.protobuf.Timestamp value) { + if (stoppedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stoppedTime_ = value; + } else { + stoppedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + */ + public Builder setStoppedTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (stoppedTimeBuilder_ == null) { + stoppedTime_ = builderForValue.build(); + } else { + stoppedTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + */ + public Builder mergeStoppedTime(com.google.protobuf.Timestamp value) { + if (stoppedTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + stoppedTime_ != null && + stoppedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStoppedTimeBuilder().mergeFrom(value); + } else { + stoppedTime_ = value; + } + } else { + stoppedTimeBuilder_.mergeFrom(value); + } + if (stoppedTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + */ + public Builder clearStoppedTime() { + bitField0_ = (bitField0_ & ~0x00000040); + stoppedTime_ = null; + if (stoppedTimeBuilder_ != null) { + stoppedTimeBuilder_.dispose(); + stoppedTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + */ + public com.google.protobuf.Timestamp.Builder getStoppedTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getStoppedTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getStoppedTimeOrBuilder() { + if (stoppedTimeBuilder_ != null) { + return stoppedTimeBuilder_.getMessageOrBuilder(); + } else { + return stoppedTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : stoppedTime_; + } + } + /** + * .google.protobuf.Timestamp stopped_time = 7 [json_name = "stoppedTime"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStoppedTimeFieldBuilder() { + if (stoppedTimeBuilder_ == null) { + stoppedTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStoppedTime(), + getParentForChildren(), + isClean()); + stoppedTime_ = null; + } + return stoppedTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSession) + } + + // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceSession) + private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession(); + } + + public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateWorkspacePortRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateWorkspacePortRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateWorkspacePortResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateWorkspacePortResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WatchWorkspaceStatusRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WatchWorkspaceStatusRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WatchWorkspaceStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WatchWorkspaceStatusResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListWorkspacesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListWorkspacesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListWorkspacesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListWorkspacesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListWorkspaceSessionsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListWorkspaceSessionsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListWorkspaceSessionsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListWorkspaceSessionsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_StartWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_StartWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_StartWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_StartWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SendHeartBeatRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SendHeartBeatRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SendHeartBeatResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SendHeartBeatResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_Workspace_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_Workspace_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceMetadata_AnnotationsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceMetadata_AnnotationsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceSpec_Timeout_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceSpec_Timeout_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceSpec_GitSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceSpec_GitSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspacePort_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspacePort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceGitStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceGitStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspacePhase_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspacePhase_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceInitializer_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceInitializer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceInitializer_Spec_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceInitializer_Spec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GitInitializer_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GitInitializer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GitInitializer_GitConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GitInitializer_GitConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GitInitializer_GitConfig_CustomConfigEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GitInitializer_GitConfig_CustomConfigEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_SnapshotInitializer_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_SnapshotInitializer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_PrebuildInitializer_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_PrebuildInitializer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_FileDownloadInitializer_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_FileDownloadInitializer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_GitStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_GitStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_UpdateWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_UpdateWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_StopWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_StopWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_StopWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_StopWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteWorkspaceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteWorkspaceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_DeleteWorkspaceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_DeleteWorkspaceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListWorkspaceClassesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListWorkspaceClassesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ListWorkspaceClassesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ListWorkspaceClassesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ParseContextURLRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ParseContextURLRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_ParseContextURLResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_ParseContextURLResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceClass_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceClass_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceSnapshot_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceSnapshot_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_v1_WorkspaceSession_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_v1_WorkspaceSession_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\031gitpod/v1/workspace.proto\022\tgitpod.v1\032\026" + + "gitpod/v1/editor.proto\032\026gitpod/v1/envvar" + + ".proto\032\032gitpod/v1/pagination.proto\032\036goog" + + "le/protobuf/duration.proto\032\037google/proto" + + "buf/timestamp.proto\"\360\001\n\032UpdateWorkspaceP" + + "ortRequest\022!\n\014workspace_id\030\001 \001(\tR\013worksp" + + "aceId\022\022\n\004port\030\002 \001(\004R\004port\022<\n\tadmission\030\003" + + " \001(\0162\031.gitpod.v1.AdmissionLevelH\000R\tadmis" + + "sion\210\001\001\022B\n\010protocol\030\004 \001(\0162!.gitpod.v1.Wo" + + "rkspacePort.ProtocolH\001R\010protocol\210\001\001B\014\n\n_" + + "admissionB\013\n\t_protocol\"\035\n\033UpdateWorkspac" + + "ePortResponse\"8\n\023GetWorkspaceRequest\022!\n\014" + + "workspace_id\030\001 \001(\tR\013workspaceId\"J\n\024GetWo" + + "rkspaceResponse\0222\n\tworkspace\030\001 \001(\0132\024.git" + + "pod.v1.WorkspaceR\tworkspace\"@\n\033WatchWork" + + "spaceStatusRequest\022!\n\014workspace_id\030\001 \001(\t" + + "R\013workspaceId\"u\n\034WatchWorkspaceStatusRes" + + "ponse\022!\n\014workspace_id\030\001 \001(\tR\013workspaceId" + + "\0222\n\006status\030\002 \001(\0132\032.gitpod.v1.WorkspaceSt" + + "atusR\006status\"\267\001\n\025ListWorkspacesRequest\022<" + + "\n\npagination\030\001 \001(\0132\034.gitpod.v1.Paginatio" + + "nRequestR\npagination\022\'\n\017organization_id\030" + + "\002 \001(\tR\016organizationId\022\026\n\006pinned\030\003 \001(\010R\006p" + + "inned\022\037\n\013search_term\030\004 \001(\tR\nsearchTerm\"\215" + + "\001\n\026ListWorkspacesResponse\022=\n\npagination\030" + + "\001 \001(\0132\035.gitpod.v1.PaginationResponseR\npa" + + "gination\0224\n\nworkspaces\030\002 \003(\0132\024.gitpod.v1" + + ".WorkspaceR\nworkspaces\"\341\001\n\034ListWorkspace" + + "SessionsRequest\022<\n\npagination\030\001 \001(\0132\034.gi" + + "tpod.v1.PaginationRequestR\npagination\022\'\n" + + "\017organization_id\030\002 \001(\tR\016organizationId\022." + + "\n\004from\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "R\004from\022*\n\002to\030\004 \001(\0132\032.google.protobuf.Tim" + + "estampR\002to\"\252\001\n\035ListWorkspaceSessionsResp" + + "onse\022=\n\npagination\030\001 \001(\0132\035.gitpod.v1.Pag" + + "inationResponseR\npagination\022J\n\022workspace" + + "_sessions\030\002 \003(\0132\033.gitpod.v1.WorkspaceSes" + + "sionR\021workspaceSessions\"\240\003\n\036CreateAndSta" + + "rtWorkspaceRequest\0228\n\010metadata\030\001 \001(\0132\034.g" + + "itpod.v1.WorkspaceMetadataR\010metadata\022W\n\013" + + "context_url\030\002 \001(\01324.gitpod.v1.CreateAndS" + + "tartWorkspaceRequest.ContextURLH\000R\nconte" + + "xtUrl\022.\n\004spec\030\003 \001(\0132\030.gitpod.v1.Workspac" + + "eSpecH\000R\004spec\0224\n\024force_default_config\030\004 " + + "\001(\010B\002\030\001R\022forceDefaultConfig\032{\n\nContextUR" + + "L\022\020\n\003url\030\001 \001(\tR\003url\022\'\n\017workspace_class\030\002" + + " \001(\tR\016workspaceClass\0222\n\006editor\030\003 \001(\0132\032.g" + + "itpod.v1.EditorReferenceR\006editorB\010\n\006sour" + + "ce\"U\n\037CreateAndStartWorkspaceResponse\0222\n" + + "\tworkspace\030\001 \001(\0132\024.gitpod.v1.WorkspaceR\t" + + "workspace\"p\n\025StartWorkspaceRequest\022!\n\014wo" + + "rkspace_id\030\001 \001(\tR\013workspaceId\0224\n\024force_d" + + "efault_config\030\002 \001(\010B\002\030\001R\022forceDefaultCon" + + "fig\"L\n\026StartWorkspaceResponse\0222\n\tworkspa" + + "ce\030\001 \001(\0132\024.gitpod.v1.WorkspaceR\tworkspac" + + "e\"D\n\037GetWorkspaceDefaultImageRequest\022!\n\014" + + "workspace_id\030\001 \001(\tR\013workspaceId\"\372\001\n GetW" + + "orkspaceDefaultImageResponse\0226\n\027default_" + + "workspace_image\030\001 \001(\tR\025defaultWorkspaceI" + + "mage\022J\n\006source\030\002 \001(\01622.gitpod.v1.GetWork" + + "spaceDefaultImageResponse.SourceR\006source" + + "\"R\n\006Source\022\026\n\022SOURCE_UNSPECIFIED\020\000\022\027\n\023SO" + + "URCE_INSTALLATION\020\001\022\027\n\023SOURCE_ORGANIZATI" + + "ON\020\002\"]\n\024SendHeartBeatRequest\022!\n\014workspac" + + "e_id\030\001 \001(\tR\013workspaceId\022\"\n\014disconnected\030" + + "\002 \001(\010R\014disconnected\"\027\n\025SendHeartBeatResp" + + "onse\"B\n\035GetWorkspaceOwnerTokenRequest\022!\n" + + "\014workspace_id\030\001 \001(\tR\013workspaceId\"A\n\036GetW" + + "orkspaceOwnerTokenResponse\022\037\n\013owner_toke" + + "n\030\001 \001(\tR\nownerToken\"I\n$GetWorkspaceEdito" + + "rCredentialsRequest\022!\n\014workspace_id\030\001 \001(" + + "\tR\013workspaceId\"V\n%GetWorkspaceEditorCred" + + "entialsResponse\022-\n\022editor_credentials\030\001 " + + "\001(\tR\021editorCredentials\"\267\001\n\tWorkspace\022\016\n\002" + + "id\030\001 \001(\tR\002id\0228\n\010metadata\030\002 \001(\0132\034.gitpod." + + "v1.WorkspaceMetadataR\010metadata\022,\n\004spec\030\003" + + " \001(\0132\030.gitpod.v1.WorkspaceSpecR\004spec\0222\n\006" + + "status\030\004 \001(\0132\032.gitpod.v1.WorkspaceStatus" + + "R\006status\"\361\002\n\021WorkspaceMetadata\022\031\n\010owner_" + + "id\030\001 \001(\tR\007ownerId\022\'\n\017organization_id\030\002 \001" + + "(\tR\016organizationId\022)\n\020configuration_id\030\003" + + " \001(\tR\017configurationId\022O\n\013annotations\030\004 \003" + + "(\0132-.gitpod.v1.WorkspaceMetadata.Annotat" + + "ionsEntryR\013annotations\022\022\n\004name\030\005 \001(\tR\004na" + + "me\022\026\n\006pinned\030\006 \001(\010R\006pinned\0220\n\024original_c" + + "ontext_url\030\007 \001(\tR\022originalContextUrl\032>\n\020" + + "AnnotationsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005va" + + "lue\030\002 \001(\tR\005value:\0028\001\"\273\010\n\rWorkspaceSpec\022A" + + "\n\013initializer\030\001 \001(\0132\037.gitpod.v1.Workspac" + + "eInitializerR\013initializer\022:\n\004type\030\002 \001(\0162" + + "&.gitpod.v1.WorkspaceSpec.WorkspaceTypeR" + + "\004type\022.\n\005ports\030\003 \003(\0132\030.gitpod.v1.Workspa" + + "cePortR\005ports\022S\n\025environment_variables\030\004" + + " \003(\0132\036.gitpod.v1.EnvironmentVariableR\024en" + + "vironmentVariables\0222\n\003git\030\005 \001(\0132 .gitpod" + + ".v1.WorkspaceSpec.GitSpecR\003git\022:\n\007timeou" + + "t\030\006 \001(\0132 .gitpod.v1.WorkspaceSpec.Timeou" + + "tR\007timeout\0227\n\tadmission\030\007 \001(\0162\031.gitpod.v" + + "1.AdmissionLevelR\tadmission\022\024\n\005class\030\010 \001" + + "(\tR\005class\022&\n\017ssh_public_keys\030\t \003(\tR\rsshP" + + "ublicKeys\0225\n\026subassembly_references\030\n \003(" + + "\tR\025subassemblyReferences\022H\n\022last_user_ac" + + "tivity\030\013 \001(\0132\032.google.protobuf.Timestamp" + + "R\020lastUserActivity\022\027\n\007log_url\030\014 \001(\tR\006log" + + "Url\0222\n\006editor\030\r \001(\0132\032.gitpod.v1.EditorRe" + + "ferenceR\006editor\032\311\001\n\007Timeout\0229\n\ninactivit" + + "y\030\001 \001(\0132\031.google.protobuf.DurationR\ninac" + + "tivity\022=\n\014disconnected\030\002 \001(\0132\031.google.pr" + + "otobuf.DurationR\014disconnected\022D\n\020maximum" + + "_lifetime\030\003 \001(\0132\031.google.protobuf.Durati" + + "onR\017maximumLifetime\032;\n\007GitSpec\022\032\n\010userna" + + "me\030\001 \001(\tR\010username\022\024\n\005email\030\002 \001(\tR\005email" + + "\"h\n\rWorkspaceType\022\036\n\032WORKSPACE_TYPE_UNSP" + + "ECIFIED\020\000\022\032\n\026WORKSPACE_TYPE_REGULAR\020\001\022\033\n" + + "\027WORKSPACE_TYPE_PREBUILD\020\002\"\346\006\n\017Workspace" + + "Status\022%\n\016status_version\030\001 \001(\004R\rstatusVe" + + "rsion\022/\n\005phase\030\002 \001(\0132\031.gitpod.v1.Workspa" + + "cePhaseR\005phase\022#\n\rworkspace_url\030\003 \001(\tR\014w" + + "orkspaceUrl\022N\n\nconditions\030\004 \001(\0132..gitpod" + + ".v1.WorkspaceStatus.WorkspaceConditionsR" + + "\nconditions\022R\n\017prebuild_result\030\005 \001(\0132).g" + + "itpod.v1.WorkspaceStatus.PrebuildResultR" + + "\016prebuildResult\022<\n\ngit_status\030\006 \001(\0132\035.gi" + + "tpod.v1.WorkspaceGitStatusR\tgitStatus\022#\n" + + "\013instance_id\030\007 \001(\tB\002\030\001R\ninstanceId\032\373\002\n\023W" + + "orkspaceConditions\022\026\n\006failed\030\001 \001(\tR\006fail" + + "ed\022`\n\rfailed_reason\030\002 \001(\0162;.gitpod.v1.Wo" + + "rkspaceStatus.WorkspaceConditions.Failed" + + "ReasonR\014failedReason\022\030\n\007timeout\030\003 \001(\tR\007t" + + "imeout\"\317\001\n\014FailedReason\022\035\n\031FAILED_REASON" + + "_UNSPECIFIED\020\000\022/\n+FAILED_REASON_CONTENT_" + + "INITIALIZATION_FAILED\020\001\022\037\n\033FAILED_REASON" + + "_BACKUP_FAILED\020\002\022$\n FAILED_REASON_IMAGE_" + + "PULL_FAILURE\020\003\022(\n$FAILED_REASON_UNEXPECT" + + "ED_TERMINATION\020\004\032Q\n\016PrebuildResult\022\032\n\010sn" + + "apshot\030\001 \001(\tR\010snapshot\022#\n\rerror_message\030" + + "\002 \001(\tR\014errorMessage\"\372\001\n\rWorkspacePort\022\022\n" + + "\004port\030\001 \001(\004R\004port\0227\n\tadmission\030\002 \001(\0162\031.g" + + "itpod.v1.AdmissionLevelR\tadmission\022\020\n\003ur" + + "l\030\003 \001(\tR\003url\022=\n\010protocol\030\004 \001(\0162!.gitpod." + + "v1.WorkspacePort.ProtocolR\010protocol\"K\n\010P" + + "rotocol\022\030\n\024PROTOCOL_UNSPECIFIED\020\000\022\021\n\rPRO" + + "TOCOL_HTTP\020\001\022\022\n\016PROTOCOL_HTTPS\020\002\"\215\003\n\022Wor" + + "kspaceGitStatus\022\033\n\tclone_url\030\001 \001(\tR\010clon" + + "eUrl\022\026\n\006branch\030\002 \001(\tR\006branch\022#\n\rlatest_c" + + "ommit\030\003 \001(\tR\014latestCommit\022)\n\020uncommited_" + + "files\030\004 \003(\tR\017uncommitedFiles\0224\n\026total_un" + + "commited_files\030\005 \001(\005R\024totalUncommitedFil" + + "es\022\'\n\017untracked_files\030\006 \003(\tR\016untrackedFi" + + "les\0222\n\025total_untracked_files\030\007 \001(\005R\023tota" + + "lUntrackedFiles\022)\n\020unpushed_commits\030\010 \003(" + + "\tR\017unpushedCommits\0224\n\026total_unpushed_com" + + "mits\030\t \001(\005R\024totalUnpushedCommits\"\201\003\n\016Wor" + + "kspacePhase\0223\n\004name\030\001 \001(\0162\037.gitpod.v1.Wo" + + "rkspacePhase.PhaseR\004name\022L\n\024last_transit" + + "ion_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpR\022lastTransitionTime\"\353\001\n\005Phase\022\025\n\021PHAS" + + "E_UNSPECIFIED\020\000\022\023\n\017PHASE_PREPARING\020\001\022\024\n\020" + + "PHASE_IMAGEBUILD\020\002\022\021\n\rPHASE_PENDING\020\003\022\022\n" + + "\016PHASE_CREATING\020\004\022\026\n\022PHASE_INITIALIZING\020" + + "\005\022\021\n\rPHASE_RUNNING\020\006\022\025\n\021PHASE_INTERRUPTE" + + "D\020\007\022\020\n\014PHASE_PAUSED\020\010\022\022\n\016PHASE_STOPPING\020" + + "\t\022\021\n\rPHASE_STOPPED\020\n\"\320\002\n\024WorkspaceInitia" + + "lizer\022:\n\005specs\030\001 \003(\0132$.gitpod.v1.Workspa" + + "ceInitializer.SpecR\005specs\032\373\001\n\004Spec\022-\n\003gi" + + "t\030\001 \001(\0132\031.gitpod.v1.GitInitializerH\000R\003gi" + + "t\022<\n\010snapshot\030\002 \001(\0132\036.gitpod.v1.Snapshot" + + "InitializerH\000R\010snapshot\022<\n\010prebuild\030\003 \001(" + + "\0132\036.gitpod.v1.PrebuildInitializerH\000R\010pre" + + "build\022@\n\010download\030\004 \001(\0132\".gitpod.v1.File" + + "DownloadInitializerH\000R\010downloadB\006\n\004spec\"" + + "\275\007\n\016GitInitializer\022\035\n\nremote_uri\030\001 \001(\tR\t" + + "remoteUri\022.\n\023upstream_remote_uri\030\002 \001(\tR\021" + + "upstreamRemoteUri\022J\n\013target_mode\030\003 \001(\0162)" + + ".gitpod.v1.GitInitializer.CloneTargetMod" + + "eR\ntargetMode\022!\n\014clone_target\030\004 \001(\tR\013clo" + + "neTarget\022+\n\021checkout_location\030\005 \001(\tR\020che" + + "ckoutLocation\022;\n\006config\030\006 \001(\0132#.gitpod.v" + + "1.GitInitializer.GitConfigR\006config\032\323\002\n\tG" + + "itConfig\022Z\n\rcustom_config\030\001 \003(\01325.gitpod" + + ".v1.GitInitializer.GitConfig.CustomConfi" + + "gEntryR\014customConfig\022L\n\016authentication\030\002" + + " \001(\0162$.gitpod.v1.GitInitializer.AuthMeth" + + "odR\016authentication\022\033\n\tauth_user\030\003 \001(\tR\010a" + + "uthUser\022#\n\rauth_password\030\004 \001(\tR\014authPass" + + "word\022\031\n\010auth_ots\030\005 \001(\tR\007authOts\032?\n\021Custo" + + "mConfigEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030" + + "\002 \001(\tR\005value:\0028\001\"\305\001\n\017CloneTargetMode\022!\n\035" + + "CLONE_TARGET_MODE_UNSPECIFIED\020\000\022!\n\035CLONE" + + "_TARGET_MODE_REMOTE_HEAD\020\001\022#\n\037CLONE_TARG" + + "ET_MODE_REMOTE_COMMIT\020\002\022#\n\037CLONE_TARGET_" + + "MODE_REMOTE_BRANCH\020\003\022\"\n\036CLONE_TARGET_MOD" + + "E_LOCAL_BRANCH\020\004\"e\n\nAuthMethod\022\033\n\027AUTH_M" + + "ETHOD_UNSPECIFIED\020\000\022\032\n\026AUTH_METHOD_BASIC" + + "_AUTH\020\001\022\036\n\032AUTH_METHOD_BASIC_AUTH_OTS\020\002\"" + + "6\n\023SnapshotInitializer\022\037\n\013snapshot_id\030\001 " + + "\001(\tR\nsnapshotId\"6\n\023PrebuildInitializer\022\037" + + "\n\013prebuild_id\030\001 \001(\tR\nprebuildId\"\330\001\n\027File" + + "DownloadInitializer\022A\n\005files\030\001 \003(\0132+.git" + + "pod.v1.FileDownloadInitializer.FileInfoR" + + "\005files\022\'\n\017target_location\030\002 \001(\tR\016targetL" + + "ocation\032Q\n\010FileInfo\022\020\n\003url\030\001 \001(\tR\003url\022\033\n" + + "\tfile_path\030\002 \001(\tR\010filePath\022\026\n\006digest\030\003 \001" + + "(\tR\006digest\"\347\002\n\tGitStatus\022\026\n\006branch\030\001 \001(\t" + + "R\006branch\022#\n\rlatest_commit\030\002 \001(\tR\014latestC" + + "ommit\022)\n\020uncommited_files\030\003 \003(\tR\017uncommi" + + "tedFiles\0224\n\026total_uncommited_files\030\006 \001(\003" + + "R\024totalUncommitedFiles\022\'\n\017untracked_file" + + "s\030\004 \003(\tR\016untrackedFiles\0222\n\025total_untrack" + + "ed_files\030\007 \001(\003R\023totalUntrackedFiles\022)\n\020u" + + "npushed_commits\030\005 \003(\tR\017unpushedCommits\0224" + + "\n\026total_unpushed_commits\030\010 \001(\003R\024totalUnp" + + "ushedCommits\"\326\006\n\026UpdateWorkspaceRequest\022" + + "!\n\014workspace_id\030\001 \001(\tR\013workspaceId\022Z\n\010me" + + "tadata\030\002 \001(\01329.gitpod.v1.UpdateWorkspace" + + "Request.UpdateWorkspaceMetadataH\000R\010metad" + + "ata\210\001\001\022N\n\004spec\030\003 \001(\01325.gitpod.v1.UpdateW" + + "orkspaceRequest.UpdateWorkspaceSpecH\001R\004s" + + "pec\210\001\001\022E\n\ngit_status\030\004 \001(\0132\035.gitpod.v1.W" + + "orkspaceGitStatusB\002\030\001H\002R\tgitStatus\210\001\001\032c\n" + + "\027UpdateWorkspaceMetadata\022\027\n\004name\030\001 \001(\tH\000" + + "R\004name\210\001\001\022\033\n\006pinned\030\002 \001(\010H\001R\006pinned\210\001\001B\007" + + "\n\005_nameB\t\n\007_pinned\032\263\001\n\rUpdateTimeout\022>\n\n" + + "inactivity\030\001 \001(\0132\031.google.protobuf.Durat" + + "ionH\000R\ninactivity\210\001\001\022B\n\014disconnected\030\002 \001" + + "(\0132\031.google.protobuf.DurationH\001R\014disconn" + + "ected\210\001\001B\r\n\013_inactivityB\017\n\r_disconnected" + + "\032\345\001\n\023UpdateWorkspaceSpec\022N\n\007timeout\030\001 \001(" + + "\0132/.gitpod.v1.UpdateWorkspaceRequest.Upd" + + "ateTimeoutH\000R\007timeout\210\001\001\022<\n\tadmission\030\002 " + + "\001(\0162\031.gitpod.v1.AdmissionLevelH\001R\tadmiss" + + "ion\210\001\001\022&\n\017ssh_public_keys\030\003 \003(\tR\rsshPubl" + + "icKeysB\n\n\010_timeoutB\014\n\n_admissionB\013\n\t_met" + + "adataB\007\n\005_specB\r\n\013_git_status\"M\n\027UpdateW" + + "orkspaceResponse\0222\n\tworkspace\030\001 \001(\0132\024.gi" + + "tpod.v1.WorkspaceR\tworkspace\"9\n\024StopWork" + + "spaceRequest\022!\n\014workspace_id\030\001 \001(\tR\013work" + + "spaceId\"\027\n\025StopWorkspaceResponse\";\n\026Dele" + + "teWorkspaceRequest\022!\n\014workspace_id\030\001 \001(\t" + + "R\013workspaceId\"\031\n\027DeleteWorkspaceResponse" + + "\"[\n\033ListWorkspaceClassesRequest\022<\n\npagin" + + "ation\030\001 \001(\0132\034.gitpod.v1.PaginationReques" + + "tR\npagination\"\245\001\n\034ListWorkspaceClassesRe" + + "sponse\022=\n\npagination\030\001 \001(\0132\035.gitpod.v1.P" + + "aginationResponseR\npagination\022F\n\021workspa" + + "ce_classes\030\002 \003(\0132\031.gitpod.v1.WorkspaceCl" + + "assR\020workspaceClasses\"d\n\026ParseContextURL" + + "Request\022\037\n\013context_url\030\001 \001(\tR\ncontextUrl" + + "\022)\n\020configuration_id\030\002 \001(\tR\017configuratio" + + "nId\"\201\001\n\027ParseContextURLResponse\0228\n\010metad" + + "ata\030\001 \001(\0132\034.gitpod.v1.WorkspaceMetadataR" + + "\010metadata\022,\n\004spec\030\002 \001(\0132\030.gitpod.v1.Work" + + "spaceSpecR\004spec\"\204\001\n\016WorkspaceClass\022\016\n\002id" + + "\030\001 \001(\tR\002id\022!\n\014display_name\030\002 \001(\tR\013displa" + + "yName\022 \n\013description\030\003 \001(\tR\013description\022" + + "\035\n\nis_default\030\004 \001(\010R\tisDefault\"C\n\036Create" + + "WorkspaceSnapshotRequest\022!\n\014workspace_id" + + "\030\001 \001(\tR\013workspaceId\"[\n\037CreateWorkspaceSn" + + "apshotResponse\0228\n\010snapshot\030\001 \001(\0132\034.gitpo" + + "d.v1.WorkspaceSnapshotR\010snapshot\"B\n\037Wait" + + "ForWorkspaceSnapshotRequest\022\037\n\013snapshot_" + + "id\030\001 \001(\tR\nsnapshotId\"\"\n WaitForWorkspace" + + "SnapshotResponse\"\207\001\n\021WorkspaceSnapshot\022\016" + + "\n\002id\030\001 \001(\tR\002id\022!\n\014workspace_id\030\002 \001(\tR\013wo" + + "rkspaceId\022?\n\rcreation_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampR\014creationTime\"\227\003\n\020W" + + "orkspaceSession\022\016\n\002id\030\001 \001(\tR\002id\0222\n\tworks" + + "pace\030\002 \001(\0132\024.gitpod.v1.WorkspaceR\tworksp" + + "ace\022?\n\rcreation_time\030\003 \001(\0132\032.google.prot" + + "obuf.TimestampR\014creationTime\022?\n\rdeployed" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampR" + + "\014deployedTime\022=\n\014started_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampR\013startedTime\022?\n\r" + + "stopping_time\030\006 \001(\0132\032.google.protobuf.Ti" + + "mestampR\014stoppingTime\022=\n\014stopped_time\030\007 " + + "\001(\0132\032.google.protobuf.TimestampR\013stopped" + + "Time*o\n\016AdmissionLevel\022\037\n\033ADMISSION_LEVE" + + "L_UNSPECIFIED\020\000\022\036\n\032ADMISSION_LEVEL_OWNER" + + "_ONLY\020\001\022\034\n\030ADMISSION_LEVEL_EVERYONE\020\0022\323\016" + + "\n\020WorkspaceService\022Q\n\014GetWorkspace\022\036.git" + + "pod.v1.GetWorkspaceRequest\032\037.gitpod.v1.G" + + "etWorkspaceResponse\"\000\022k\n\024WatchWorkspaceS" + + "tatus\022&.gitpod.v1.WatchWorkspaceStatusRe" + + "quest\032\'.gitpod.v1.WatchWorkspaceStatusRe" + + "sponse\"\0000\001\022W\n\016ListWorkspaces\022 .gitpod.v1" + + ".ListWorkspacesRequest\032!.gitpod.v1.ListW" + + "orkspacesResponse\"\000\022l\n\025ListWorkspaceSess" + + "ions\022\'.gitpod.v1.ListWorkspaceSessionsRe" + + "quest\032(.gitpod.v1.ListWorkspaceSessionsR" + + "esponse\"\000\022r\n\027CreateAndStartWorkspace\022).g" + + "itpod.v1.CreateAndStartWorkspaceRequest\032" + + "*.gitpod.v1.CreateAndStartWorkspaceRespo" + + "nse\"\000\022W\n\016StartWorkspace\022 .gitpod.v1.Star" + + "tWorkspaceRequest\032!.gitpod.v1.StartWorks" + + "paceResponse\"\000\022Z\n\017UpdateWorkspace\022!.gitp" + + "od.v1.UpdateWorkspaceRequest\032\".gitpod.v1" + + ".UpdateWorkspaceResponse\"\000\022T\n\rStopWorksp" + + "ace\022\037.gitpod.v1.StopWorkspaceRequest\032 .g" + + "itpod.v1.StopWorkspaceResponse\"\000\022Z\n\017Dele" + + "teWorkspace\022!.gitpod.v1.DeleteWorkspaceR" + + "equest\032\".gitpod.v1.DeleteWorkspaceRespon" + + "se\"\000\022i\n\024ListWorkspaceClasses\022&.gitpod.v1" + + ".ListWorkspaceClassesRequest\032\'.gitpod.v1" + + ".ListWorkspaceClassesResponse\"\000\022Z\n\017Parse" + + "ContextURL\022!.gitpod.v1.ParseContextURLRe" + + "quest\032\".gitpod.v1.ParseContextURLRespons" + + "e\"\000\022u\n\030GetWorkspaceDefaultImage\022*.gitpod" + + ".v1.GetWorkspaceDefaultImageRequest\032+.gi" + + "tpod.v1.GetWorkspaceDefaultImageResponse" + + "\"\000\022T\n\rSendHeartBeat\022\037.gitpod.v1.SendHear" + + "tBeatRequest\032 .gitpod.v1.SendHeartBeatRe" + + "sponse\"\000\022o\n\026GetWorkspaceOwnerToken\022(.git" + + "pod.v1.GetWorkspaceOwnerTokenRequest\032).g" + + "itpod.v1.GetWorkspaceOwnerTokenResponse\"" + + "\000\022\204\001\n\035GetWorkspaceEditorCredentials\022/.gi" + + "tpod.v1.GetWorkspaceEditorCredentialsReq" + + "uest\0320.gitpod.v1.GetWorkspaceEditorCrede" + + "ntialsResponse\"\000\022r\n\027CreateWorkspaceSnaps" + + "hot\022).gitpod.v1.CreateWorkspaceSnapshotR" + + "equest\032*.gitpod.v1.CreateWorkspaceSnapsh" + + "otResponse\"\000\022u\n\030WaitForWorkspaceSnapshot" + + "\022*.gitpod.v1.WaitForWorkspaceSnapshotReq" + + "uest\032+.gitpod.v1.WaitForWorkspaceSnapsho" + + "tResponse\"\000\022f\n\023UpdateWorkspacePort\022%.git" + + "pod.v1.UpdateWorkspacePortRequest\032&.gitp" + + "od.v1.UpdateWorkspacePortResponse\"\000BQ\n\026i" + + "o.gitpod.publicapi.v1Z7github.com/gitpod" + + "-io/gitpod/components/public-api/go/v1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.gitpod.publicapi.v1.Editor.getDescriptor(), + io.gitpod.publicapi.v1.Envvar.getDescriptor(), + io.gitpod.publicapi.v1.Pagination.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_gitpod_v1_UpdateWorkspacePortRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_gitpod_v1_UpdateWorkspacePortRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateWorkspacePortRequest_descriptor, + new java.lang.String[] { "WorkspaceId", "Port", "Admission", "Protocol", }); + internal_static_gitpod_v1_UpdateWorkspacePortResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_gitpod_v1_UpdateWorkspacePortResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateWorkspacePortResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_GetWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_gitpod_v1_GetWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetWorkspaceRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_v1_GetWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_gitpod_v1_GetWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetWorkspaceResponse_descriptor, + new java.lang.String[] { "Workspace", }); + internal_static_gitpod_v1_WatchWorkspaceStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_gitpod_v1_WatchWorkspaceStatusRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WatchWorkspaceStatusRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_v1_WatchWorkspaceStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_gitpod_v1_WatchWorkspaceStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WatchWorkspaceStatusResponse_descriptor, + new java.lang.String[] { "WorkspaceId", "Status", }); + internal_static_gitpod_v1_ListWorkspacesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_gitpod_v1_ListWorkspacesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListWorkspacesRequest_descriptor, + new java.lang.String[] { "Pagination", "OrganizationId", "Pinned", "SearchTerm", }); + internal_static_gitpod_v1_ListWorkspacesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_gitpod_v1_ListWorkspacesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListWorkspacesResponse_descriptor, + new java.lang.String[] { "Pagination", "Workspaces", }); + internal_static_gitpod_v1_ListWorkspaceSessionsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_gitpod_v1_ListWorkspaceSessionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListWorkspaceSessionsRequest_descriptor, + new java.lang.String[] { "Pagination", "OrganizationId", "From", "To", }); + internal_static_gitpod_v1_ListWorkspaceSessionsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_gitpod_v1_ListWorkspaceSessionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListWorkspaceSessionsResponse_descriptor, + new java.lang.String[] { "Pagination", "WorkspaceSessions", }); + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_descriptor, + new java.lang.String[] { "Metadata", "ContextUrl", "Spec", "ForceDefaultConfig", "Source", }); + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_descriptor = + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateAndStartWorkspaceRequest_ContextURL_descriptor, + new java.lang.String[] { "Url", "WorkspaceClass", "Editor", }); + internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateAndStartWorkspaceResponse_descriptor, + new java.lang.String[] { "Workspace", }); + internal_static_gitpod_v1_StartWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_gitpod_v1_StartWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_StartWorkspaceRequest_descriptor, + new java.lang.String[] { "WorkspaceId", "ForceDefaultConfig", }); + internal_static_gitpod_v1_StartWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_gitpod_v1_StartWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_StartWorkspaceResponse_descriptor, + new java.lang.String[] { "Workspace", }); + internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetWorkspaceDefaultImageRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetWorkspaceDefaultImageResponse_descriptor, + new java.lang.String[] { "DefaultWorkspaceImage", "Source", }); + internal_static_gitpod_v1_SendHeartBeatRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_gitpod_v1_SendHeartBeatRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SendHeartBeatRequest_descriptor, + new java.lang.String[] { "WorkspaceId", "Disconnected", }); + internal_static_gitpod_v1_SendHeartBeatResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_gitpod_v1_SendHeartBeatResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SendHeartBeatResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetWorkspaceOwnerTokenRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetWorkspaceOwnerTokenResponse_descriptor, + new java.lang.String[] { "OwnerToken", }); + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GetWorkspaceEditorCredentialsResponse_descriptor, + new java.lang.String[] { "EditorCredentials", }); + internal_static_gitpod_v1_Workspace_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_gitpod_v1_Workspace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_Workspace_descriptor, + new java.lang.String[] { "Id", "Metadata", "Spec", "Status", }); + internal_static_gitpod_v1_WorkspaceMetadata_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_gitpod_v1_WorkspaceMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceMetadata_descriptor, + new java.lang.String[] { "OwnerId", "OrganizationId", "ConfigurationId", "Annotations", "Name", "Pinned", "OriginalContextUrl", }); + internal_static_gitpod_v1_WorkspaceMetadata_AnnotationsEntry_descriptor = + internal_static_gitpod_v1_WorkspaceMetadata_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_WorkspaceMetadata_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceMetadata_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_gitpod_v1_WorkspaceSpec_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_gitpod_v1_WorkspaceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceSpec_descriptor, + new java.lang.String[] { "Initializer", "Type", "Ports", "EnvironmentVariables", "Git", "Timeout", "Admission", "Class_", "SshPublicKeys", "SubassemblyReferences", "LastUserActivity", "LogUrl", "Editor", }); + internal_static_gitpod_v1_WorkspaceSpec_Timeout_descriptor = + internal_static_gitpod_v1_WorkspaceSpec_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_WorkspaceSpec_Timeout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceSpec_Timeout_descriptor, + new java.lang.String[] { "Inactivity", "Disconnected", "MaximumLifetime", }); + internal_static_gitpod_v1_WorkspaceSpec_GitSpec_descriptor = + internal_static_gitpod_v1_WorkspaceSpec_descriptor.getNestedTypes().get(1); + internal_static_gitpod_v1_WorkspaceSpec_GitSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceSpec_GitSpec_descriptor, + new java.lang.String[] { "Username", "Email", }); + internal_static_gitpod_v1_WorkspaceStatus_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_gitpod_v1_WorkspaceStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceStatus_descriptor, + new java.lang.String[] { "StatusVersion", "Phase", "WorkspaceUrl", "Conditions", "PrebuildResult", "GitStatus", "InstanceId", }); + internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_descriptor = + internal_static_gitpod_v1_WorkspaceStatus_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceStatus_WorkspaceConditions_descriptor, + new java.lang.String[] { "Failed", "FailedReason", "Timeout", }); + internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_descriptor = + internal_static_gitpod_v1_WorkspaceStatus_descriptor.getNestedTypes().get(1); + internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceStatus_PrebuildResult_descriptor, + new java.lang.String[] { "Snapshot", "ErrorMessage", }); + internal_static_gitpod_v1_WorkspacePort_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_gitpod_v1_WorkspacePort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspacePort_descriptor, + new java.lang.String[] { "Port", "Admission", "Url", "Protocol", }); + internal_static_gitpod_v1_WorkspaceGitStatus_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_gitpod_v1_WorkspaceGitStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceGitStatus_descriptor, + new java.lang.String[] { "CloneUrl", "Branch", "LatestCommit", "UncommitedFiles", "TotalUncommitedFiles", "UntrackedFiles", "TotalUntrackedFiles", "UnpushedCommits", "TotalUnpushedCommits", }); + internal_static_gitpod_v1_WorkspacePhase_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_gitpod_v1_WorkspacePhase_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspacePhase_descriptor, + new java.lang.String[] { "Name", "LastTransitionTime", }); + internal_static_gitpod_v1_WorkspaceInitializer_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_gitpod_v1_WorkspaceInitializer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceInitializer_descriptor, + new java.lang.String[] { "Specs", }); + internal_static_gitpod_v1_WorkspaceInitializer_Spec_descriptor = + internal_static_gitpod_v1_WorkspaceInitializer_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_WorkspaceInitializer_Spec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceInitializer_Spec_descriptor, + new java.lang.String[] { "Git", "Snapshot", "Prebuild", "Download", "Spec", }); + internal_static_gitpod_v1_GitInitializer_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_gitpod_v1_GitInitializer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GitInitializer_descriptor, + new java.lang.String[] { "RemoteUri", "UpstreamRemoteUri", "TargetMode", "CloneTarget", "CheckoutLocation", "Config", }); + internal_static_gitpod_v1_GitInitializer_GitConfig_descriptor = + internal_static_gitpod_v1_GitInitializer_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_GitInitializer_GitConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GitInitializer_GitConfig_descriptor, + new java.lang.String[] { "CustomConfig", "Authentication", "AuthUser", "AuthPassword", "AuthOts", }); + internal_static_gitpod_v1_GitInitializer_GitConfig_CustomConfigEntry_descriptor = + internal_static_gitpod_v1_GitInitializer_GitConfig_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_GitInitializer_GitConfig_CustomConfigEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GitInitializer_GitConfig_CustomConfigEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_gitpod_v1_SnapshotInitializer_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_gitpod_v1_SnapshotInitializer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_SnapshotInitializer_descriptor, + new java.lang.String[] { "SnapshotId", }); + internal_static_gitpod_v1_PrebuildInitializer_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_gitpod_v1_PrebuildInitializer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_PrebuildInitializer_descriptor, + new java.lang.String[] { "PrebuildId", }); + internal_static_gitpod_v1_FileDownloadInitializer_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_gitpod_v1_FileDownloadInitializer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_FileDownloadInitializer_descriptor, + new java.lang.String[] { "Files", "TargetLocation", }); + internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_descriptor = + internal_static_gitpod_v1_FileDownloadInitializer_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_FileDownloadInitializer_FileInfo_descriptor, + new java.lang.String[] { "Url", "FilePath", "Digest", }); + internal_static_gitpod_v1_GitStatus_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_gitpod_v1_GitStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_GitStatus_descriptor, + new java.lang.String[] { "Branch", "LatestCommit", "UncommitedFiles", "TotalUncommitedFiles", "UntrackedFiles", "TotalUntrackedFiles", "UnpushedCommits", "TotalUnpushedCommits", }); + internal_static_gitpod_v1_UpdateWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_gitpod_v1_UpdateWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateWorkspaceRequest_descriptor, + new java.lang.String[] { "WorkspaceId", "Metadata", "Spec", "GitStatus", }); + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_descriptor = + internal_static_gitpod_v1_UpdateWorkspaceRequest_descriptor.getNestedTypes().get(0); + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceMetadata_descriptor, + new java.lang.String[] { "Name", "Pinned", }); + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_descriptor = + internal_static_gitpod_v1_UpdateWorkspaceRequest_descriptor.getNestedTypes().get(1); + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateTimeout_descriptor, + new java.lang.String[] { "Inactivity", "Disconnected", }); + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_descriptor = + internal_static_gitpod_v1_UpdateWorkspaceRequest_descriptor.getNestedTypes().get(2); + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateWorkspaceRequest_UpdateWorkspaceSpec_descriptor, + new java.lang.String[] { "Timeout", "Admission", "SshPublicKeys", }); + internal_static_gitpod_v1_UpdateWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_gitpod_v1_UpdateWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_UpdateWorkspaceResponse_descriptor, + new java.lang.String[] { "Workspace", }); + internal_static_gitpod_v1_StopWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_gitpod_v1_StopWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_StopWorkspaceRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_v1_StopWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_gitpod_v1_StopWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_StopWorkspaceResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_DeleteWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_gitpod_v1_DeleteWorkspaceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteWorkspaceRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_v1_DeleteWorkspaceResponse_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_gitpod_v1_DeleteWorkspaceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_DeleteWorkspaceResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_ListWorkspaceClassesRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_gitpod_v1_ListWorkspaceClassesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListWorkspaceClassesRequest_descriptor, + new java.lang.String[] { "Pagination", }); + internal_static_gitpod_v1_ListWorkspaceClassesResponse_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_gitpod_v1_ListWorkspaceClassesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ListWorkspaceClassesResponse_descriptor, + new java.lang.String[] { "Pagination", "WorkspaceClasses", }); + internal_static_gitpod_v1_ParseContextURLRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_gitpod_v1_ParseContextURLRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ParseContextURLRequest_descriptor, + new java.lang.String[] { "ContextUrl", "ConfigurationId", }); + internal_static_gitpod_v1_ParseContextURLResponse_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_gitpod_v1_ParseContextURLResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_ParseContextURLResponse_descriptor, + new java.lang.String[] { "Metadata", "Spec", }); + internal_static_gitpod_v1_WorkspaceClass_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_gitpod_v1_WorkspaceClass_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceClass_descriptor, + new java.lang.String[] { "Id", "DisplayName", "Description", "IsDefault", }); + internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateWorkspaceSnapshotRequest_descriptor, + new java.lang.String[] { "WorkspaceId", }); + internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_CreateWorkspaceSnapshotResponse_descriptor, + new java.lang.String[] { "Snapshot", }); + internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WaitForWorkspaceSnapshotRequest_descriptor, + new java.lang.String[] { "SnapshotId", }); + internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WaitForWorkspaceSnapshotResponse_descriptor, + new java.lang.String[] { }); + internal_static_gitpod_v1_WorkspaceSnapshot_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_gitpod_v1_WorkspaceSnapshot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceSnapshot_descriptor, + new java.lang.String[] { "Id", "WorkspaceId", "CreationTime", }); + internal_static_gitpod_v1_WorkspaceSession_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_gitpod_v1_WorkspaceSession_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_v1_WorkspaceSession_descriptor, + new java.lang.String[] { "Id", "Workspace", "CreationTime", "DeployedTime", "StartedTime", "StoppingTime", "StoppedTime", }); + descriptor.resolveAllFeaturesImmutable(); + io.gitpod.publicapi.v1.Editor.getDescriptor(); + io.gitpod.publicapi.v1.Envvar.getDescriptor(); + io.gitpod.publicapi.v1.Pagination.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceServiceClient.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceServiceClient.kt new file mode 100644 index 00000000000000..50a477327ef4e6 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceServiceClient.kt @@ -0,0 +1,341 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/workspace.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.MethodSpec +import com.connectrpc.ProtocolClientInterface +import com.connectrpc.ResponseMessage +import com.connectrpc.ServerOnlyStreamInterface +import com.connectrpc.StreamType + +public class WorkspaceServiceClient( + private val client: ProtocolClientInterface, +) : WorkspaceServiceClientInterface { + /** + * GetWorkspace returns a single workspace. + * + * +return NOT_FOUND User does not have access to a workspace with the given + * ID +return NOT_FOUND Workspace does not exist + */ + override suspend fun getWorkspace(request: WorkspaceOuterClass.GetWorkspaceRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/GetWorkspace", + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * WatchWorkspaceStatus watches the workspaces status changes + * + * workspace_id +return NOT_FOUND Workspace does not exist + */ + override suspend fun watchWorkspaceStatus(headers: Headers): + ServerOnlyStreamInterface + = client.serverStream( + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/WatchWorkspaceStatus", + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.WatchWorkspaceStatusResponse::class, + StreamType.SERVER, + ), + ) + + + /** + * ListWorkspaces returns a list of workspaces that match the query. + */ + override suspend fun listWorkspaces(request: WorkspaceOuterClass.ListWorkspacesRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/ListWorkspaces", + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspacesResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListWorkspaceSessions returns a list of workspace sessions that match the + */ + override suspend + fun listWorkspaceSessions(request: WorkspaceOuterClass.ListWorkspaceSessionsRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/ListWorkspaceSessions", + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceSessionsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * CreateAndStartWorkspace creates a new workspace and starts it. + */ + override suspend + fun createAndStartWorkspace(request: WorkspaceOuterClass.CreateAndStartWorkspaceRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/CreateAndStartWorkspace", + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateAndStartWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * StartWorkspace starts an existing workspace. + * If the specified workspace is not in stopped phase, this will return the + * workspace as is. + */ + override suspend fun startWorkspace(request: WorkspaceOuterClass.StartWorkspaceRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/StartWorkspace", + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.StartWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateWorkspace updates the workspace. + */ + override suspend fun updateWorkspace(request: WorkspaceOuterClass.UpdateWorkspaceRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/UpdateWorkspace", + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * StopWorkspace stops a running workspace. + */ + override suspend fun stopWorkspace(request: WorkspaceOuterClass.StopWorkspaceRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/StopWorkspace", + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.StopWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * DeleteWorkspace deletes a workspace. + * When the workspace is running, it will be stopped as well. + * Deleted workspaces cannot be started again. + */ + override suspend fun deleteWorkspace(request: WorkspaceOuterClass.DeleteWorkspaceRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/DeleteWorkspace", + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.DeleteWorkspaceResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ListWorkspaceClasses enumerates all available workspace classes. + */ + override suspend + fun listWorkspaceClasses(request: WorkspaceOuterClass.ListWorkspaceClassesRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/ListWorkspaceClasses", + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.ListWorkspaceClassesResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * ParseContextURL parses a context URL and returns the workspace metadata and + * spec. Not implemented yet. + */ + override suspend fun parseContextURL(request: WorkspaceOuterClass.ParseContextURLRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/ParseContextURL", + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.ParseContextURLResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetWorkspaceDefaultImage returns the default workspace image of specified + * workspace. + */ + override suspend + fun getWorkspaceDefaultImage(request: WorkspaceOuterClass.GetWorkspaceDefaultImageRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/GetWorkspaceDefaultImage", + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceDefaultImageResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * SendHeartBeat sends a heartbeat to activate the workspace + */ + override suspend fun sendHeartBeat(request: WorkspaceOuterClass.SendHeartBeatRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/SendHeartBeat", + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.SendHeartBeatResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetWorkspaceOwnerToken returns an owner token of workspace. + */ + override suspend + fun getWorkspaceOwnerToken(request: WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/GetWorkspaceOwnerToken", + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceOwnerTokenResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * GetWorkspaceEditorCredentials returns an credentials that is used in editor + * to encrypt and decrypt secrets + */ + override suspend + fun getWorkspaceEditorCredentials(request: WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest, + headers: Headers): ResponseMessage + = client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/GetWorkspaceEditorCredentials", + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.GetWorkspaceEditorCredentialsResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * CreateWorkspaceSnapshot creates a snapshot of the workspace that can be + * shared with others. + */ + override suspend + fun createWorkspaceSnapshot(request: WorkspaceOuterClass.CreateWorkspaceSnapshotRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/CreateWorkspaceSnapshot", + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.CreateWorkspaceSnapshotResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * WaitWorkspaceSnapshot waits for the snapshot to be available or failed. + */ + override suspend + fun waitForWorkspaceSnapshot(request: WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/WaitForWorkspaceSnapshot", + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.WaitForWorkspaceSnapshotResponse::class, + StreamType.UNARY, + ), + ) + + + /** + * UpdateWorkspacePort updates the port of workspace. + */ + override suspend fun updateWorkspacePort(request: WorkspaceOuterClass.UpdateWorkspacePortRequest, + headers: Headers): ResponseMessage = + client.unary( + request, + headers, + MethodSpec( + "gitpod.v1.WorkspaceService/UpdateWorkspacePort", + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortRequest::class, + io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspacePortResponse::class, + StreamType.UNARY, + ), + ) + +} diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceServiceClientInterface.kt b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceServiceClientInterface.kt new file mode 100644 index 00000000000000..a5708a0de63e70 --- /dev/null +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/v1/WorkspaceServiceClientInterface.kt @@ -0,0 +1,152 @@ +// Copyright (c) 2024 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License.AGPL.txt in the project root for license information. + +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: gitpod/v1/workspace.proto +// +package io.gitpod.publicapi.v1 + +import com.connectrpc.Headers +import com.connectrpc.ResponseMessage +import com.connectrpc.ServerOnlyStreamInterface + +public interface WorkspaceServiceClientInterface { + /** + * GetWorkspace returns a single workspace. + * + * +return NOT_FOUND User does not have access to a workspace with the given + * ID +return NOT_FOUND Workspace does not exist + */ + public suspend fun getWorkspace(request: WorkspaceOuterClass.GetWorkspaceRequest, headers: Headers + = emptyMap()): ResponseMessage + + /** + * WatchWorkspaceStatus watches the workspaces status changes + * + * workspace_id +return NOT_FOUND Workspace does not exist + */ + public suspend fun watchWorkspaceStatus(headers: Headers = emptyMap()): + ServerOnlyStreamInterface + + /** + * ListWorkspaces returns a list of workspaces that match the query. + */ + public suspend fun listWorkspaces(request: WorkspaceOuterClass.ListWorkspacesRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * ListWorkspaceSessions returns a list of workspace sessions that match the + */ + public suspend + fun listWorkspaceSessions(request: WorkspaceOuterClass.ListWorkspaceSessionsRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * CreateAndStartWorkspace creates a new workspace and starts it. + */ + public suspend + fun createAndStartWorkspace(request: WorkspaceOuterClass.CreateAndStartWorkspaceRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * StartWorkspace starts an existing workspace. + * If the specified workspace is not in stopped phase, this will return the + * workspace as is. + */ + public suspend fun startWorkspace(request: WorkspaceOuterClass.StartWorkspaceRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * UpdateWorkspace updates the workspace. + */ + public suspend fun updateWorkspace(request: WorkspaceOuterClass.UpdateWorkspaceRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * StopWorkspace stops a running workspace. + */ + public suspend fun stopWorkspace(request: WorkspaceOuterClass.StopWorkspaceRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * DeleteWorkspace deletes a workspace. + * When the workspace is running, it will be stopped as well. + * Deleted workspaces cannot be started again. + */ + public suspend fun deleteWorkspace(request: WorkspaceOuterClass.DeleteWorkspaceRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * ListWorkspaceClasses enumerates all available workspace classes. + */ + public suspend fun listWorkspaceClasses(request: WorkspaceOuterClass.ListWorkspaceClassesRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * ParseContextURL parses a context URL and returns the workspace metadata and + * spec. Not implemented yet. + */ + public suspend fun parseContextURL(request: WorkspaceOuterClass.ParseContextURLRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * GetWorkspaceDefaultImage returns the default workspace image of specified + * workspace. + */ + public suspend + fun getWorkspaceDefaultImage(request: WorkspaceOuterClass.GetWorkspaceDefaultImageRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * SendHeartBeat sends a heartbeat to activate the workspace + */ + public suspend fun sendHeartBeat(request: WorkspaceOuterClass.SendHeartBeatRequest, + headers: Headers = emptyMap()): ResponseMessage + + /** + * GetWorkspaceOwnerToken returns an owner token of workspace. + */ + public suspend + fun getWorkspaceOwnerToken(request: WorkspaceOuterClass.GetWorkspaceOwnerTokenRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * GetWorkspaceEditorCredentials returns an credentials that is used in editor + * to encrypt and decrypt secrets + */ + public suspend + fun getWorkspaceEditorCredentials(request: WorkspaceOuterClass.GetWorkspaceEditorCredentialsRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * CreateWorkspaceSnapshot creates a snapshot of the workspace that can be + * shared with others. + */ + public suspend + fun createWorkspaceSnapshot(request: WorkspaceOuterClass.CreateWorkspaceSnapshotRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * WaitWorkspaceSnapshot waits for the snapshot to be available or failed. + */ + public suspend + fun waitForWorkspaceSnapshot(request: WorkspaceOuterClass.WaitForWorkspaceSnapshotRequest, + headers: Headers = emptyMap()): + ResponseMessage + + /** + * UpdateWorkspacePort updates the port of workspace. + */ + public suspend fun updateWorkspacePort(request: WorkspaceOuterClass.UpdateWorkspacePortRequest, + headers: Headers = emptyMap()): + ResponseMessage +}